18 #ifndef vtkTextRepresentation_h
19 #define vtkTextRepresentation_h
22 #include "vtkInteractionWidgetsModule.h"
25 VTK_ABI_NAMESPACE_BEGIN
29 class vtkTextRepresentationObserver;
62 void SetText(const
char* text);
64 const
char* GetText();
70 void BuildRepresentation() override;
71 void GetSize(
double size[2])
override
109 void SetPosition(
double x,
double y) override;
111 void SetPosition(
double pos[2])
override { this->
SetPosition(pos[0], pos[1]); }
118 void ExecuteTextPropertyModifiedEvent(
vtkObject* obj,
unsigned long enumEvent,
void* p);
119 void ExecuteTextActorModifiedEvent(
vtkObject* obj,
unsigned long enumEvent,
void* p);
128 vtkSetClampMacro(PaddingLeft,
int, 0, 4000);
129 vtkGetMacro(PaddingLeft,
int);
138 vtkSetClampMacro(PaddingRight,
int, 0, 4000);
139 vtkGetMacro(PaddingRight,
int);
148 vtkSetClampMacro(PaddingTop,
int, 0, 4000);
149 vtkGetMacro(PaddingTop,
int);
158 vtkSetClampMacro(PaddingBottom,
int, 0, 4000);
159 vtkGetMacro(PaddingBottom,
int);
168 void SetPadding(
int padding);
176 virtual void InitializeTextActor();
179 virtual void CheckTextBoundary();
189 int PaddingRight = 0;
191 int PaddingBottom = 0;
198 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
vtkTypeBool HasTranslucentPolygonalGeometry() override
These methods are necessary to make this representation behave as a vtkProp.
abstract specification for Viewports
vtkTextProperty * TextProperty
vtkTextRepresentationObserver * Observer
#define VTK_MARSHAL_EXCLUDE_REASON_IS_REDUNDANT
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.
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.
#define VTK_MARSHALEXCLUDE(reason)
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...