|
| virtual int | IsA (const char *type) |
| |
| vtkCaptionActor2D * | NewInstance () const |
| |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| |
| virtual void | SetCaption (const char *caption) |
| |
| virtual char * | GetCaption () |
| |
| virtual vtkCoordinate * | GetAttachmentPointCoordinate () |
| |
| virtual void | SetAttachmentPoint (float x[3]) |
| |
| virtual void | SetAttachmentPoint (float x, float y, float z) |
| |
| virtual float * | GetAttachmentPoint () |
| |
| virtual void | SetBorder (int) |
| |
| virtual int | GetBorder () |
| |
| virtual void | BorderOn () |
| |
| virtual void | BorderOff () |
| |
| virtual void | SetLeader (int) |
| |
| virtual int | GetLeader () |
| |
| virtual void | LeaderOn () |
| |
| virtual void | LeaderOff () |
| |
| virtual void | SetThreeDimensionalLeader (int) |
| |
| virtual int | GetThreeDimensionalLeader () |
| |
| virtual void | ThreeDimensionalLeaderOn () |
| |
| virtual void | ThreeDimensionalLeaderOff () |
| |
| virtual void | SetLeaderGlyphData (vtkPolyData *) |
| |
| virtual void | SetLeaderGlyphConnection (vtkAlgorithmOutput *) |
| |
| virtual vtkPolyData * | GetLeaderGlyph () |
| |
| virtual void | SetLeaderGlyphSize (double) |
| |
| virtual double | GetLeaderGlyphSize () |
| |
| virtual void | SetMaximumLeaderGlyphSize (int) |
| |
| virtual int | GetMaximumLeaderGlyphSize () |
| |
| virtual void | SetPadding (int) |
| |
| virtual int | GetPadding () |
| |
| virtual vtkTextActor * | GetTextActor () |
| |
| virtual void | SetCaptionTextProperty (vtkTextProperty *p) |
| |
| virtual vtkTextProperty * | GetCaptionTextProperty () |
| |
| void | ShallowCopy (vtkProp *prop) |
| |
| virtual void | SetAttachEdgeOnly (int) |
| |
| virtual int | GetAttachEdgeOnly () |
| |
| virtual void | AttachEdgeOnlyOn () |
| |
| virtual void | AttachEdgeOnlyOff () |
| |
| virtual void | ReleaseGraphicsResources (vtkWindow *) |
| |
| int | RenderOpaqueGeometry (vtkViewport *viewport) |
| |
| virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *) |
| |
| int | RenderOverlay (vtkViewport *viewport) |
| |
| virtual int | HasTranslucentPolygonalGeometry () |
| |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| |
| vtkActor2D * | NewInstance () const |
| |
| virtual void | SetMapper (vtkMapper2D *mapper) |
| |
| virtual vtkMapper2D * | GetMapper () |
| |
| virtual void | SetLayerNumber (int) |
| |
| virtual int | GetLayerNumber () |
| |
| vtkProperty2D * | GetProperty () |
| |
| virtual void | SetProperty (vtkProperty2D *) |
| |
| virtual vtkCoordinate * | GetPositionCoordinate () |
| |
| virtual void | SetPosition (float x[2]) |
| |
| virtual void | SetPosition (float x, float y) |
| |
| virtual float * | GetPosition () |
| |
| void | SetDisplayPosition (int, int) |
| |
| virtual vtkCoordinate * | GetPosition2Coordinate () |
| |
| virtual void | SetPosition2 (float x[2]) |
| |
| virtual void | SetPosition2 (float x, float y) |
| |
| virtual float * | GetPosition2 () |
| |
| void | SetWidth (double w) |
| |
| double | GetWidth () |
| |
| void | SetHeight (double h) |
| |
| double | GetHeight () |
| |
| virtual unsigned long | GetMTime () |
| |
| virtual void | GetActors2D (vtkPropCollection *pc) |
| |
| virtual vtkCoordinate * | GetActualPositionCoordinate (void) |
| |
| virtual vtkCoordinate * | GetActualPosition2Coordinate (void) |
| |
| vtkProp * | NewInstance () const |
| |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| |
| virtual void | GetActors (vtkPropCollection *) |
| |
| virtual void | GetVolumes (vtkPropCollection *) |
| |
| virtual void | SetVisibility (int) |
| |
| virtual int | GetVisibility () |
| |
| virtual void | VisibilityOn () |
| |
| virtual void | VisibilityOff () |
| |
| virtual void | SetPickable (int) |
| |
| virtual int | GetPickable () |
| |
| virtual void | PickableOn () |
| |
| virtual void | PickableOff () |
| |
| virtual void | Pick () |
| |
| virtual void | SetDragable (int) |
| |
| virtual int | GetDragable () |
| |
| virtual void | DragableOn () |
| |
| virtual void | DragableOff () |
| |
| virtual unsigned long | GetRedrawMTime () |
| |
| virtual void | SetUseBounds (bool) |
| |
| virtual bool | GetUseBounds () |
| |
| virtual void | UseBoundsOn () |
| |
| virtual void | UseBoundsOff () |
| |
| virtual double * | GetBounds () |
| |
| virtual void | InitPathTraversal () |
| |
| virtual vtkAssemblyPath * | GetNextPath () |
| |
| virtual int | GetNumberOfPaths () |
| |
| virtual void | PokeMatrix (vtkMatrix4x4 *vtkNotUsed(matrix)) |
| |
| virtual vtkMatrix4x4 * | GetMatrix () |
| |
| virtual vtkInformation * | GetPropertyKeys () |
| |
| virtual void | SetPropertyKeys (vtkInformation *keys) |
| |
| virtual bool | HasKeys (vtkInformation *requiredKeys) |
| |
| virtual int | RenderVolumetricGeometry (vtkViewport *) |
| |
| virtual bool | RenderFilteredOpaqueGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
| |
| virtual bool | RenderFilteredTranslucentPolygonalGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
| |
| virtual bool | RenderFilteredVolumetricGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
| |
| virtual bool | RenderFilteredOverlay (vtkViewport *v, vtkInformation *requiredKeys) |
| |
| virtual double | GetEstimatedRenderTime (vtkViewport *) |
| |
| virtual double | GetEstimatedRenderTime () |
| |
| virtual void | SetEstimatedRenderTime (double t) |
| |
| virtual void | RestoreEstimatedRenderTime () |
| |
| virtual void | AddEstimatedRenderTime (double t, vtkViewport *vtkNotUsed(vp)) |
| |
| virtual void | SetAllocatedRenderTime (double t, vtkViewport *vtkNotUsed(v)) |
| |
| virtual double | GetAllocatedRenderTime () |
| |
| void | SetRenderTimeMultiplier (double t) |
| |
| virtual double | GetRenderTimeMultiplier () |
| |
| virtual void | BuildPaths (vtkAssemblyPaths *paths, vtkAssemblyPath *path) |
| |
| virtual bool | GetSupportsSelection () |
| |
| virtual int | GetNumberOfConsumers () |
| |
| void | AddConsumer (vtkObject *c) |
| |
| void | RemoveConsumer (vtkObject *c) |
| |
| vtkObject * | GetConsumer (int i) |
| |
| int | IsConsumer (vtkObject *c) |
| |
| vtkObject * | NewInstance () const |
| |
| virtual void | DebugOn () |
| |
| virtual void | DebugOff () |
| |
| bool | GetDebug () |
| |
| void | SetDebug (bool debugFlag) |
| |
| virtual void | Modified () |
| |
| unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
| |
| unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
| |
| vtkCommand * | GetCommand (unsigned long tag) |
| |
| void | RemoveObserver (vtkCommand *) |
| |
| void | RemoveObservers (unsigned long event, vtkCommand *) |
| |
| void | RemoveObservers (const char *event, vtkCommand *) |
| |
| int | HasObserver (unsigned long event, vtkCommand *) |
| |
| int | HasObserver (const char *event, vtkCommand *) |
| |
| void | RemoveObserver (unsigned long tag) |
| |
| void | RemoveObservers (unsigned long event) |
| |
| void | RemoveObservers (const char *event) |
| |
| void | RemoveAllObservers () |
| |
| int | HasObserver (unsigned long event) |
| |
| int | HasObserver (const char *event) |
| |
| template<class U , class T > |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
| |
| template<class U , class T > |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| |
| template<class U , class T > |
| unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| |
| int | InvokeEvent (unsigned long event, void *callData) |
| |
| int | InvokeEvent (const char *event, void *callData) |
| |
| int | InvokeEvent (unsigned long event) |
| |
| int | InvokeEvent (const char *event) |
| |
| const char * | GetClassName () const |
| |
| virtual void | Delete () |
| |
| virtual void | FastDelete () |
| |
| void | Print (ostream &os) |
| |
| virtual void | PrintHeader (ostream &os, vtkIndent indent) |
| |
| virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
| |
| virtual void | Register (vtkObjectBase *o) |
| |
| virtual void | UnRegister (vtkObjectBase *o) |
| |
| int | GetReferenceCount () |
| |
| void | SetReferenceCount (int) |
| |
| void | PrintRevisions (ostream &) |
| |
draw text label associated with a point
vtkCaptionActor2D is a hybrid 2D/3D actor that is used to associate text with a point (the AttachmentPoint) in the scene. The caption can be drawn with a rectangular border and a leader connecting the caption to the attachment point. Optionally, the leader can be glyphed at its endpoint to create arrow heads or other indicators.
To use the caption actor, you normally specify the Position and Position2 coordinates (these are inherited from the vtkActor2D superclass). (Note that Position2 can be set using vtkActor2D's SetWidth() and SetHeight() methods.) Position and Position2 define the size of the caption, and a third point, the AttachmentPoint, defines a point that the caption is associated with. You must also define the caption text, whether you want a border around the caption, and whether you want a leader from the caption to the attachment point. The font attributes of the text can be set through the vtkTextProperty associated to this actor. You also indicate whether you want the leader to be 2D or 3D. (2D leaders are always drawn over the underlying geometry. 3D leaders may be occluded by the geometry.) The leader may also be terminated by an optional glyph (e.g., arrow).
The trickiest part about using this class is setting Position, Position2, and AttachmentPoint correctly. These instance variables are vtkCoordinates, and can be set up in various ways. In default usage, the AttachmentPoint is defined in the world coordinate system, Position is the lower-left corner of the caption and relative to AttachmentPoint (defined in display coordaintes, i.e., pixels), and Position2 is relative to Position and is the upper-right corner (also in display coordinates). However, the user has full control over the coordinates, and can do things like place the caption in a fixed position in the renderer, with the leader moving with the AttachmentPoint.
- See also
- vtkLegendBoxActor vtkTextMapper vtkTextActor vtkTextProperty vtkCoordinate
- Tests:
- vtkCaptionActor2D (Tests)
Definition at line 76 of file vtkCaptionActor2D.h.