vtkSMProxyGroupDomain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMProxyGroupDomain.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 =========================================================================*/
29 #ifndef vtkSMProxyGroupDomain_h
30 #define vtkSMProxyGroupDomain_h
31 
32 #include "vtkRemotingServerManagerModule.h" //needed for exports
33 #include "vtkSMDomain.h"
34 
35 class vtkSMProperty;
36 class vtkSMProxy;
37 
38 struct vtkSMProxyGroupDomainInternals;
39 
41 {
42 public:
43  static vtkSMProxyGroupDomain* New();
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
51  void AddGroup(const char* group);
52 
58  int IsInDomain(vtkSMProperty* property) override;
59 
63  int IsInDomain(vtkSMProxy* proxy);
64 
68  unsigned int GetNumberOfGroups();
69 
73  const char* GetGroup(unsigned int idx);
74 
78  unsigned int GetNumberOfProxies();
79 
83  vtkSMProxy* GetProxy(const char* name);
84 
88  const char* GetProxyName(unsigned int idx);
89 
93  vtkSMProxy* GetProxy(unsigned int idx);
94 
98  const char* GetProxyName(vtkSMProxy* proxy);
99 
100 protected:
102  ~vtkSMProxyGroupDomain() override;
103 
108  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element) override;
109 
110  vtkSMProxyGroupDomainInternals* PGInternals;
111 
112 private:
114  void operator=(const vtkSMProxyGroupDomain&) = delete;
115 };
116 
117 #endif
#define VTKREMOTINGSERVERMANAGER_EXPORT
union of proxy groups
vtkSMProxyGroupDomainInternals * PGInternals
superclass for all SM properties
represents the possible values a property can have
Definition: vtkSMDomain.h:49
void PrintSelf(ostream &os, vtkIndent indent) override
virtual int ReadXMLAttributes(vtkSMProperty *prop, vtkPVXMLElement *elem)
Set the appropriate ivars from the xml element.
virtual int IsInDomain(vtkSMProperty *vtkNotUsed(property))
Is the (unchecked) value of the property in the domain? Overwritten by sub-classes.
Definition: vtkSMDomain.h:76
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
static vtkSMDomain * New()
This is used by vtkPVXMLParser to represent an XML document starting at the root element.