#include <vtkSMProxyManager.h>
Inheritance diagram for vtkSMProxyManager:
Public Member Functions | |
vtkTypeRevisionMacro (vtkSMProxyManager, vtkSMObject) | |
void | PrintSelf (ostream &os, vtkIndent indent) |
vtkSMProxy * | NewProxy (const char *groupName, const char *proxyName) |
void | RegisterProxy (const char *groupname, const char *name, vtkSMProxy *proxy) |
unsigned int | GetNumberOfProxies (const char *groupname) |
const char * | GetProxyName (const char *groupname, unsigned int idx) |
const char * | GetProxyName (const char *groupname, vtkSMProxy *proxy) |
const char * | IsProxyInGroup (vtkSMProxy *proxy, const char *groupname) |
void | UnRegisterProxies () |
void | SaveState (const char *filename) |
virtual void | SaveState (const char *, ostream *, vtkIndent) |
void | InstantiateGroupPrototypes (const char *groupName) |
unsigned int | GetNumberOfXMLGroups () |
const char * | GetXMLGroupName (unsigned int n) |
int | ProxyElementExists (const char *groupName, const char *proxyName) |
vtkSMProxy * | GetProxy (const char *groupname, const char *name) |
vtkSMProxy * | GetProxy (const char *name) |
void | UnRegisterProxy (const char *groupname, const char *name) |
void | UnRegisterProxy (const char *name) |
void | UpdateRegisteredProxies (const char *groupname) |
void | UpdateRegisteredProxies () |
Static Public Member Functions | |
vtkSMProxyManager * | New () |
Protected Member Functions | |
vtkSMProxyManager () | |
~vtkSMProxyManager () | |
vtkSMProxy * | NewProxy (vtkPVXMLElement *element, const char *groupname) |
void | AddElement (const char *groupName, const char *name, vtkPVXMLElement *element) |
vtkPVXMLElement * | GetProxyElement (const char *groupName, const char *proxyName) |
Friends | |
class | vtkSMXMLParser |
class | vtkSMProxyIterator |
class | vtkSMProxy |
vtkSMProxyManager is a singleton that creates and manages proxies. It maintains a map of XML elements (populated by the XML parser) from which it can create and initialize proxies and properties. Once a proxy is created, it can either be managed by the user code or the proxy manager. For latter, pass the control of the proxy to the manager with RegisterProxy() and unregister it. At destruction, proxy manager deletes all managed proxies.
Definition at line 41 of file vtkSMProxyManager.h.
|
|
|
|
|
Reimplemented from vtkSMObject. |
|
|
|
Reimplemented from vtkSMObject. |
|
Given a group and proxy name, create and return a proxy instance. The user has to delete the proxy when done. NOTE: If this method is called from a scripting language, it may not be possible to delete the returned object with Delete. The VTK wrappers handle New and Delete specially and may not allow the deletion of object created through other methods. Use UnRegister instead. |
|
Used to pass the control of the proxy to the manager. The user code can then release its reference count and not care about what happens to the proxy. Managed proxies are deleted at destruction. NOTE: The name has to be unique (per group). If not, the existing proxy will be replaced (and unregistered). The proxy instances are grouped in collections (not necessarily the same as the group in the XML configuration file). These collections can be used to separate proxies based on their functionality. For example, implicit planes can be grouped together and the acceptable values of a proxy property can be restricted (using a domain) to this collection. |
|
Given its name (and group) returns a proxy. If not a managed proxy, returns 0. |
|
Given its name (and group) returns a proxy. If not a managed proxy, returns 0. |
|
Returns the number of proxies in a group. |
|
Given a group and an index, returns the name of a proxy. NOTE: This operation is slow. |
|
Given a group and a proxy, return it's name. NOTE: This operation is slow. |
|
Is the proxy is in the given group, return it's name, otherwise return null. NOTE: Any following call to proxy manager might make the returned pointer invalid. |
|
Given its name, unregisters a proxy and remove it from the list of managed proxies. |
|
Given its name, unregisters a proxy and remove it from the list of managed proxies. |
|
Unregisters all managed proxies. |
|
Calls UpdateVTKObjects() on all managed proxies. |
|
Calls UpdateVTKObjects() on all managed proxies. |
|
Save the state of the server manager in XML format in a file. This saves the state of all proxies and properties. NOTE: The XML format is still evolving. |
|
Saves the state of the object in XML format. Should be overwritten by proxies and properties. Reimplemented from vtkSMObject. |
|
Given a group name, create prototypes and store them in a instance group called groupName_prototypes. |
|
Returns the number of XML groups from which proxies can be created. |
|
Returns the name of nth XML group. |
|
Returns 1 if a proxy element of given group and exists, 0 otherwise. If a proxy element does not exist, a call to NewProxy() will fail. |
|
Called by the XML parser to add an element from which a proxy can be created. Called during parsing. |
|
Given an XML element and group name create a proxy and all of it's properties. |
|
Given the proxy name and group name, returns the XML element for the proxy. |
|
Definition at line 142 of file vtkSMProxyManager.h. |
|
Definition at line 143 of file vtkSMProxyManager.h. |
|
Definition at line 144 of file vtkSMProxyManager.h. |