vtkSMProxyGroupDomain.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkSMProxyGroupDomain_h
18 #define vtkSMProxyGroupDomain_h
19 
20 #include "vtkRemotingServerManagerModule.h" //needed for exports
21 #include "vtkSMDomain.h"
22 
23 class vtkSMProperty;
24 class vtkSMProxy;
25 
26 struct vtkSMProxyGroupDomainInternals;
27 
29 {
30 public:
31  static vtkSMProxyGroupDomain* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
39  void AddGroup(const char* group);
40 
46  int IsInDomain(vtkSMProperty* property) override;
47 
51  int IsInDomain(vtkSMProxy* proxy);
52 
56  unsigned int GetNumberOfGroups();
57 
61  const char* GetGroup(unsigned int idx);
62 
66  unsigned int GetNumberOfProxies();
67 
71  vtkSMProxy* GetProxy(const char* name);
72 
76  const char* GetProxyName(unsigned int idx);
77 
81  vtkSMProxy* GetProxy(unsigned int idx);
82 
86  const char* GetProxyName(vtkSMProxy* proxy);
87 
88 protected:
90  ~vtkSMProxyGroupDomain() override;
91 
96  int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element) override;
97 
98  vtkSMProxyGroupDomainInternals* PGInternals;
99 
100 private:
102  void operator=(const vtkSMProxyGroupDomain&) = delete;
103 };
104 
105 #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:37
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:64
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
static vtkSMDomain * New()
This is used by vtkPVXMLParser to represent an XML document starting at the root element.