ParaView
|
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) |
unsigned int | GetNumberOfLinkedObjects () |
Get the number of properties that are involved in this link. More... | |
vtkSMProxy * | GetLinkedProxy (int index) |
Get a proxy involved in this link. More... | |
int | GetLinkedObjectDirection (int index) |
Get the direction of a Selection involved in this link (see vtkSMLink::UpdateDirections) More... | |
virtual void | RemoveAllLinks () |
Remove all links. More... | |
virtual void | LoadState (const vtkSMMessage *msg, vtkSMProxyLocator *locator) |
This method is used to initialize the object to the given protobuf state. More... | |
void | AddLinkedSelection (vtkSMProxy *proxy, int updateDir) |
Add a selection to the link. More... | |
void | RemoveLinkedSelection (vtkSMProxy *proxy) |
Add a selection to the link. More... | |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual const vtkSMMessage * | GetFullState () |
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 | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetSession (vtkSMSession *) |
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 normaly 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... | |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkSMSessionProxyManager * | GetSessionProxyManager () |
Return the corresponding ProxyManager if any. More... | |
virtual vtkSMSession * | GetSession () |
Get/Set the session on wihch this object exists. More... | |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
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) |
Protected Member Functions | |
vtkSMSelectionLink () | |
~vtkSMSelectionLink () | |
virtual int | LoadXMLState (vtkPVXMLElement *linkElement, vtkSMProxyLocator *locator) |
Load the link state. More... | |
virtual void | SaveXMLState (const char *linkname, vtkPVXMLElement *parent) |
Save the state of the link. More... | |
virtual void | UpdateVTKObjects (vtkSMProxy *vtkNotUsed(caller)) |
Not implemented. More... | |
virtual void | PropertyModified (vtkSMProxy *vtkNotUsed(caller), const char *vtkNotUsed(pname)) |
Not implemented. More... | |
virtual void | UpdateProperty (vtkSMProxy *vtkNotUsed(caller), const char *vtkNotUsed(pname)) |
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... | |
virtual void | UpdateState () |
Update the internal protobuf state. More... | |
![]() | |
vtkSMLink () | |
~vtkSMLink () | |
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... | |
virtual | ~vtkSMRemoteObject () |
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 () | |
![]() | |
vtkSMObject () | |
~vtkSMObject () | |
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 |
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 33 of file vtkSMSelectionLink.h.
Definition at line 37 of file vtkSMSelectionLink.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented from vtkSMLink.
|
static |
|
virtual |
Reimplemented from vtkSMLink.
|
static |
void vtkSMSelectionLink::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
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.
|
virtual |
Get the number of properties that are involved in this link.
Implements vtkSMLink.
|
virtual |
Get a proxy involved in this link.
Implements vtkSMLink.
|
virtual |
Get the direction of a Selection involved in this link (see vtkSMLink::UpdateDirections)
Implements vtkSMLink.
|
virtual |
Remove all links.
Implements vtkSMLink.
|
virtual |
This method is used to initialize the object to the given protobuf state.
Reimplemented from vtkSMLink.
|
protectedvirtual |
Load the link state.
Implements vtkSMLink.
|
protectedvirtual |
Save the state of the link.
Implements vtkSMLink.
|
inlineprotectedvirtual |
Not implemented.
Definition at line 100 of file vtkSMSelectionLink.h.
|
inlineprotectedvirtual |
Not implemented.
Definition at line 105 of file vtkSMSelectionLink.h.
|
inlineprotectedvirtual |
Not implemented.
Definition at line 110 of file vtkSMSelectionLink.h.
|
protectedvirtual |
This method find the caller in the link and update selection output accordingly.
|
protectedvirtual |
Update the internal protobuf state.
Implements vtkSMLink.
|
friend |
Definition at line 84 of file vtkSMSelectionLink.h.
|
friend |
Definition at line 85 of file vtkSMSelectionLink.h.