VTK
|
widget for placing text on overlay plane More...
#include <vtkTextWidget.h>
Public Member Functions | |
virtual void | CreateDefaultRepresentation () |
void | SetRepresentation (vtkTextRepresentation *r) |
void | SetTextActor (vtkTextActor *textActor) |
vtkTextActor * | GetTextActor () |
![]() | |
virtual void | SetSelectable (int) |
virtual int | GetSelectable () |
virtual void | SelectableOn () |
virtual void | SelectableOff () |
virtual void | SetResizable (int) |
virtual int | GetResizable () |
virtual void | ResizableOn () |
virtual void | ResizableOff () |
void | SetRepresentation (vtkBorderRepresentation *r) |
vtkBorderRepresentation * | GetBorderRepresentation () |
vtkBorderWidget * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
![]() | |
virtual void | SetEnabled (int) |
void | Render () |
virtual void | SetPriority (float) |
virtual void | SetProcessEvents (int) |
virtual int | GetProcessEvents () |
virtual void | ProcessEventsOn () |
virtual void | ProcessEventsOff () |
vtkWidgetEventTranslator * | GetEventTranslator () |
void | SetParent (vtkAbstractWidget *parent) |
virtual vtkAbstractWidget * | GetParent () |
vtkWidgetRepresentation * | GetRepresentation () |
virtual void | SetManagesCursor (int) |
virtual int | GetManagesCursor () |
virtual void | ManagesCursorOn () |
virtual void | ManagesCursorOff () |
vtkAbstractWidget * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
static vtkTextWidget * | New () |
![]() | |
static vtkBorderWidget * | New () |
static int | IsTypeOf (const char *type) |
static vtkBorderWidget * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkAbstractWidget * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
vtkTextWidget () | |
~vtkTextWidget () | |
![]() | |
vtkBorderWidget () | |
~vtkBorderWidget () | |
virtual void | SelectRegion (double eventPos[2]) |
virtual int | SubclassSelectAction () |
virtual int | SubclassTranslateAction () |
virtual int | SubclassEndSelectAction () |
virtual int | SubclassMoveAction () |
virtual void | SetCursor (int State) |
![]() | |
vtkAbstractWidget () | |
~vtkAbstractWidget () | |
void | SetWidgetRepresentation (vtkWidgetRepresentation *r) |
virtual void | SetCursor (int vtkNotUsed(state)) |
typedef vtkBorderWidget | Superclass |
static int | IsTypeOf (const char *type) |
static vtkTextWidget * | SafeDownCast (vtkObjectBase *o) |
virtual int | IsA (const char *type) |
vtkTextWidget * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkObjectBase * | NewInstanceInternal () const |
Additional Inherited Members | |
![]() | |
typedef vtkAbstractWidget | Superclass |
![]() | |
typedef vtkInteractorObserver | Superclass |
![]() | |
enum | _WidgetState { Start =0, Define, Manipulate, Selected } |
![]() | |
static void | SelectAction (vtkAbstractWidget *) |
static void | TranslateAction (vtkAbstractWidget *) |
static void | EndSelectAction (vtkAbstractWidget *) |
static void | MoveAction (vtkAbstractWidget *) |
![]() | |
static void | ProcessEventsHandler (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
![]() | |
int | Selectable |
int | Resizable |
int | WidgetState |
![]() | |
vtkWidgetRepresentation * | WidgetRep |
int | ManagesCursor |
vtkWidgetEventTranslator * | EventTranslator |
vtkWidgetCallbackMapper * | CallbackMapper |
vtkAbstractWidget * | Parent |
void * | CallData |
int | ProcessEvents |
widget for placing text on overlay plane
This class provides support for interactively placing text on the 2D overlay plane. The text is defined by an instance of vtkTextActor. It uses the event bindings of its superclass (vtkBorderWidget). In addition, when the text is selected, the widget emits a WidgetActivateEvent that observers can watch for. This is useful for opening GUI dialogues to adjust font characteristics, etc. (Please see the superclass for a description of event bindings.)
Definition at line 42 of file vtkTextWidget.h.
Standard VTK methods.
Definition at line 50 of file vtkTextWidget.h.
|
protected |
|
protected |
|
static |
Instantiate class.
|
static |
Standard VTK methods.
|
virtual |
Standard VTK methods.
Reimplemented from vtkBorderWidget.
|
static |
Standard VTK methods.
|
protectedvirtual |
Standard VTK methods.
Reimplemented from vtkBorderWidget.
vtkTextWidget* vtkTextWidget::NewInstance | ( | ) | const |
Standard VTK methods.
void vtkTextWidget::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
Standard VTK methods.
|
inline |
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene. Note that the representation is a subclass of vtkProp so it can be added to the renderer independent of the widget.
Definition at line 58 of file vtkTextWidget.h.
void vtkTextWidget::SetTextActor | ( | vtkTextActor * | textActor | ) |
Specify a vtkTextActor to manage. This is a convenient, alternative method to specify the representation for the widget (i.e., used instead of SetRepresentation()). It internally creates a vtkTextRepresentation and then invokes vtkTextRepresentation::SetTextActor().
vtkTextActor* vtkTextWidget::GetTextActor | ( | ) |
Specify a vtkTextActor to manage. This is a convenient, alternative method to specify the representation for the widget (i.e., used instead of SetRepresentation()). It internally creates a vtkTextRepresentation and then invokes vtkTextRepresentation::SetTextActor().
|
virtual |
Create the default widget representation if one is not set.
Reimplemented from vtkBorderWidget.