46#ifndef vtkCaptionRepresentation_h
47#define vtkCaptionRepresentation_h
50#include "vtkInteractionWidgetsModule.h"
53VTK_ABI_NAMESPACE_BEGIN
133 vtkSetClampMacro(FontFactor,
double, 0.1, 10.0);
134 vtkGetMacro(FontFactor,
double);
150 VTK_FIT_TO_BORDER = 0,
153 vtkSetClampMacro(Fit,
int, VTK_FIT_TO_BORDER, VTK_FIT_TO_TEXT);
154 vtkGetMacro(Fit,
int);
168 int DisplayAttachmentPoint[2];
represent a vtkBorderWidget
draw text label associated with a point
represents vtkCaptionWidget in the scene
int RenderOpaqueGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
static vtkCaptionRepresentation * New()
Instantiate this class.
vtkTypeBool HasTranslucentPolygonalGeometry() override
These methods are necessary to make this representation behave as a vtkProp.
vtkCaptionActor2D * CaptionActor2D
void SetAnchorRepresentation(vtkPointHandleRepresentation3D *)
Set and get the instances of vtkPointHandleRepresentation3D used to implement this representation.
void GetActors2D(vtkPropCollection *) override
These methods are necessary to make this representation behave as a vtkProp.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK class methods.
vtkCaptionRepresentation()
virtual void AdjustCaptionBoundary()
FitType
Control the relationship between the size of the text and the border.
vtkPointHandleRepresentation3D * AnchorRepresentation
void ReleaseGraphicsResources(vtkWindow *) override
These methods are necessary to make this representation behave as a vtkProp.
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
void BuildRepresentation() override
Satisfy the superclasses API.
int RenderOverlay(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
vtkConeSource * CaptionGlyph
void GetAnchorPosition(double pos[3])
Specify the position of the anchor (i.e., the point that the caption is anchored to).
const char * GetFitAsString()
~vtkCaptionRepresentation() override
void SetAnchorPosition(double pos[3])
Specify the position of the anchor (i.e., the point that the caption is anchored to).
void GetSize(double size[2]) override
Subclasses should implement these methods.
void SetCaptionActor2D(vtkCaptionActor2D *captionActor)
Specify the vtkCaptionActor2D to manage.
a simple class to control print indentation
represent the position of a point in 3D space
abstract specification for renderers
abstract specification for Viewports
window superclass for vtkRenderWindow