VTK
|
set a value by manipulating something More...
#include <vtkCompassWidget.h>
Public Member Functions | |
void | CreateDefaultRepresentation () |
void | SetRepresentation (vtkCompassRepresentation *r) |
double | GetHeading () |
void | SetHeading (double v) |
double | GetTilt () |
void | SetTilt (double t) |
double | GetDistance () |
void | SetDistance (double t) |
![]() | |
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 vtkCompassWidget * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkAbstractWidget * | SafeDownCast (vtkObjectBase *o) |
Protected Types | |
enum | _WidgetState { Start =0, Highlighting, Adjusting, TiltAdjusting, DistanceAdjusting } |
Protected Member Functions | |
vtkCompassWidget () | |
~vtkCompassWidget () | |
![]() | |
vtkAbstractWidget () | |
~vtkAbstractWidget () | |
void | SetWidgetRepresentation (vtkWidgetRepresentation *r) |
virtual void | SetCursor (int vtkNotUsed(state)) |
Static Protected Member Functions | |
static void | SelectAction (vtkAbstractWidget *) |
static void | EndSelectAction (vtkAbstractWidget *) |
static void | MoveAction (vtkAbstractWidget *) |
static void | TimerAction (vtkAbstractWidget *) |
![]() | |
static void | ProcessEventsHandler (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
Protected Attributes | |
int | WidgetState |
int | TimerId |
int | TimerDuration |
double | StartTime |
![]() | |
vtkWidgetRepresentation * | WidgetRep |
int | ManagesCursor |
vtkWidgetEventTranslator * | EventTranslator |
vtkWidgetCallbackMapper * | CallbackMapper |
vtkAbstractWidget * | Parent |
void * | CallData |
int | ProcessEvents |
typedef vtkAbstractWidget | Superclass |
static int | IsTypeOf (const char *type) |
static vtkCompassWidget * | SafeDownCast (vtkObjectBase *o) |
virtual int | IsA (const char *type) |
vtkCompassWidget * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkObjectBase * | NewInstanceInternal () const |
set a value by manipulating something
The vtkCompassWidget is used to adjust a scalar value in an application. Note that the actual appearance of the widget depends on the specific representation for the widget.
To use this widget, set the widget representation. (the details may vary depending on the particulars of the representation).
If the slider bead is selected: LeftButtonPressEvent - select slider LeftButtonReleaseEvent - release slider MouseMoveEvent - move slider
vtkWidgetEvent::Select -- some part of the widget has been selected vtkWidgetEvent::EndSelect -- the selection process has completed vtkWidgetEvent::Move -- a request for slider motion has been invoked
vtkCommand::StartInteractionEvent (on vtkWidgetEvent::Select) vtkCommand::EndInteractionEvent (on vtkWidgetEvent::EndSelect) vtkCommand::InteractionEvent (on vtkWidgetEvent::Move)
Definition at line 76 of file vtkCompassWidget.h.
Standard macros.
Definition at line 84 of file vtkCompassWidget.h.
|
protected |
Enumerator | |
---|---|
Start | |
Highlighting | |
Adjusting | |
TiltAdjusting | |
DistanceAdjusting |
Definition at line 122 of file vtkCompassWidget.h.
|
protected |
|
inlineprotected |
Definition at line 112 of file vtkCompassWidget.h.
|
static |
Instantiate the class.
|
static |
Standard macros.
|
virtual |
Standard macros.
Reimplemented from vtkAbstractWidget.
|
static |
Standard macros.
|
protectedvirtual |
Standard macros.
Reimplemented from vtkAbstractWidget.
vtkCompassWidget* vtkCompassWidget::NewInstance | ( | ) | const |
Standard macros.
void vtkCompassWidget::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
Standard macros.
|
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 92 of file vtkCompassWidget.h.
|
virtual |
Create the default widget representation if one is not set.
Implements vtkAbstractWidget.
double vtkCompassWidget::GetHeading | ( | ) |
Get the value for this widget.
void vtkCompassWidget::SetHeading | ( | double | v | ) |
Get the value for this widget.
double vtkCompassWidget::GetTilt | ( | ) |
Get the value for this widget.
void vtkCompassWidget::SetTilt | ( | double | t | ) |
Get the value for this widget.
double vtkCompassWidget::GetDistance | ( | ) |
Get the value for this widget.
void vtkCompassWidget::SetDistance | ( | double | t | ) |
Get the value for this widget.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
Definition at line 121 of file vtkCompassWidget.h.
|
protected |
Definition at line 132 of file vtkCompassWidget.h.
|
protected |
Definition at line 133 of file vtkCompassWidget.h.
|
protected |
Definition at line 134 of file vtkCompassWidget.h.