30 #ifndef vtkTextRepresentation_h
31 #define vtkTextRepresentation_h
33 #include "vtkInteractionWidgetsModule.h"
39 class vtkTextRepresentationObserver;
70 void SetText(
const char* text);
71 const char* GetText();
79 {size[0]=2.0; size[1]=2.0;}
117 virtual void SetWindowLocation(
int enumLocation);
118 vtkGetMacro(WindowLocation,
int);
135 void ExecuteTextPropertyModifiedEvent(
vtkObject* obj,
unsigned long enumEvent,
void* p);
136 void ExecuteTextActorModifiedEvent(
vtkObject* obj,
unsigned long enumEvent,
void* p);
144 virtual void InitializeTextActor();
147 virtual void CheckTextBoundary();
155 virtual void UpdateWindowLocation();
abstract base class for most VTK objects
virtual void SetPosition(double pos[2])
Set the text position, by overiding the same function of vtkBorderRepresentation so that the Modified...
virtual void SetPosition(float x[2])
Specify opposite corners of the box defining the boundary of the widget.
void PrintSelf(ostream &os, vtkIndent indent)
Define standard methods.
abstract specification for Viewports
vtkTextProperty * TextProperty
vtkTextRepresentationObserver * Observer
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
These methods are necessary to make this representation behave as a vtkProp.
virtual void GetActors2D(vtkPropCollection *)
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.
window superclass for vtkRenderWindow
An actor that displays text.
a simple class to control print indentation
virtual int RenderOpaqueGeometry(vtkViewport *)
These methods are necessary to make this representation behave as a vtkProp.
virtual void BuildRepresentation()
Subclasses should implement these methods.
virtual int RenderOverlay(vtkViewport *)
These methods are necessary to make this representation behave as a vtkProp.
represent a vtkBorderWidget
represent text properties.
virtual int HasTranslucentPolygonalGeometry()
These methods are necessary to make this representation behave as a vtkProp.
virtual void ReleaseGraphicsResources(vtkWindow *)
These methods are necessary to make this representation behave as a vtkProp.
virtual void GetSize(double size[2])
Subclasses should implement these methods.