ParaView
vtkSMGlobalPropertiesProxy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMGlobalPropertiesProxy.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
49 #ifndef vtkSMGlobalPropertiesProxy_h
50 #define vtkSMGlobalPropertiesProxy_h
51 
52 #include "vtkPVServerManagerCoreModule.h" //needed for exports
53 #include "vtkSMProxy.h"
54 
55 class VTKPVSERVERMANAGERCORE_EXPORT vtkSMGlobalPropertiesProxy : public vtkSMProxy
56 {
57 public:
60  void PrintSelf(ostream& os, vtkIndent indent);
61 
68  bool Link(const char* propertyname, vtkSMProxy* targetProxy, const char* targetPropertyName);
69 
73  bool Unlink(const char* propertyname, vtkSMProxy* targetProxy, const char* targetPropertyName);
74 
78  void RemoveAllLinks();
79 
84  const char* GetLinkedPropertyName(vtkSMProxy* targetProxy, const char* targetPropertyName);
85 
87 
91  using Superclass::SaveXMLState;
93 
97  virtual int LoadXMLState(vtkPVXMLElement* element, vtkSMProxyLocator* locator);
98 
99 protected:
102 
106  virtual void SetPropertyModifiedFlag(const char* name, int flag);
107 
111  void TargetPropertyModified(vtkObject*, unsigned long, void*);
112 
113 private:
114  vtkSMGlobalPropertiesProxy(const vtkSMGlobalPropertiesProxy&) VTK_DELETE_FUNCTION;
115  void operator=(const vtkSMGlobalPropertiesProxy&) VTK_DELETE_FUNCTION;
116 
117  class vtkInternals;
118  vtkInternals* Internals;
119 };
120 
121 #endif
virtual void SetPropertyModifiedFlag(const char *name, int flag)
Note on property modified flags: The modified flag of each property associated with a proxy is stored...
void operator=(const vtkSMProxy &) VTK_DELETE_FUNCTION
proxy that adds support for linking properties with other proxies designed for use-cases like color-p...
void PrintSelf(ostream &os, vtkIndent indent)
static vtkSMProxy * New()
virtual int LoadXMLState(vtkPVXMLElement *element, vtkSMProxyLocator *locator)
Loads the proxy state from the XML element.
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
is used to locate proxies referred to in state xmls while loading state files.
vtkSMProxyInternals * Internals
Definition: vtkSMProxy.h:934
virtual vtkPVXMLElement * SaveXMLState(vtkPVXMLElement *root)
Saves the state of the proxy.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
iterates over the properties of a proxy