27 #ifndef vtkTextRepresentation_h
28 #define vtkTextRepresentation_h
30 #include "vtkInteractionWidgetsModule.h"
36 class vtkTextRepresentationObserver;
67 void SetText(
const char* text);
68 const char* GetText();
75 void GetSize(
double size[2]) VTK_OVERRIDE
84 void ReleaseGraphicsResources(
vtkWindow*) VTK_OVERRIDE;
86 int RenderOpaqueGeometry(
vtkViewport*) VTK_OVERRIDE;
87 int RenderTranslucentPolygonalGeometry(
vtkViewport*) VTK_OVERRIDE;
88 int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
114 virtual void SetWindowLocation(
int enumLocation);
115 vtkGetMacro(WindowLocation,
int);
132 void ExecuteTextPropertyModifiedEvent(
vtkObject* obj,
unsigned long enumEvent,
void* p);
133 void ExecuteTextActorModifiedEvent(
vtkObject* obj,
unsigned long enumEvent,
void* p);
141 virtual
void InitializeTextActor();
144 virtual
void CheckTextBoundary();
152 virtual
void UpdateWindowLocation();
155 vtkTextRepresentationObserver *Observer;
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.
abstract specification for Viewports
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.
void BuildRepresentation() override
Subclasses should implement these methods.
a simple class to control print indentation
represent a vtkBorderWidget
represent text properties.
void SetPosition(double pos[2]) override
Set the text position, by overiding the same function of vtkBorderRepresentation so that the Modified...