24 #ifndef vtkSMProxyDefinitionManager_h 25 #define vtkSMProxyDefinitionManager_h 27 #include "vtkPVServerManagerCoreModule.h" 31 #include "vtkWeakPointer.h" 34 class vtkEventForwarderCommand;
41 void PrintSelf(ostream& os, vtkIndent indent);
48 void SynchronizeDefinitions();
84 return this->ProxyDefinitionManager
85 ? this->ProxyDefinitionManager->GetProxyDefinition(group, name, throwError)
90 return this->ProxyDefinitionManager
91 ? this->ProxyDefinitionManager->GetProxyDefinition(group, name)
102 const char* group,
const char* name,
const char* subProxyName,
bool throwError)
104 return this->ProxyDefinitionManager
105 ? this->ProxyDefinitionManager->GetCollapsedProxyDefinition(
106 group, name, subProxyName, throwError)
115 return this->ProxyDefinitionManager
116 ? this->ProxyDefinitionManager->HasDefinition(groupName, proxyName)
126 if (this->ProxyDefinitionManager)
128 this->ProxyDefinitionManager->SaveCustomProxyDefinitions(root);
144 return this->ProxyDefinitionManager ? this->ProxyDefinitionManager->NewIterator() : NULL;
149 return this->ProxyDefinitionManager ? this->ProxyDefinitionManager->NewIterator(scope) : NULL;
162 return this->ProxyDefinitionManager
163 ? this->ProxyDefinitionManager->NewSingleGroupIterator(groupName)
168 return this->ProxyDefinitionManager
169 ? this->ProxyDefinitionManager->NewSingleGroupIterator(groupName, scope)
182 void AddCustomProxyDefinition(
const char* group,
const char* name,
vtkPVXMLElement* top);
183 void RemoveCustomProxyDefinition(
const char* group,
const char* name);
184 void ClearCustomProxyDefinitions();
192 void LoadCustomProxyDefinitionsFromString(
const char* xmlContent);
200 bool LoadConfigurationXMLFromString(
const char* xmlContent);
vtkEventForwarderCommand * Forwarder
vtkSMProxyDefinitionManager is a remote-object that represents the vtkSIProxyDefinitionManager instan...
virtual void LoadState(const vtkSMMessage *msg, vtkSMProxyLocator *locator)
This method is used to initialise the object to the given state If the definitionOnly Flag is set to ...
vtkPVProxyDefinitionIterator * NewSingleGroupIterator(const char *groupName, int scope)
Return a new configured iterator for traversing a set of proxy definition for only one GroupName...
bool HasDefinition(const char *groupName, const char *proxyName)
Return true if the XML Definition was found.
vtkPVXMLElement * GetProxyDefinition(const char *group, const char *name, bool throwError)
Returns a registered proxy definition or return a NULL otherwise.
vtkSMSession is the default ParaView session.
Header class that setup every thing in order to use Protobuf messages in a transparent manner...
vtkPVXMLElement * GetCollapsedProxyDefinition(const char *group, const char *name, const char *subProxyName, bool throwError)
Returns the same thing as GetProxyDefinition in a flatten manner.
VTK_NEWINSTANCE vtkPVProxyDefinitionIterator * NewIterator()
Return a NEW instance of vtkPVProxyDefinitionIterator configured to get through all the definition av...
virtual void SetSession(vtkSMSession *)
Override the SetSession so if the object already have an ID we automatically register it to the assoc...
iterates over all proxy definitions from which the vtkSMProxyManager can use to create new proxy...
vtkWeakPointer< vtkSIProxyDefinitionManager > ProxyDefinitionManager
is used to locate proxies referred to in state xmls while loading state files.
vtkPVXMLElement * GetProxyDefinition(const char *group, const char *name)
Returns a registered proxy definition or return a NULL otherwise.
void SaveCustomProxyDefinitions(vtkPVXMLElement *root)
Save registered custom proxy definitions.
VTK_NEWINSTANCE vtkPVProxyDefinitionIterator * NewIterator(int scope)
Return a NEW instance of vtkPVProxyDefinitionIterator configured to get through all the definition av...
void PrintSelf(ostream &os, vtkIndent indent)
baseclass for all proxy-objects that have counter parts on server as well as client processes...
vtkPVProxyDefinitionIterator * NewSingleGroupIterator(const char *groupName)
Return a new configured iterator for traversing a set of proxy definition for only one GroupName...
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
static vtkSMSessionObject * New()