18 #ifndef vtkTextRepresentation_h
19 #define vtkTextRepresentation_h
22 #include "vtkInteractionWidgetsModule.h"
24 VTK_ABI_NAMESPACE_BEGIN
28 class vtkTextRepresentationObserver;
59 void SetText(
const char* text);
60 const char* GetText();
112 void ExecuteTextPropertyModifiedEvent(
vtkObject* obj,
unsigned long enumEvent,
void* p);
113 void ExecuteTextActorModifiedEvent(
vtkObject* obj,
unsigned long enumEvent,
void* p);
122 vtkSetClampMacro(PaddingLeft,
int, 0, 4000);
123 vtkGetMacro(PaddingLeft,
int);
132 vtkSetClampMacro(PaddingRight,
int, 0, 4000);
133 vtkGetMacro(PaddingRight,
int);
142 vtkSetClampMacro(PaddingTop,
int, 0, 4000);
143 vtkGetMacro(PaddingTop,
int);
152 vtkSetClampMacro(PaddingBottom,
int, 0, 4000);
153 vtkGetMacro(PaddingBottom,
int);
162 void SetPadding(
int padding);
170 virtual void InitializeTextActor();
173 virtual void CheckTextBoundary();
183 int PaddingRight = 0;
185 int PaddingBottom = 0;
192 VTK_ABI_NAMESPACE_END
int RenderOverlay(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
abstract base class for most VTK objects
virtual void SetPosition(float x[2])
Specify opposite corners of the box defining the boundary of the widget.
vtkTypeBool HasTranslucentPolygonalGeometry() override
These methods are necessary to make this representation behave as a vtkProp.
abstract specification for Viewports
vtkTextProperty * TextProperty
vtkTextRepresentationObserver * Observer
void GetSize(double size[2]) override
Subclasses should implement these methods.
int RenderOpaqueGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
void GetActors2D(vtkPropCollection *) override
These methods are necessary to make this representation behave as a vtkProp.
abstract specification for renderers
represent text for vtkTextWidget
static vtkBorderRepresentation * New()
Instantiate this class.
void PrintSelf(ostream &os, vtkIndent indent) override
Define standard methods.
window superclass for vtkRenderWindow
An actor that displays text.
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
void BuildRepresentation() override
Subclasses should implement these methods.
a simple class to control print indentation
void ReleaseGraphicsResources(vtkWindow *) override
These methods are necessary to make this representation behave as a vtkProp.
represent a vtkBorderWidget
represent text properties.
virtual void SetWindowLocation(int enumLocation)
Set the representation position, by enumeration ( AnyLocation = 0, LowerLeftCorner, LowerRightCorner, LowerCenter, UpperLeftCorner, UpperRightCorner, UpperCenter) related to the render window.
void SetPosition(double pos[2]) override
Set the text position, by overriding the same function of vtkBorderRepresentation so that the Modifie...