13 #ifndef vtkSMStateLoader_h 14 #define vtkSMStateLoader_h 26 struct vtkSMStateLoaderInternals;
38 int LoadState(
vtkPVXMLElement* rootElement,
bool keepOriginalId =
false);
54 vtkSetMacro(KeepIdMapping,
int);
55 vtkGetMacro(KeepIdMapping,
int);
56 vtkBooleanMacro(KeepIdMapping,
int);
66 vtkTypeUInt32* GetMappingArray(
int& size);
99 const char* xmlgroup,
const char* xmlname,
const char* subProxyName =
nullptr)
override;
114 virtual void RegisterProxy(vtkTypeUInt32
id,
vtkSMProxy* proxy);
115 virtual void RegisterProxyInternal(
const char* group,
const char* name,
vtkSMProxy* proxy);
127 virtual bool UpdateRegistrationInfo(std::string& group, std::string& name,
vtkSMProxy* proxy);
151 vtkSMProxy* LocateExistingProxyUsingRegistrationName(vtkTypeUInt32
id);
161 vtkSMStateLoaderInternals* Internal;
vtkSMProxy * CreateProxy(const char *xmlgroup, const char *xmlname, const char *subProxyName=nullptr) override
Create a new proxy of the given group and name.
vtkPVXMLElement * ServerManagerStateElement
vtkSMProxyLocator * ProxyLocator
void PrintSelf(ostream &os, vtkIndent indent) override
#define VTKREMOTINGSERVERMANAGER_EXPORT
virtual void CreatedNewProxy(vtkTypeUInt32 id, vtkSMProxy *proxy)
Called after a new proxy has been created.
static vtkSMDeserializerXML * New()
proxy for a VTK object(s) on a server
is used to locate proxies referred to in state xmls while loading state files.
deserializes proxies from their XML states.
Utility class to load state from XML.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
virtual vtkPVXMLElement * LocateProxyElement(vtkTypeUInt32 id)
Locate the XML for the proxy with the given id.