vtkSMPropertyGroup.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 
4 #ifndef vtkSMPropertyGroup_h
5 #define vtkSMPropertyGroup_h
6 
7 #include "vtkRemotingServerManagerModule.h" //needed for exports
8 #include "vtkSMObject.h"
9 
10 class vtkPVXMLElement;
11 class vtkSMDocumentation;
12 class vtkSMProperty;
13 class vtkSMPropertyGroupInternals;
14 class vtkSMProxy;
15 
16 class VTKREMOTINGSERVERMANAGER_EXPORT vtkSMPropertyGroup : public vtkSMObject
17 {
18 public:
19  static vtkSMPropertyGroup* New();
21  void PrintSelf(ostream& os, vtkIndent indent) override;
22 
24 
27  vtkSetStringMacro(Name);
28  vtkGetStringMacro(Name);
30 
32 
35  vtkSetStringMacro(XMLLabel);
36  vtkGetStringMacro(XMLLabel);
38 
40 
43  vtkSetStringMacro(PanelWidget);
44  vtkGetStringMacro(PanelWidget);
46 
48 
52  vtkSetStringMacro(PanelVisibility);
53  vtkGetStringMacro(PanelVisibility);
55 
57 
64  vtkSetMacro(Collapsed, bool);
65  vtkGetMacro(Collapsed, bool);
66  vtkBooleanMacro(Collapsed, bool);
68 
72  bool IsEmpty() const;
73 
82  void AddProperty(const char* function, vtkSMProperty* property, const char* name = nullptr);
83 
87  const char* GetPropertyName(unsigned int index) const;
88 
92  vtkSMProperty* GetProperty(unsigned int index) const;
93 
97  vtkSMProperty* GetProperty(const char* function) const;
98 
103  const char* GetFunction(vtkSMProperty* property) const;
104 
108  unsigned int GetNumberOfProperties() const;
109 
113  vtkGetObjectMacro(Documentation, vtkSMDocumentation);
114 
116 
124  vtkGetObjectMacro(Hints, vtkPVXMLElement);
125  void SetHints(vtkPVXMLElement* hints);
127 
128 protected:
130  ~vtkSMPropertyGroup() override;
131 
132  friend class vtkSMProxy;
133  virtual int ReadXMLAttributes(vtkSMProxy* parent, vtkPVXMLElement* element);
134 
137 
138 private:
139  vtkSMPropertyGroup(const vtkSMPropertyGroup&) = delete;
140  void operator=(const vtkSMPropertyGroup&) = delete;
141 
142  char* Name;
143  char* XMLLabel;
144  char* PanelWidget;
145  char* PanelVisibility;
146  bool Collapsed = true;
147 
148  vtkSMPropertyGroupInternals* const Internals;
149 };
150 
151 #endif
vtkPVXMLElement * Hints
virtual int ReadXMLAttributes(vtkSMSessionProxyManager *pm, vtkPVXMLElement *element)
Read attributes from an XML element.
superclass for all SM properties
vtkSMDocumentation * Documentation
superclass for most server manager classes
Definition: vtkSMObject.h:17
static vtkSMObject * New()
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
class providing access to the documentation for a vtkSMProxy.
void operator=(const vtkSMProxy &)=delete
vtkSMProxyInternals * Internals
Definition: vtkSMProxy.h:1039
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
char * XMLLabel
Definition: vtkSMProxy.h:990
void PrintSelf(ostream &os, vtkIndent indent) override