 |
VTK
9.1.0
|
Go to the documentation of this file.
46 #ifndef vtkTextRepresentation_h
47 #define vtkTextRepresentation_h
50 #include "vtkInteractionWidgetsModule.h"
55 class vtkTextRepresentationObserver;
137 vtkGetMacro(WindowLocation,
int);
163 vtkSetClampMacro(PaddingLeft,
int, 0, 4000);
164 vtkGetMacro(PaddingLeft,
int);
173 vtkSetClampMacro(PaddingRight,
int, 0, 4000);
174 vtkGetMacro(PaddingRight,
int);
183 vtkSetClampMacro(PaddingTop,
int, 0, 4000);
184 vtkGetMacro(PaddingTop,
int);
193 vtkSetClampMacro(PaddingBottom,
int, 0, 4000);
194 vtkGetMacro(PaddingBottom,
int);
228 int PaddingRight = 0;
230 int PaddingBottom = 0;
void SetPosition(double pos[2]) override
Set the text position, by overriding the same function of vtkBorderRepresentation so that the Modifie...
represent a vtkBorderWidget
void GetActors2D(vtkPropCollection *) override
These methods are necessary to make this representation behave as a vtkProp.
~vtkTextRepresentation() override
void ReleaseGraphicsResources(vtkWindow *) override
These methods are necessary to make this representation behave as a vtkProp.
virtual void SetWindowLocation(int enumLocation)
Set the text position, by enumeration ( AnyLocation = 0, LowerLeftCorner, LowerRightCorner,...
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods.
vtkTextRepresentationObserver * Observer
void BuildRepresentation() override
Satisfy the superclasses API.
window superclass for vtkRenderWindow
void SetTextActor(vtkTextActor *textActor)
Specify the vtkTextActor to manage.
vtkTypeBool HasTranslucentPolygonalGeometry() override
These methods are necessary to make this representation behave as a vtkProp.
vtkTextProperty * TextProperty
void ExecuteTextPropertyModifiedEvent(vtkObject *obj, unsigned long enumEvent, void *p)
Internal.
void SetPosition(double x, double y) override
Set the text position, by overriding the same function of vtkBorderRepresentation so that the Modifie...
represent text for vtkTextWidget
const char * GetText()
Get/Set the text string display by this representation.
void ExecuteTextActorModifiedEvent(vtkObject *obj, unsigned long enumEvent, void *p)
Internal.
int RenderOpaqueGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
An actor that displays text.
a simple class to control print indentation
virtual void UpdateWindowLocation()
abstract specification for Viewports
virtual void InitializeTextActor()
represent text properties.
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
void SetText(const char *text)
Get/Set the text string display by this representation.
abstract specification for renderers
virtual void CheckTextBoundary()
void SetPadding(int padding)
Set the padding between the text and the left/right/top/bottom border, in pixels unit.
static vtkTextRepresentation * New()
Instantiate class.
void GetSize(double size[2]) override
Subclasses should implement these methods.
int RenderOverlay(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.