Creates a link between two properties. More...
#include <vtkSMSelectionLink.h>
Public Types | |
typedef vtkSMLink | Superclass |
![]() | |
enum | UpdateDirections { NONE = 0, INPUT = 1, OUTPUT = 2 } |
typedef vtkSMRemoteObject | Superclass |
![]() | |
typedef vtkSMSessionObject | Superclass |
![]() | |
typedef vtkSMObject | Superclass |
![]() | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
unsigned int | GetNumberOfLinkedObjects () override |
Get the number of properties that are involved in this link. More... | |
vtkSMProxy * | GetLinkedProxy (int index) override |
Get a proxy involved in this link. More... | |
int | GetLinkedObjectDirection (int index) override |
Get the direction of a Selection involved in this link (see vtkSMLink::UpdateDirections) More... | |
void | RemoveAllLinks () override |
Remove all links. More... | |
void | LoadState (const vtkSMMessage *msg, vtkSMProxyLocator *locator) override |
This method is used to initialize the object to the given protobuf state. More... | |
virtual void | SetConvertToIndices (bool) |
Set/Get the convert to indices flag. More... | |
virtual bool | GetConvertToIndices () |
void | AddLinkedSelection (vtkSMProxy *proxy, int updateDir) |
Add a selection to the link. More... | |
void | RemoveLinkedSelection (vtkSMProxy *proxy) |
Add a selection to the link. More... | |
![]() | |
const vtkSMMessage * | GetFullState () override |
This method returns the full object state that can be used to create the object from scratch. More... | |
virtual void | SetPropagateUpdateVTKObjects (int) |
This flag determines if UpdateVTKObjects calls are to be propagated. More... | |
virtual int | GetPropagateUpdateVTKObjects () |
This flag determines if UpdateVTKObjects calls are to be propagated. More... | |
virtual void | PropagateUpdateVTKObjectsOn () |
This flag determines if UpdateVTKObjects calls are to be propagated. More... | |
virtual void | PropagateUpdateVTKObjectsOff () |
This flag determines if UpdateVTKObjects calls are to be propagated. More... | |
virtual void | SetEnabled (bool) |
Get/Set if the link is enabled. More... | |
virtual bool | GetEnabled () |
Get/Set if the link is enabled. More... | |
![]() | |
void | SetSession (vtkSMSession *) override |
Override the SetSession so if the object already have an ID we automatically register it to the associated session. More... | |
bool | HasGlobalID () |
Allow the user to test if the RemoteObject has already a GlobalID without assigning a new one to it. More... | |
virtual void | EnableLocalPushOnly () |
Allow to switch off any push of state change to the server for that particular object. More... | |
virtual void | DisableLocalPushOnly () |
Enable the given remote object to communicate its state normally to the server location. More... | |
virtual bool | IsLocalPushOnly () |
Let the session be aware that even if the Location is client only, the message should not be send to the server for a general broadcast. More... | |
virtual void | SetLocation (vtkTypeUInt32) |
Get/Set the location where the underlying VTK-objects are created. More... | |
virtual vtkTypeUInt32 | GetLocation () |
Get/Set the location where the underlying VTK-objects are created. More... | |
virtual vtkTypeUInt32 | GetGlobalID () |
Get the global unique id for this object. More... | |
const char * | GetGlobalIDAsString () |
Get the global unique id for this object. More... | |
virtual void | PrototypeOn () |
Allow user to set the remote object to be discard for Undo/Redo action. More... | |
virtual void | PrototypeOff () |
Allow user to set the remote object to be discard for Undo/Redo action. More... | |
bool | IsPrototype () |
Allow user to set the remote object to be discard for Undo/Redo action. More... | |
virtual void | SetPrototype (bool) |
Allow user to set the remote object to be discard for Undo/Redo action. More... | |
![]() | |
virtual vtkSMSessionProxyManager * | GetSessionProxyManager () |
Return the corresponding ProxyManager if any. More... | |
virtual vtkSMSession * | GetSession () |
Get/Set the session on wihch this object exists. More... | |
![]() | |
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) |
![]() | |
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 vtkSMSelectionLink * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMSelectionLink * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkSMLink * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkSMRemoteObject * | SafeDownCast (vtkObject *o) |
![]() | |
static vtkSMSessionObject * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMSessionObject * | SafeDownCast (vtkObject *o) |
![]() | |
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 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 vtkTypeBool | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkSMSelectionLink () | |
~vtkSMSelectionLink () override | |
int | LoadXMLState (vtkPVXMLElement *linkElement, vtkSMProxyLocator *locator) override |
Load the link state. More... | |
void | SaveXMLState (const char *linkname, vtkPVXMLElement *parent) override |
Save the state of the link. More... | |
void | UpdateVTKObjects (vtkSMProxy *vtkNotUsed(caller)) override |
Not implemented. More... | |
void | PropertyModified (vtkSMProxy *vtkNotUsed(caller), const char *vtkNotUsed(pname)) override |
Not implemented. More... | |
void | UpdateProperty (vtkSMProxy *vtkNotUsed(caller), const char *vtkNotUsed(pname)) override |
Not implemented. More... | |
virtual void | SelectionModified (vtkSMSourceProxy *caller, unsigned int portIndex) |
This method find the caller in the link and update selection output accordingly. More... | |
void | UpdateState () override |
Update the internal protobuf state. More... | |
![]() | |
vtkSMLink () | |
~vtkSMLink () override | |
void | PushStateToSession () |
When the state has changed we call that method so the state can be shared if any collaboration is involved. More... | |
virtual void | UpdateVTKObjects (vtkSMProxy *proxy)=0 |
Called when an input proxy is updated (UpdateVTKObjects). More... | |
virtual void | PropertyModified (vtkSMProxy *proxy, const char *pname)=0 |
Called when a property of an input proxy is modified. More... | |
virtual void | UpdateProperty (vtkSMProxy *caller, const char *pname)=0 |
Called when a property is pushed. More... | |
void | ObserveProxyUpdates (vtkSMProxy *proxy) |
Subclasses call this method to observer events on a INPUT proxy. More... | |
![]() | |
vtkSMRemoteObject () | |
Default constructor. More... | |
~vtkSMRemoteObject () override | |
Destructor. More... | |
void | PushState (vtkSMMessage *msg) |
Subclasses can call this method to send a message to its state object on the server processes specified. More... | |
bool | PullState (vtkSMMessage *msg) |
Subclasses can call this method to pull the state from the state-object on the server processes specified. More... | |
void | SetGlobalID (vtkTypeUInt32 guid) |
Set the GlobalUniqueId. More... | |
vtkTypeUInt32 | GetFilteredLocation () |
![]() | |
vtkSMSessionObject () | |
~vtkSMSessionObject () override | |
![]() | |
vtkSMObject () | |
~vtkSMObject () override | |
![]() | |
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 () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Friends | |
class | vtkSMSelectionLinkInternals |
class | vtkSMSelectionLinkObserver |
Additional Inherited Members | |
![]() | |
vtkCommand * | Observer |
int | PropagateUpdateVTKObjects |
bool | Enabled |
vtkSMMessage * | State |
![]() | |
vtkTypeUInt32 | GlobalID |
vtkTypeUInt32 | Location |
bool | Prototype |
bool | ClientOnlyLocationFlag |
![]() | |
vtkWeakPointer< vtkSMSession > | Session |
Identifies the session id to which this object is related. More... | |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Creates a link between two properties.
Can create M->N links. At the time when the link is created every output Selection is synchronized with the first input Selection.
Definition at line 21 of file vtkSMSelectionLink.h.
Definition at line 25 of file vtkSMSelectionLink.h.
|
protected |
|
overrideprotected |
|
static |
|
static |
|
overridevirtual |
Reimplemented from vtkSMLink.
void vtkSMSelectionLink::AddLinkedSelection | ( | vtkSMProxy * | proxy, |
int | updateDir | ||
) |
Add a selection to the link.
updateDir determines whether the proxy used is an input or an output. When a selection of an input proxy changes, it's selection is set to all other output proxies in the link. A selection can be set to be both input and output by adding 2 links, one to INPUT and the other to OUTPUT When a link is added, all output Selection values are synchronized with that of the input.
void vtkSMSelectionLink::RemoveLinkedSelection | ( | vtkSMProxy * | proxy | ) |
Add a selection to the link.
updateDir determines whether the proxy used is an input or an output. When a selection of an input proxy changes, it's selection is set to all other output proxies in the link. A selection can be set to be both input and output by adding 2 links, one to INPUT and the other to OUTPUT When a link is added, all output Selection values are synchronized with that of the input.
|
overridevirtual |
Get the number of properties that are involved in this link.
Implements vtkSMLink.
|
overridevirtual |
Get a proxy involved in this link.
Implements vtkSMLink.
Get the direction of a Selection involved in this link (see vtkSMLink::UpdateDirections)
Implements vtkSMLink.
|
overridevirtual |
Remove all links.
Implements vtkSMLink.
|
overridevirtual |
This method is used to initialize the object to the given protobuf state.
Reimplemented from vtkSMLink.
|
virtual |
Set/Get the convert to indices flag.
When on, the input selection will always be converted into an indices based selection before being applied to outputs
|
virtual |
|
overrideprotectedvirtual |
Load the link state.
Implements vtkSMLink.
|
overrideprotectedvirtual |
Save the state of the link.
Implements vtkSMLink.
|
inlineoverrideprotected |
Not implemented.
Definition at line 96 of file vtkSMSelectionLink.h.
|
inlineoverrideprotected |
Not implemented.
Definition at line 101 of file vtkSMSelectionLink.h.
|
inlineoverrideprotected |
Not implemented.
Definition at line 106 of file vtkSMSelectionLink.h.
|
protectedvirtual |
This method find the caller in the link and update selection output accordingly.
|
overrideprotectedvirtual |
Update the internal protobuf state.
Implements vtkSMLink.
|
friend |
Definition at line 80 of file vtkSMSelectionLink.h.
|
friend |
Definition at line 81 of file vtkSMSelectionLink.h.