VTK
|
Synchronize a collection on vtkWidgets drawn on different renderwindows using the Callback - Dispatch Action mechanism. More...
#include <vtkWidgetSet.h>
Public Types | |
typedef vtkstd::vector < vtkAbstractWidget * > | WidgetContainerType |
typedef WidgetContainerType::iterator | WidgetIteratorType |
typedef WidgetContainerType::const_iterator | WidgetConstIteratorType |
![]() |
Public Member Functions | |
void | AddWidget (vtkAbstractWidget *) |
void | RemoveWidget (vtkAbstractWidget *) |
unsigned int | GetNumberOfWidgets () |
vtkAbstractWidget * | GetNthWidget (unsigned int) |
virtual void | SetEnabled (int) |
virtual void | EnabledOn () |
virtual void | EnabledOff () |
![]() | |
virtual void | DebugOn () |
virtual void | DebugOff () |
unsigned char | GetDebug () |
void | SetDebug (unsigned char debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
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) |
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 | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &os) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkWidgetSet * | New () |
![]() | |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Public Attributes | |
WidgetContainerType | Widget |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &os) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
typedef vtkObject | Superclass |
static int | IsTypeOf (const char *type) |
static vtkWidgetSet * | SafeDownCast (vtkObject *o) |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
template<class TWidget > | |
void | DispatchAction (TWidget *caller, typename ActionFunction< TWidget >::TActionFunctionPointer action) |
vtkWidgetSet () | |
~vtkWidgetSet () |
Additional Inherited Members | |
![]() | |
unsigned char | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
int | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Synchronize a collection on vtkWidgets drawn on different renderwindows using the Callback - Dispatch Action mechanism.
The class synchronizes a set of vtkAbstractWidget(s). Widgets typically invoke "Actions" that drive the geometry/behaviour of their representations in response to interactor events. Interactor interactions on a render window are mapped into "Callbacks" by the widget, from which "Actions" are dispatched to the entire set. This architecture allows us to tie widgets existing in different render windows together. For instance a HandleWidget might exist on the sagittal view. Moving it around should update the representations of the corresponding handle widget that lies on the axial and coronal and volume views as well.
Definition at line 111 of file vtkWidgetSet.h.
typedef vtkObject vtkWidgetSet::Superclass |
Standard methods for a VTK class.
Reimplemented from vtkObject.
Definition at line 119 of file vtkWidgetSet.h.
typedef vtkstd::vector< vtkAbstractWidget * > vtkWidgetSet::WidgetContainerType |
Definition at line 144 of file vtkWidgetSet.h.
typedef WidgetContainerType::iterator vtkWidgetSet::WidgetIteratorType |
Definition at line 145 of file vtkWidgetSet.h.
typedef WidgetContainerType::const_iterator vtkWidgetSet::WidgetConstIteratorType |
Definition at line 146 of file vtkWidgetSet.h.
|
protected |
Dispatch an "Action" to every widget in this set. This is meant to be invoked from a "Callback" in a widget.
|
protected |
Dispatch an "Action" to every widget in this set. This is meant to be invoked from a "Callback" in a widget.
|
static |
Instantiate this class.
Reimplemented from vtkObject.
|
virtual |
Standard methods for a VTK class.
Reimplemented from vtkObject.
|
static |
Standard methods for a VTK class.
Reimplemented from vtkObject.
|
virtual |
Standard methods for a VTK class.
Reimplemented from vtkObject.
|
static |
Standard methods for a VTK class.
Reimplemented from vtkObject.
|
virtual |
Standard methods for a VTK class.
Reimplemented from vtkObject.
|
virtual |
Method for activiating and deactiviating all widgets in the group.
|
virtual |
Method for activiating and deactiviating all widgets in the group.
|
virtual |
Method for activiating and deactiviating all widgets in the group.
void vtkWidgetSet::AddWidget | ( | vtkAbstractWidget * | ) |
Add a widget to the set.
void vtkWidgetSet::RemoveWidget | ( | vtkAbstractWidget * | ) |
Remove a widget from the set
unsigned int vtkWidgetSet::GetNumberOfWidgets | ( | ) |
Get number of widgets in the set.
vtkAbstractWidget* vtkWidgetSet::GetNthWidget | ( | unsigned | int | ) |
Get the Nth widget in the set.
|
inline |
Dispatch an "Action" to every widget in this set. This is meant to be invoked from a "Callback" in a widget.
Definition at line 153 of file vtkWidgetSet.h.
WidgetContainerType vtkWidgetSet::Widget |
Definition at line 147 of file vtkWidgetSet.h.