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 () |
Static Public Member Functions | |
static vtkTextWidget * | New () |
Protected Member Functions | |
vtkTextWidget () | |
~vtkTextWidget () | |
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 |
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.
Reimplemented from vtkBorderWidget.
Definition at line 50 of file vtkTextWidget.h.
vtkTextWidget::vtkTextWidget | ( | ) | [protected] |
vtkTextWidget::~vtkTextWidget | ( | ) | [protected] |
static vtkTextWidget* vtkTextWidget::New | ( | ) | [static] |
Instantiate class.
Reimplemented from vtkBorderWidget.
static int vtkTextWidget::IsTypeOf | ( | const char * | type | ) | [static] |
Standard VTK methods.
Reimplemented from vtkBorderWidget.
virtual int vtkTextWidget::IsA | ( | const char * | type | ) | [virtual] |
Standard VTK methods.
Reimplemented from vtkBorderWidget.
static vtkTextWidget* vtkTextWidget::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Standard VTK methods.
Reimplemented from vtkBorderWidget.
virtual vtkObjectBase* vtkTextWidget::NewInstanceInternal | ( | ) | const [protected, virtual] |
Standard VTK methods.
Reimplemented from vtkBorderWidget.
vtkTextWidget* vtkTextWidget::NewInstance | ( | ) | const |
Standard VTK methods.
Reimplemented from vtkBorderWidget.
void vtkTextWidget::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Standard VTK methods.
Reimplemented from vtkBorderWidget.
void vtkTextWidget::SetRepresentation | ( | vtkTextRepresentation * | r | ) | [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().
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 void vtkTextWidget::CreateDefaultRepresentation | ( | ) | [virtual] |
Create the default widget representation if one is not set.
Reimplemented from vtkBorderWidget.