30 #ifndef vtkSIProxyDefinitionManager_h 31 #define vtkSIProxyDefinitionManager_h 50 static vtkTypeUInt32 GetReservedGlobalID();
66 vtkPVXMLElement* GetProxyDefinition(
const char* group,
const char* name,
bool throwError);
70 return this->GetProxyDefinition(group, name,
true);
77 bool HasDefinition(
const char* groupName,
const char* proxyName);
86 const char* group,
const char*
name,
const char* subProxyName,
bool throwError);
88 const char* group,
const char* name,
const char* subProxyName)
90 return this->GetCollapsedProxyDefinition(group, name, subProxyName,
true);
105 void AddCustomProxyDefinition(
const char* group,
const char* name,
vtkPVXMLElement*
top);
106 void AddCustomProxyDefinition(
107 const char* groupName,
const char* proxyName,
const char* xmlcontents);
116 void RemoveCustomProxyDefinition(
const char* group,
const char* name);
124 void ClearCustomProxyDefinitions();
131 void LoadCustomProxyDefinitionsFromString(
const char* xmlContent);
145 bool LoadConfigurationXMLFromString(
const char* xmlContent);
150 ProxyDefinitionsUpdated = 2000,
151 CompoundProxyDefinitionsUpdated = 2001
166 CORE_DEFINITIONS = 1,
167 CUSTOM_DEFINITIONS = 2
188 const char* groupName,
int scope = ALL_DEFINITIONS);
195 void EnableXMLProxyDefnitionUpdate(
bool);
221 const char* groupName,
const char* proxyName,
bool isCustom =
false)
223 this->GroupName = groupName;
224 this->ProxyName = proxyName;
225 this->CustomDefinition = isCustom;
246 void AttachShowInMenuHintsToProxyFromProxyGroups(
vtkPVXMLElement* root);
258 bool LoadConfigurationXML(
vtkPVXMLElement* root,
bool attachShowInMenuHints,
bool invoke =
true);
259 bool LoadConfigurationXMLFromString(
260 const char* xmlContent,
bool attachShowInMenuHints,
bool invoke =
true);
267 void OnPluginLoaded(
vtkObject* caller,
unsigned long event,
void* calldata);
275 void AddElement(
const char* groupName,
const char* proxyName,
vtkPVXMLElement* element);
280 bool AddCustomProxyDefinitionInternal(
const char* group,
const char* name,
vtkPVXMLElement* top);
295 void InvalidateCollapsedDefinition();
301 vtkPVXMLElement* GetProxyElement(
const char* groupName,
const char* proxyName);
312 void InvokeCustomDefitionsUpdated();
319 vtkInternals* Internals;
320 vtkInternals* InternalsFlatten;
virtual void Push(vtkSMMessage *msg)
Push a new state to the underneath implementation The provided implementation just store the message ...
#define VTKREMOTINGSERVERMANAGER_EXPORT
defines the core interface for any ParaView plugin.
static vtkSIObject * New()
Header class that setup every thing in order to use Protobuf messages in a transparent manner...
vtkPVXMLElement * GetProxyDefinition(const char *group, const char *name)
Returns a registered proxy definition or return a nullptr otherwise.
virtual void Pull(vtkSMMessage *msg)
Pull the current state of the underneath implementation The provided implementation update the given ...
iterates over all proxy definitions from which the vtkSMProxyManager can use to create new proxy...
Object that is managed by vtkPVSessionCore which wrap concrete class such as the vtk ones...
object responsible for managing XML proxies definitions
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
vtkPVXMLElement * GetCollapsedProxyDefinition(const char *group, const char *name, const char *subProxyName)
Returns the same thing as GetProxyDefinition in a flatten manner.
void PrintSelf(ostream &os, vtkIndent indent) override