VTK
|
activate an n-state button More...
#include <vtkButtonWidget.h>
Public Member Functions | |
void | CreateDefaultRepresentation () |
void | SetRepresentation (vtkButtonRepresentation *r) |
vtkButtonRepresentation * | GetSliderRepresentation () |
Static Public Member Functions | |
static vtkButtonWidget * | New () |
Protected Types | |
enum | _WidgetState { Start = 0, Hovering, Selecting } |
Protected Member Functions | |
vtkButtonWidget () | |
~vtkButtonWidget () | |
Static Protected Member Functions | |
static void | SelectAction (vtkAbstractWidget *) |
static void | MoveAction (vtkAbstractWidget *) |
static void | EndSelectAction (vtkAbstractWidget *) |
Protected Attributes | |
int | WidgetState |
typedef vtkAbstractWidget | Superclass |
static int | IsTypeOf (const char *type) |
static vtkButtonWidget * | SafeDownCast (vtkObjectBase *o) |
virtual int | IsA (const char *type) |
vtkButtonWidget * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkObjectBase * | NewInstanceInternal () const |
activate an n-state button
The vtkButtonWidget is used to interface with an n-state button. That is each selection moves to the next button state (e.g., moves from "on" to "off"). The widget uses modulo list traversal to transition through one or more states. (A single state is simply a "selection" event; traversal through the list can be in the forward or backward direction.)
Depending on the nature of the representation the appearance of the button can change dramatically, the specifics of appearance changes are a function of the associated vtkButtonRepresentation (or subclass).
LeftButtonPressEvent - select button LeftButtonReleaseEvent - end the button selection process
vtkWidgetEvent::Select -- some part of the widget has been selected vtkWidgetEvent::EndSelect -- the selection process has completed
vtkCommand::StateChangedEvent (on vtkWidgetEvent::EndSelect)
Definition at line 69 of file vtkButtonWidget.h.
Standard macros.
Reimplemented from vtkAbstractWidget.
Definition at line 77 of file vtkButtonWidget.h.
enum vtkButtonWidget::_WidgetState [protected] |
Definition at line 109 of file vtkButtonWidget.h.
vtkButtonWidget::vtkButtonWidget | ( | ) | [protected] |
vtkButtonWidget::~vtkButtonWidget | ( | ) | [inline, protected] |
Definition at line 100 of file vtkButtonWidget.h.
static vtkButtonWidget* vtkButtonWidget::New | ( | ) | [static] |
Instantiate the class.
Reimplemented from vtkObject.
static int vtkButtonWidget::IsTypeOf | ( | const char * | type | ) | [static] |
Standard macros.
Reimplemented from vtkAbstractWidget.
virtual int vtkButtonWidget::IsA | ( | const char * | type | ) | [virtual] |
Standard macros.
Reimplemented from vtkAbstractWidget.
static vtkButtonWidget* vtkButtonWidget::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Standard macros.
Reimplemented from vtkAbstractWidget.
virtual vtkObjectBase* vtkButtonWidget::NewInstanceInternal | ( | ) | const [protected, virtual] |
Standard macros.
Reimplemented from vtkAbstractWidget.
vtkButtonWidget* vtkButtonWidget::NewInstance | ( | ) | const |
Standard macros.
Reimplemented from vtkAbstractWidget.
void vtkButtonWidget::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Standard macros.
Reimplemented from vtkAbstractWidget.
void vtkButtonWidget::SetRepresentation | ( | vtkButtonRepresentation * | 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 85 of file vtkButtonWidget.h.
Return the representation as a vtkButtonRepresentation.
Definition at line 91 of file vtkButtonWidget.h.
void vtkButtonWidget::CreateDefaultRepresentation | ( | ) | [virtual] |
Create the default widget representation if one is not set.
Implements vtkAbstractWidget.
static void vtkButtonWidget::SelectAction | ( | vtkAbstractWidget * | ) | [static, protected] |
static void vtkButtonWidget::MoveAction | ( | vtkAbstractWidget * | ) | [static, protected] |
static void vtkButtonWidget::EndSelectAction | ( | vtkAbstractWidget * | ) | [static, protected] |
int vtkButtonWidget::WidgetState [protected] |
Definition at line 108 of file vtkButtonWidget.h.