60 #ifndef vtkSMPropertyHelper_h 61 #define vtkSMPropertyHelper_h 63 #include "vtkRemotingServerManagerModule.h" 107 void UpdateValueFromServer();
113 void SetNumberOfElements(
unsigned int elems);
119 unsigned int GetNumberOfElements()
const;
129 vtkVariant GetAsVariant(
unsigned int index)
const;
136 std::vector<T> GetArray()
const;
143 T GetAs(
unsigned int index = 0)
const;
150 void Set(
int value) { this->
Set(0, value); }
151 void Set(
unsigned int index,
int value);
152 void Set(
const int* values,
unsigned int count);
153 int GetAsInt(
unsigned int index = 0)
const;
154 unsigned int Get(
int* values,
unsigned int count = 1)
const;
155 std::vector<int> GetIntArray()
const;
163 void Set(
double value) { this->
Set(0, value); }
164 void Set(
unsigned int index,
double value);
165 void Set(
const double* values,
unsigned int count);
166 double GetAsDouble(
unsigned int index = 0)
const;
167 unsigned int Get(
double* values,
unsigned int count = 1)
const;
168 std::vector<double> GetDoubleArray()
const;
171 #if VTK_SIZEOF_ID_TYPE != VTK_SIZEOF_INT 177 void Set(
vtkIdType value) { this->Set(0, value); }
178 void Set(
unsigned int index,
vtkIdType value);
179 void Set(
const vtkIdType* values,
unsigned int count);
180 unsigned int Get(
vtkIdType* values,
unsigned int count = 1)
const;
182 vtkIdType GetAsIdType(
unsigned int index = 0)
const;
183 std::vector<vtkIdType> GetIdTypeArray()
const;
194 void Set(
const char* value) { this->
Set(0, value); }
195 void Set(
unsigned int index,
const char* value);
196 const char* GetAsString(
unsigned int index = 0)
const;
205 void Set(
vtkSMProxy* value,
unsigned int outputport = 0) { this->
Set(0, value, outputport); }
206 void Set(
unsigned int index,
vtkSMProxy* value,
unsigned int outputport = 0);
207 void Set(
vtkSMProxy** value,
unsigned int count,
unsigned int* outputports = NULL);
208 void Add(
vtkSMProxy* value,
unsigned int outputport = 0);
210 vtkSMProxy* GetAsProxy(
unsigned int index = 0)
const;
211 unsigned int GetOutputPort(
unsigned int index = 0)
const;
220 void SetStatus(
const char* key,
int value);
221 int GetStatus(
const char* key,
int default_value = 0)
const;
230 void SetStatus(
const char* key,
double* values,
int num_values);
231 bool GetStatus(
const char* key,
double* values,
int num_values)
const;
240 void SetStatus(
const int key,
int* values,
int num_values);
241 bool GetStatus(
const int key,
int* values,
int num_values)
const;
250 void SetStatus(
const char* key,
const char* value);
251 const char* GetStatus(
const char* key,
const char* default_value)
const;
260 void SetStatus(
const int key,
int value);
261 int GetStatus(
const int key,
int default_value = 0)
const;
270 void SetInputArrayToProcess(
int fieldAssociation,
const char* arrayName);
271 int GetInputArrayAssociation()
const;
272 const char* GetInputArrayNameToProcess()
const;
302 template <
typename T>
303 T GetProperty(
unsigned int index)
const;
304 template <
typename T>
305 std::vector<T> GetPropertyArray()
const;
306 template <
typename T>
307 unsigned int GetPropertyArray(T* values,
unsigned int count = 1)
const;
308 template <
typename T>
309 void SetProperty(
unsigned int index, T value);
310 template <
typename T>
311 void SetPropertyArray(
const T* values,
unsigned int count);
312 void SetPropertyArrayIdType(
const vtkIdType* values,
unsigned int count);
313 template <
typename T>
356 #if VTK_SIZEOF_ID_TYPE != VTK_SIZEOF_INT 376 #if VTK_SIZEOF_ID_TYPE != VTK_SIZEOF_INT void Set(const char *value)
Set/Get methods for vtkSMStringVectorProperty.
vtkSMInputProperty * InputProperty
vtkSMDoubleVectorProperty * DoubleVectorProperty
property representing pointer(s) to vtkObject(s)
vtkSMProxyProperty * ProxyProperty
void setUseUnchecked(bool useUnchecked)
property representing a vector of strings
vtkSMIdTypeVectorProperty * IdTypeVectorProperty
vtkSMStringVectorProperty * StringVectorProperty
superclass for all SM properties
void Set(vtkSMProxy *value, unsigned int outputport=0)
Set/Get methods for vtkSMProxyProperty or vtkSMInputProperty.
vtkSMVectorProperty * VectorProperty
void Set(double value)
Set/Get methods with double API.
property representing a vector of integers
abstract superclass for all vector properties
bool GetUseUnchecked() const
void RemoveAllValues()
Equivalent to SetNumberOfElements(0).
property representing a vector of integers
std::vector< T > GetArray() const
Templated method to call GetIntArray(), GetDoubleArray(), GetIdTypeArray().
T GetAs(unsigned int index=0) const
Templated method to call GetAsInt(), GetAsDouble(), GetAsIdType() Note, we only provide implementatio...
double GetAsDouble(unsigned int index=0) const
Set/Get methods with double API.
std::vector< vtkIdType > GetIdTypeArray() const
property representing a vector of doubles
std::vector< double > GetDoubleArray() const
Set/Get methods with double API.
vtkIdType GetAsIdType(unsigned int index=0) const
void SetUseUnchecked(bool val)
Get/Set whether to use unchecked properties.
int GetAsInt(unsigned int index=0) const
Set/Get methods with int API.
proxy for a VTK object(s) on a server
void Set(int value)
Set/Get methods with int API.
std::vector< int > GetIntArray() const
Set/Get methods with int API.
vtkSMIntVectorProperty * IntVectorProperty
helper class to get/set property values.