35 #ifndef vtkTextActor_h 36 #define vtkTextActor_h 38 #include "vtkRenderingCoreModule.h" 75 void SetInput(
const char *inputString);
85 vtkSetVector2Macro(MinimumSize,
int);
86 vtkGetVector2Macro(MinimumSize,
int);
96 vtkSetMacro(MaximumLineHeight,
float);
97 vtkGetMacro(MaximumLineHeight,
float);
110 vtkSetClampMacro(TextScaleMode,
int,
111 TEXT_SCALE_MODE_NONE, TEXT_SCALE_MODE_VIEWPORT);
112 vtkGetMacro(TextScaleMode,
int);
114 { this->SetTextScaleMode(TEXT_SCALE_MODE_NONE); }
116 { this->SetTextScaleMode(TEXT_SCALE_MODE_PROP); }
118 { this->SetTextScaleMode(TEXT_SCALE_MODE_VIEWPORT); }
122 TEXT_SCALE_MODE_NONE = 0,
124 TEXT_SCALE_MODE_VIEWPORT
154 void SetAlignmentPoint(
int point);
155 int GetAlignmentPoint();
167 vtkGetMacro(Orientation,
float);
183 virtual void GetBoundingBox(
vtkViewport* vport,
double bbox[4]);
196 virtual int SetConstrainedFontSize(
198 static int SetConstrainedFontSize(
208 static int SetMultipleConstrainedFontSize(
210 vtkTextActor** actors,
int nbOfActors,
int* maxResultingSize);
221 virtual void SetNonLinearFontScale(
double exponent,
int target);
227 void SpecifiedToDisplay(
double *pos,
vtkViewport *vport,
int specified);
233 void DisplayToSpecified(
double *pos,
vtkViewport *vport,
int specified);
239 virtual void ComputeScaledFont(
vtkViewport *viewport);
292 virtual bool GetImageBoundingBox(
323 virtual void ComputeRectangle(
vtkViewport *viewport);
338 virtual int UpdateRectangle(
vtkViewport* viewport);
abstract superclass for all actors, volumes and annotations
actor that draws 2D data with texture support
boost::graph_traits< vtkGraph * >::vertex_descriptor target(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void SetTextScaleModeToViewport()
Set how text should be scaled.
abstract specification for Viewports
record modification and/or execution time
vtkPoints * RectanglePoints
vtkTextProperty * ScaledTextProperty
concrete dataset represents vertices, lines, polygons, and triangle strips
window superclass for vtkRenderWindow
An actor that displays text.
int RenderOpaqueGeometry(vtkViewport *viewport) override
Support the standard render methods.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
int HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
void SetTextScaleModeToProp()
Set how text should be scaled.
topologically and geometrically regular array of data
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
vtkTextRenderer * TextRenderer
represent text properties.
void SetTextScaleModeToNone()
Set how text should be scaled.
Interface for generating images and path data from string data, using multiple backends.
vtkTextProperty * TextProperty
represent surface properties of a 2D image
int RenderOverlay(vtkViewport *viewport) override
Support the standard render methods.
static vtkTexturedActor2D * New()
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkTexturedActor2D.
vtkTypeBool UseBorderAlign
draw vtkPolyData onto the image plane
void ReleaseGraphicsResources(vtkWindow *win) override
Release any graphics resources that are being consumed by this actor.
represent and manipulate 3D points