41 #ifndef vtkTextActor_h
42 #define vtkTextActor_h
44 #include "vtkRenderingCoreModule.h"
81 void SetInput(
const char *inputString);
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);
160 void SetAlignmentPoint(
int point);
161 int GetAlignmentPoint();
173 vtkGetMacro(Orientation,
float);
189 virtual void GetBoundingBox(
vtkViewport* vport,
double bbox[4]);
202 virtual int SetConstrainedFontSize(
204 static int SetConstrainedFontSize(
214 static int SetMultipleConstrainedFontSize(
216 vtkTextActor** actors,
int nbOfActors,
int* maxResultingSize);
227 virtual void SetNonLinearFontScale(
double exponent,
int target);
233 void SpecifiedToDisplay(
double *pos,
vtkViewport *vport,
int specified);
239 void DisplayToSpecified(
double *pos,
vtkViewport *vport,
int specified);
245 virtual void ComputeScaledFont(
vtkViewport *viewport);
279 virtual
int RenderOpaqueGeometry(
vtkViewport* viewport) VTK_OVERRIDE;
280 virtual
int RenderTranslucentPolygonalGeometry(
vtkViewport* ) VTK_OVERRIDE {
return 0;};
298 virtual
bool GetImageBoundingBox(
305 float MaximumLineHeight;
306 double FontScaleExponent;
320 double FormerOrientation;
329 virtual
void ComputeRectangle(
vtkViewport *viewport);
344 virtual
int UpdateRectangle(
vtkViewport* viewport);
348 void operator=(const
vtkTextActor&) VTK_DELETE_FUNCTION;
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
virtual void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkTexturedActor2D.
virtual int RenderOverlay(vtkViewport *viewport) override
Support the standard render methods.
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual int HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
window superclass for vtkRenderWindow
An actor that displays text.
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
void SetTextScaleModeToProp()
Set how text should be scaled.
topologically and geometrically regular array of data
represent text properties.
void SetTextScaleModeToNone()
Set how text should be scaled.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Interface for generating images and path data from string data, using multiple backends.
virtual void ReleaseGraphicsResources(vtkWindow *win) override
Release any graphics resources that are being consumed by this actor.
represent surface properties of a 2D image
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkTexturedActor2D * New()
draw vtkPolyData onto the image plane
represent and manipulate 3D points