VTK
|
Synchronize a collection on vtkWidgets drawn on different renderwindows using the Callback - Dispatch Action mechanism. More...
#include <vtkWidgetSet.h>
Public Types | |
typedef std::vector< vtkAbstractWidget * > | WidgetContainerType |
typedef WidgetContainerType::iterator | WidgetIteratorType |
typedef WidgetContainerType::const_iterator | WidgetConstIteratorType |
![]() | |
typedef vtkObjectBase | Superclass |
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 () |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool 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) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(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 &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkWidgetSet * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Public Attributes | |
WidgetContainerType | Widget |
typedef vtkObject | Superclass |
static int | IsTypeOf (const char *type) |
static vtkWidgetSet * | SafeDownCast (vtkObjectBase *o) |
virtual int | IsA (const char *type) |
vtkWidgetSet * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkObjectBase * | NewInstanceInternal () const |
template<class TWidget > | |
void | DispatchAction (TWidget *caller, typename ActionFunction< TWidget >::TActionFunctionPointer action) |
vtkWidgetSet () | |
~vtkWidgetSet () | |
Additional Inherited Members | |
![]() | |
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 &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | 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 112 of file vtkWidgetSet.h.
typedef vtkObject vtkWidgetSet::Superclass |
Standard methods for a VTK class.
Definition at line 120 of file vtkWidgetSet.h.
typedef std::vector< vtkAbstractWidget * > vtkWidgetSet::WidgetContainerType |
Definition at line 145 of file vtkWidgetSet.h.
typedef WidgetContainerType::iterator vtkWidgetSet::WidgetIteratorType |
Definition at line 146 of file vtkWidgetSet.h.
typedef WidgetContainerType::const_iterator vtkWidgetSet::WidgetConstIteratorType |
Definition at line 147 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.
|
static |
Standard methods for a VTK class.
|
virtual |
Standard methods for a VTK class.
Reimplemented from vtkObject.
|
static |
Standard methods for a VTK class.
|
protectedvirtual |
Standard methods for a VTK class.
Reimplemented from vtkObject.
vtkWidgetSet* vtkWidgetSet::NewInstance | ( | ) | const |
Standard methods for a VTK class.
|
virtual |
Standard methods for a VTK class.
Reimplemented from vtkObject.
|
virtual |
Method for activating and deactivating all widgets in the group.
|
virtual |
Method for activating and deactivating all widgets in the group.
|
virtual |
Method for activating and deactivating 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 154 of file vtkWidgetSet.h.
WidgetContainerType vtkWidgetSet::Widget |
Definition at line 148 of file vtkWidgetSet.h.