Go to the documentation of this file.
17 #ifndef vtkSMStringVectorProperty_h
18 #define vtkSMStringVectorProperty_h
20 #include "vtkRemotingServerManagerModule.h"
52 int SetElement(
unsigned int idx,
const char* value);
57 int SetElements(
const char* values[],
unsigned int count);
64 int SetElements(
const std::vector<std::string>& newvalue);
71 int SetUncheckedElements(
const char* values[],
unsigned int count);
72 int SetUncheckedElements(
const std::vector<std::string>& newvalue);
78 int AppendElements(
const std::vector<std::string>& newvalue);
83 int AppendUncheckedElements(
const std::vector<std::string>& newvalue);
94 const std::vector<std::string>& GetElements()
const;
95 const std::vector<std::string>& GetUncheckedElements()
const;
101 const char* GetElement(
unsigned int idx);
107 unsigned int GetElementIndex(
const char* value,
int& exists);
118 void SetElementType(
unsigned int idx,
int type);
119 int GetElementType(
unsigned int idx);
128 const char* GetUncheckedElement(
unsigned int idx);
135 void SetUncheckedElement(
unsigned int idx,
const char* value);
167 const char* GetDefaultValue(
int idx);
224 vtkInternals* Internals;
void PrintSelf(ostream &os, vtkIndent indent) override
virtual unsigned int GetNumberOfElements()=0
Returns the size of the vector.
virtual void ReadFrom(const vtkSMMessage *, int vtkNotUsed(message_offset), vtkSMProxyLocator *)
Let the property read and set its content from the stream.
virtual bool IsValueDefault()
Returns true if the property's value is different from the default value.
abstract superclass for all vector properties
virtual unsigned int GetNumberOfUncheckedElements()=0
API for setting unchecked element values.
int ReadXMLAttributes(vtkSMProxy *parent, vtkPVXMLElement *element) override
Set the appropriate ivars from the xml element.
virtual void SetNumberOfElements(unsigned int num)=0
Sets the size of the vector.
superclass for all SM properties
virtual int LoadState(vtkPVXMLElement *element, vtkSMProxyLocator *loader)
Updates state from an XML element.
void ClearUncheckedElements() override=0
API for setting unchecked element values.
proxy for a VTK object(s) on a server
virtual void WriteTo(vtkSMMessage *msg)
Let the property write its content into the stream.
virtual void SaveStateValues(vtkPVXMLElement *propertyElement)
This method must be overridden by concrete class in order to save the real property data.
void Copy(vtkSMProperty *src) override
Copy all property values.
virtual void SetNumberOfUncheckedElements(unsigned int num)=0
API for setting unchecked element values.
Manages allocation and freeing for a string list.
virtual void ResetToXMLDefaults()
For properties that support specifying defaults in XML configuration, this method will reset the prop...
property representing a vector of strings
is used to locate proxies referred to in state xmls while loading state files.
Class used to retrieve a given message state based on its GlobalID.
static vtkSMProperty * New()