vtkSMVectorProperty.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkSMVectorProperty_h
15 #define vtkSMVectorProperty_h
16 
17 #include "vtkRemotingServerManagerModule.h" //needed for exports
18 #include "vtkSMProperty.h"
19 
21 {
22 public:
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25 
29  virtual unsigned int GetNumberOfElements() = 0;
30 
34  virtual void SetNumberOfElements(unsigned int num) = 0;
35 
37 
40  virtual unsigned int GetNumberOfUncheckedElements() = 0;
41  virtual void SetNumberOfUncheckedElements(unsigned int num) = 0;
42  void ClearUncheckedElements() override = 0;
44 
46 
58  vtkGetMacro(RepeatCommand, int);
59  vtkSetMacro(RepeatCommand, int);
60  vtkBooleanMacro(RepeatCommand, int);
62 
64 
76  vtkGetMacro(NumberOfElementsPerCommand, int);
77  vtkSetMacro(NumberOfElementsPerCommand, int);
79 
81 
93  vtkGetMacro(UseIndex, int);
94  vtkSetMacro(UseIndex, int);
95  vtkBooleanMacro(UseIndex, int);
97 
99 
104  vtkSetStringMacro(CleanCommand);
105  vtkGetStringMacro(CleanCommand);
107 
111  void Copy(vtkSMProperty* src) override;
112 
114 
118  vtkSetStringMacro(SetNumberCommand);
119  vtkGetStringMacro(SetNumberCommand);
121 
122  vtkSetStringMacro(InitialString);
123  vtkGetStringMacro(InitialString);
124 
132  bool ResetToDomainDefaults(bool use_unchecked_values = false) override;
133 
134 protected:
136  ~vtkSMVectorProperty() override;
137 
140  int UseIndex;
141 
145 
149  int ReadXMLAttributes(vtkSMProxy* parent, vtkPVXMLElement* element) override;
150 
151 private:
152  vtkSMVectorProperty(const vtkSMVectorProperty&) = delete;
153  void operator=(const vtkSMVectorProperty&) = delete;
154 };
155 
156 #endif
virtual int ReadXMLAttributes(vtkSMProxy *parent, vtkPVXMLElement *element)
Set the appropriate ivars from the xml element.
#define VTKREMOTINGSERVERMANAGER_EXPORT
superclass for all SM properties
virtual void Copy(vtkSMProperty *src)
Copy all property values.
abstract superclass for all vector properties
virtual bool ResetToDomainDefaults(bool use_unchecked_values=false)
Iterates over all domains and call SetDefaultValues() on each domain until the first one returns true...
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void ClearUncheckedElements()
Use this method to clear unchecked values set of this property.