Class used to retrieve a given message state based on its GlobalID. More...
#include <vtkSMStateLocator.h>
Public Types | |
typedef vtkSMObject | Superclass |
Public Types inherited from vtkSMObject | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | InitGarbageCollector (vtkSMSession *, vtkUndoStack *) |
By initializing the garabage collector the stored state get removed once their is no more chance for them to be reused inside the session. More... | |
virtual bool | FindState (vtkTypeUInt32 globalID, vtkSMMessage *stateToFill, bool useParent=true) |
Fill the provided State message with the state found inside the current locator or one of its parent. More... | |
virtual void | RegisterState (const vtkSMMessage *state) |
Register the given state in the current locator. More... | |
virtual void | UnRegisterState (vtkTypeUInt32 globalID, bool force) |
Remove a state for a given proxy inside the local locator. More... | |
virtual void | UnRegisterAllStates (bool force) |
Remove all the registered states if force is true, it will also remove it from its hierarchical parents. More... | |
virtual bool | IsStateLocal (vtkTypeUInt32 globalID) |
Return true if the given state can be found locally whitout the help of on the hierarchical parent. More... | |
virtual bool | IsStateAvailable (vtkTypeUInt32 globalID) |
Return true if the given state do exist in the locator hierarchy. More... | |
virtual void | RegisterFullState (vtkSMProxy *proxy) |
Register the given proxy state as well as all its sub-proxy state so if that proxy need to be renew all its sub-proxy will be renew in the exact same state. More... | |
virtual void | SetParentLocator (vtkSMStateLocator *) |
Set/Get a parent locator to search which is used as a backup location to search from if a given state was not found locally. More... | |
virtual vtkSMStateLocator * | GetParentLocator () |
Set/Get a parent locator to search which is used as a backup location to search from if a given state was not found locally. More... | |
Public Member Functions inherited from vtkObject | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual vtkMTimeType | GetMTime () |
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) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
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 *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
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) |
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 *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
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) |
Public Member Functions inherited from vtkObjectBase | |
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) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
Static Public Member Functions | |
static vtkSMStateLocator * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMStateLocator * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkSMObject | |
static vtkSMObject * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMObject * | SafeDownCast (vtkObject *o) |
static std::string | CreatePrettyLabel (const std::string &name) |
Return a well-formated label using provided name by adding spaces between lower cases and upper cases: More... | |
Static Public Member Functions inherited from vtkObject | |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Static Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkSMStateLocator () | |
~vtkSMStateLocator () override | |
Protected Member Functions inherited from vtkSMObject | |
vtkSMObject () | |
~vtkSMObject () override | |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
virtual | ~vtkObject () |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
vtkSMStateLocator * | ParentLocator |
vtkWeakPointer< vtkSMSession > | Session |
vtkWeakPointer< vtkUndoStack > | UndoStack |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Class used to retrieve a given message state based on its GlobalID.
vtkSMStateLocator allow a hierarchical way of finding a message state.
Definition at line 23 of file vtkSMStateLocator.h.
Definition at line 27 of file vtkSMStateLocator.h.
|
protected |
|
overrideprotected |
|
static |
|
virtual |
Reimplemented from vtkSMObject.
Reimplemented in vtkSMServerStateLocator.
Reimplemented from vtkSMObject.
Reimplemented in vtkSMServerStateLocator.
|
static |
|
overridevirtual |
Reimplemented from vtkSMObject.
|
virtual |
Set/Get a parent locator to search which is used as a backup location to search from if a given state was not found locally.
|
virtual |
Set/Get a parent locator to search which is used as a backup location to search from if a given state was not found locally.
void vtkSMStateLocator::InitGarbageCollector | ( | vtkSMSession * | , |
vtkUndoStack * | |||
) |
By initializing the garabage collector the stored state get removed once their is no more chance for them to be reused inside the session.
|
virtual |
Fill the provided State message with the state found inside the current locator or one of its parent.
The method return true if the state was successfully filled. The "useParent" flag allow to disable parent lookup but by default it is set to true.
Reimplemented in vtkSMServerStateLocator.
|
virtual |
Register the given state in the current locator.
If a previous state was available, the new one will replace it.
|
virtual |
Remove a state for a given proxy inside the local locator.
if force is true, it will also remove it from its hierarchical parents.
|
virtual |
Remove all the registered states if force is true, it will also remove it from its hierarchical parents.
|
virtual |
Return true if the given state can be found locally whitout the help of on the hierarchical parent.
|
virtual |
Return true if the given state do exist in the locator hierarchy.
|
virtual |
Register the given proxy state as well as all its sub-proxy state so if that proxy need to be renew all its sub-proxy will be renew in the exact same state.
|
protected |
Definition at line 94 of file vtkSMStateLocator.h.
|
protected |
Definition at line 95 of file vtkSMStateLocator.h.
|
protected |
Definition at line 96 of file vtkSMStateLocator.h.