Go to the documentation of this file.
41 #ifndef vtkTextActor_h
42 #define vtkTextActor_h
44 #include "vtkRenderingCoreModule.h"
91 vtkSetVector2Macro(MinimumSize,
int);
92 vtkGetVector2Macro(MinimumSize,
int);
103 vtkGetMacro(MaximumLineHeight,
float);
116 vtkSetClampMacro(TextScaleMode,
int,
117 TEXT_SCALE_MODE_NONE, TEXT_SCALE_MODE_VIEWPORT);
118 vtkGetMacro(TextScaleMode,
int);
120 { this->SetTextScaleMode(TEXT_SCALE_MODE_NONE); }
122 { this->SetTextScaleMode(TEXT_SCALE_MODE_PROP); }
124 { this->SetTextScaleMode(TEXT_SCALE_MODE_VIEWPORT); }
128 TEXT_SCALE_MODE_NONE = 0,
130 TEXT_SCALE_MODE_VIEWPORT
140 vtkGetMacro(UseBorderAlign,
int);
173 vtkGetMacro(Orientation,
float);
216 vtkTextActor** actors,
int nbOfActors,
int* maxResultingSize);
298 virtual
bool GetImageBoundingBox(
305 float MaximumLineHeight;
306 double FontScaleExponent;
320 double FormerOrientation;
348 void operator=(const
vtkTextActor&) VTK_DELETE_FUNCTION;
represent and manipulate 3D points
draw vtkPolyData onto the image plane
void SetTextScaleModeToNone()
virtual int SetConstrainedFontSize(vtkViewport *, int targetWidth, int targetHeight)
Set and return the font size required to make this mapper fit in a given target rectangle (width x he...
void SetTextScaleModeToProp()
void SetOrientation(float orientation)
Counterclockwise rotation around the Alignment point.
virtual void GetSize(vtkViewport *vport, double size[2])
Syntactic sugar to get the size of text instead of the entire bounding box.
actor that draws 2D data with texture support
virtual void SetTextProperty(vtkTextProperty *p)
Set/Get the text property.
static vtkTextActor * New()
Instantiate object with a rectangle in normaled view coordinates of (0.2,0.85, 0.8,...
void SetAlignmentPoint(int point)
This method is being depricated.
virtual int HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
record modification and/or execution time
virtual void ComputeScaledFont(vtkViewport *viewport)
Compute the scale the font should be given the viewport.
static int SetConstrainedFontSize(vtkTextActor *, vtkViewport *, int targetWidth, int targetHeight)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
window superclass for vtkRenderWindow
virtual int RenderOpaqueGeometry(vtkViewport *viewport) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
topologically and geometrically regular array of data
An actor that displays text.
a simple class to control print indentation
virtual void SetNonLinearFontScale(double exponent, int target)
Enable non-linear scaling of font sizes.
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *) override
void ShallowCopy(vtkProp *prop) override
Shallow copy of this text actor.
abstract specification for Viewports
represent text properties.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
abstract superclass for all actors, volumes and annotations
represent surface properties of a 2D image
static float GetFontScale(vtkViewport *viewport)
Provide a font scaling based on a viewport.
static int SetMultipleConstrainedFontSize(vtkViewport *, int targetWidth, int targetHeight, vtkTextActor **actors, int nbOfActors, int *maxResultingSize)
Set and return the font size required to make each element of an array of mappers fit in a given rect...
Interface for generating images and path data from string data, using multiple backends.
void SpecifiedToDisplay(double *pos, vtkViewport *vport, int specified)
This is just a simple coordinate conversion method used in the render process.
void SetInput(const char *inputString)
Set the text string to be displayed.
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
virtual void GetBoundingBox(vtkViewport *vport, double bbox[4])
Return the bounding box coordinates of the text in viewport coordinates.
void DisplayToSpecified(double *pos, vtkViewport *vport, int specified)
This is just a simple coordinate conversion method used in the render process.
boost::graph_traits< vtkGraph * >::vertex_descriptor target(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void SetTextScaleModeToViewport()
vtkTimeStamp BuildTime
Updates the extensions string.
virtual int RenderOverlay(vtkViewport *viewport) override
Support the standard render methods.