#include <vtkCaptionRepresentation.h>
This class represents vtkCaptionWidget. A caption is defined by some text with a leader (e.g., arrow) that points from the text to a point in the scene. The caption is defined by an instance of vtkCaptionActor2D. It uses the event bindings of its superclass (vtkBorderWidget) to control the placement of the text, and adds the ability to move the attachment point around. In addition, when the caption text is selected, the widget emits a ActivateEvent that observers can watch for. This is useful for opening GUI dialogoues to adjust font characteristics, etc. (Please see the superclass for a description of event bindings.)
Note that this widget extends the behavior of its superclass vtkBorderRepresentation.
Definition at line 46 of file vtkCaptionRepresentation.h.
Standard VTK class methods.
Reimplemented from vtkBorderRepresentation.
Definition at line 54 of file vtkCaptionRepresentation.h.
vtkCaptionRepresentation::vtkCaptionRepresentation | ( | ) | [protected] |
vtkCaptionRepresentation::~vtkCaptionRepresentation | ( | ) | [protected] |
static vtkCaptionRepresentation* vtkCaptionRepresentation::New | ( | ) | [static] |
Instantiate this class.
Reimplemented from vtkBorderRepresentation.
virtual const char* vtkCaptionRepresentation::GetClassName | ( | ) | [virtual] |
Standard VTK class methods.
Reimplemented from vtkBorderRepresentation.
static int vtkCaptionRepresentation::IsTypeOf | ( | const char * | type | ) | [static] |
Standard VTK class methods.
Reimplemented from vtkBorderRepresentation.
virtual int vtkCaptionRepresentation::IsA | ( | const char * | type | ) | [virtual] |
Standard VTK class methods.
Reimplemented from vtkBorderRepresentation.
static vtkCaptionRepresentation* vtkCaptionRepresentation::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Standard VTK class methods.
Reimplemented from vtkBorderRepresentation.
void vtkCaptionRepresentation::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Standard VTK class methods.
Reimplemented from vtkBorderRepresentation.
void vtkCaptionRepresentation::SetAnchorPosition | ( | double | pos[3] | ) |
Specify the position of the anchor (i.e., the point that the caption is anchored to). Note that the position should be specified in world coordinates.
void vtkCaptionRepresentation::GetAnchorPosition | ( | double | pos[3] | ) |
Specify the position of the anchor (i.e., the point that the caption is anchored to). Note that the position should be specified in world coordinates.
void vtkCaptionRepresentation::SetCaptionActor2D | ( | vtkCaptionActor2D * | captionActor | ) |
Specify the vtkCaptionActor2D to manage. If not specified, then one is automatically created.
virtual vtkCaptionActor2D* vtkCaptionRepresentation::GetCaptionActor2D | ( | ) | [virtual] |
Specify the vtkCaptionActor2D to manage. If not specified, then one is automatically created.
void vtkCaptionRepresentation::SetAnchorRepresentation | ( | vtkPointHandleRepresentation3D * | ) |
Set and get the instances of vtkPointHandleRepresention3D used to implement this representation. Normally default representations are created, but you can specify the ones you want to use.
virtual vtkPointHandleRepresentation3D* vtkCaptionRepresentation::GetAnchorRepresentation | ( | ) | [virtual] |
Set and get the instances of vtkPointHandleRepresention3D used to implement this representation. Normally default representations are created, but you can specify the ones you want to use.
virtual void vtkCaptionRepresentation::BuildRepresentation | ( | ) | [virtual] |
Satisfy the superclasses API.
Reimplemented from vtkBorderRepresentation.
virtual void vtkCaptionRepresentation::GetSize | ( | double | size[2] | ) | [inline, virtual] |
Satisfy the superclasses API.
Reimplemented from vtkBorderRepresentation.
Definition at line 84 of file vtkCaptionRepresentation.h.
virtual void vtkCaptionRepresentation::GetActors2D | ( | vtkPropCollection * | ) | [virtual] |
These methods are necessary to make this representation behave as a vtkProp.
Reimplemented from vtkBorderRepresentation.
virtual void vtkCaptionRepresentation::ReleaseGraphicsResources | ( | vtkWindow * | ) | [virtual] |
These methods are necessary to make this representation behave as a vtkProp.
Reimplemented from vtkBorderRepresentation.
virtual int vtkCaptionRepresentation::RenderOverlay | ( | vtkViewport * | ) | [virtual] |
These methods are necessary to make this representation behave as a vtkProp.
Reimplemented from vtkBorderRepresentation.
virtual int vtkCaptionRepresentation::RenderOpaqueGeometry | ( | vtkViewport * | ) | [virtual] |
These methods are necessary to make this representation behave as a vtkProp.
Reimplemented from vtkBorderRepresentation.
virtual int vtkCaptionRepresentation::RenderTranslucentPolygonalGeometry | ( | vtkViewport * | ) | [virtual] |
These methods are necessary to make this representation behave as a vtkProp.
Reimplemented from vtkBorderRepresentation.
virtual int vtkCaptionRepresentation::HasTranslucentPolygonalGeometry | ( | ) | [virtual] |
These methods are necessary to make this representation behave as a vtkProp.
Reimplemented from vtkBorderRepresentation.
virtual void vtkCaptionRepresentation::SetFontFactor | ( | double | ) | [virtual] |
Set/Get the factor that controls the overall size of the fonts of the caption when the text actor's ScaledText is OFF
virtual double vtkCaptionRepresentation::GetFontFactor | ( | ) | [virtual] |
Set/Get the factor that controls the overall size of the fonts of the caption when the text actor's ScaledText is OFF
virtual void vtkCaptionRepresentation::AdjustCaptionBoundary | ( | ) | [protected, virtual] |
Definition at line 111 of file vtkCaptionRepresentation.h.
vtkConeSource* vtkCaptionRepresentation::CaptionGlyph [protected] |
Definition at line 112 of file vtkCaptionRepresentation.h.
int vtkCaptionRepresentation::PointWidgetState [protected] |
Definition at line 114 of file vtkCaptionRepresentation.h.
int vtkCaptionRepresentation::DisplayAttachmentPoint[2] [protected] |
Definition at line 115 of file vtkCaptionRepresentation.h.
double vtkCaptionRepresentation::FontFactor [protected] |
Definition at line 116 of file vtkCaptionRepresentation.h.
Definition at line 119 of file vtkCaptionRepresentation.h.