29 #ifndef vtkTextActor_h
30 #define vtkTextActor_h
32 #include "vtkRenderingCoreModule.h"
38 VTK_ABI_NAMESPACE_BEGIN
73 void SetInput(
const char* inputString);
83 vtkSetVector2Macro(MinimumSize,
int);
84 vtkGetVector2Macro(MinimumSize,
int);
94 vtkSetMacro(MaximumLineHeight,
float);
95 vtkGetMacro(MaximumLineHeight,
float);
108 vtkSetClampMacro(TextScaleMode,
int, TEXT_SCALE_MODE_NONE, TEXT_SCALE_MODE_VIEWPORT);
109 vtkGetMacro(TextScaleMode,
int);
117 TEXT_SCALE_MODE_NONE = 0,
119 TEXT_SCALE_MODE_VIEWPORT
151 void SetAlignmentPoint(
int point);
154 int GetAlignmentPoint();
166 vtkGetMacro(Orientation,
float);
182 virtual
void GetBoundingBox(
vtkViewport* vport,
double bbox[4]);
195 virtual
int SetConstrainedFontSize(
vtkViewport*,
int targetWidth,
int targetHeight);
196 static
int SetConstrainedFontSize(
vtkTextActor*, vtkViewport*,
int targetWidth,
int targetHeight);
205 static
int SetMultipleConstrainedFontSize(vtkViewport*,
int targetWidth,
int targetHeight,
206 vtkTextActor** actors,
int nbOfActors,
int* maxResultingSize);
217 virtual
void SetNonLinearFontScale(
double exponent,
int target);
223 vtkGetMacro(FontScaleExponent,
double);
224 vtkSetMacro(FontScaleExponent,
double);
231 void SpecifiedToDisplay(
double* pos, vtkViewport* vport,
int specified);
237 void DisplayToSpecified(
double* pos, vtkViewport* vport,
int specified);
243 virtual
void ComputeScaledFont(vtkViewport* viewport);
250 vtkGetObjectMacro(ScaledTextProperty, vtkTextProperty);
260 static
float GetFontScale(vtkViewport* viewport);
269 void ReleaseGraphicsResources(
vtkWindow*) override;
277 int RenderOpaqueGeometry(vtkViewport* viewport) override;
278 int RenderTranslucentPolygonalGeometry(vtkViewport*)
override {
return 0; }
326 virtual void ComputeRectangle(
vtkViewport* viewport);
341 virtual int UpdateRectangle(
vtkViewport* viewport);
348 VTK_ABI_NAMESPACE_END
abstract superclass for all actors, volumes and annotations
actor that draws 2D data with texture support
void SetTextScaleModeToViewport()
Set how text should be scaled.
abstract specification for Viewports
record modification and/or execution time
vtkPoints * RectanglePoints
#define VTK_MARSHAL_EXCLUDE_REASON_IS_REDUNDANT
vtkTextProperty * ScaledTextProperty
concrete dataset represents vertices, lines, polygons, and triangle strips
window superclass for vtkRenderWindow
An actor that displays text.
#define VTK_DEPRECATED_IN_9_6_0(reason)
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.
boost::graph_traits< vtkGraph * >::vertex_descriptor target(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
topologically and geometrically regular array of data
vtkTextRenderer * TextRenderer
represent text properties.
void SetTextScaleModeToNone()
Set how text should be scaled.
#define VTK_MARSHALEXCLUDE(reason)
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
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
represent and manipulate 3D points