60 #ifndef vtkSMPropertyHelper_h 61 #define vtkSMPropertyHelper_h 107 void UpdateValueFromServer();
113 void SetNumberOfElements(
unsigned int elems);
119 unsigned int GetNumberOfElements()
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 void Append(
const int* values,
unsigned int count);
154 int GetAsInt(
unsigned int index = 0)
const;
155 unsigned int Get(
int* values,
unsigned int count = 1)
const;
156 std::vector<int> GetIntArray()
const;
164 void Set(
double value) { this->
Set(0, value); }
165 void Set(
unsigned int index,
double value);
166 void Set(
const double* values,
unsigned int count);
167 void Append(
const double* values,
unsigned int count);
168 double GetAsDouble(
unsigned int index = 0)
const;
169 unsigned int Get(
double* values,
unsigned int count = 1)
const;
170 std::vector<double> GetDoubleArray()
const;
173 #if VTK_SIZEOF_ID_TYPE != VTK_SIZEOF_INT 179 void Set(
vtkIdType value) { this->Set(0, value); }
180 void Set(
unsigned int index,
vtkIdType value);
181 void Set(
const vtkIdType* values,
unsigned int count);
182 void Append(
const vtkIdType* values,
unsigned int count);
183 unsigned int Get(
vtkIdType* values,
unsigned int count = 1)
const;
185 vtkIdType GetAsIdType(
unsigned int index = 0)
const;
186 std::vector<vtkIdType> GetIdTypeArray()
const;
197 void Set(
const char* value) { this->
Set(0, value); }
198 void Set(
unsigned int index,
const char* value);
199 const char* GetAsString(
unsigned int index = 0)
const;
208 void Set(
vtkSMProxy* value,
unsigned int outputport = 0) { this->
Set(0, value, outputport); }
209 void Set(
unsigned int index,
vtkSMProxy* value,
unsigned int outputport = 0);
210 void Set(
vtkSMProxy** value,
unsigned int count,
unsigned int* outputports = NULL);
211 void Add(
vtkSMProxy* value,
unsigned int outputport = 0);
213 vtkSMProxy* GetAsProxy(
unsigned int index = 0)
const;
214 unsigned int GetOutputPort(
unsigned int index = 0)
const;
223 void SetStatus(
const char*
key,
int value);
224 int GetStatus(
const char* key,
int default_value = 0)
const;
233 void SetStatus(
const char* key,
double* values,
int num_values);
234 bool GetStatus(
const char* key,
double* values,
int num_values)
const;
243 void SetStatus(
const int key,
int* values,
int num_values);
244 bool GetStatus(
const int key,
int* values,
int num_values)
const;
253 void SetStatus(
const char* key,
const char* value);
254 const char* GetStatus(
const char* key,
const char* default_value)
const;
263 void SetStatus(
const int key,
int value);
264 int GetStatus(
const int key,
int default_value = 0)
const;
273 void SetInputArrayToProcess(
int fieldAssociation,
const char* arrayName);
274 int GetInputArrayAssociation()
const;
275 const char* GetInputArrayNameToProcess()
const;
305 template <
typename T>
306 T GetProperty(
unsigned int index)
const;
307 template <
typename T>
308 std::vector<T> GetPropertyArray()
const;
309 template <
typename T>
310 unsigned int GetPropertyArray(T* values,
unsigned int count = 1)
const;
311 template <
typename T>
312 void SetProperty(
unsigned int index, T value);
313 template <
typename T>
314 void SetPropertyArray(
const T* values,
unsigned int count);
315 void SetPropertyArrayIdType(
const vtkIdType* values,
unsigned int count);
316 template <
typename T>
317 void AppendPropertyArray(
const T* values,
unsigned int count);
318 template <
typename T>
352 return this->GetIntArray();
358 return this->GetDoubleArray();
361 #if VTK_SIZEOF_ID_TYPE != VTK_SIZEOF_INT 365 return this->GetIdTypeArray();
372 return this->GetAsInt(index);
378 return this->GetAsDouble(index);
381 #if VTK_SIZEOF_ID_TYPE != VTK_SIZEOF_INT 385 return this->GetAsIdType(index);
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)
#define VTKREMOTINGSERVERMANAGER_EXPORT
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...
property representing a vector of doubles
void SetUseUnchecked(bool val)
Get/Set whether to use unchecked properties.
proxy for a VTK object(s) on a server
void Set(int value)
Set/Get methods with int API.
vtkSMIntVectorProperty * IntVectorProperty
helper class to get/set property values.