29 #ifndef vtkSMStringVectorProperty_h 30 #define vtkSMStringVectorProperty_h 32 #include "vtkPVServerManagerCoreModule.h" 46 void PrintSelf(ostream& os, vtkIndent indent);
64 int SetElement(
unsigned int idx,
const char* value);
69 int SetElements(
const char* values[],
unsigned int count);
76 int SetElements(
const std::vector<std::string>& newvalue);
83 int SetUncheckedElements(
const char* values[],
unsigned int count);
84 int SetUncheckedElements(
const std::vector<std::string>& newvalue);
95 const char* GetElement(
unsigned int idx);
101 unsigned int GetElementIndex(
const char* value,
int& exists);
112 void SetElementType(
unsigned int idx,
int type);
113 int GetElementType(
unsigned int idx);
122 const char* GetUncheckedElement(
unsigned int idx);
129 void SetUncheckedElement(
unsigned int idx,
const char* value);
161 const char* GetDefaultValue(
int idx);
218 vtkInternals* Internals;
virtual void SaveStateValues(vtkPVXMLElement *propertyElement)
This method must be overiden by concrete class in order to save the real property data...
virtual void WriteTo(vtkSMMessage *msg)
Let the property write its content into the stream.
virtual int ReadXMLAttributes(vtkSMProxy *parent, vtkPVXMLElement *element)
Set the appropriate ivars from the xml element.
virtual void SetNumberOfUncheckedElements(unsigned int num)=0
API for setting unchecked element values.
property representing a vector of strings
superclass for all SM properties
void PrintSelf(ostream &os, vtkIndent indent)
virtual void SetNumberOfElements(unsigned int num)=0
Sets the size of the vector.
abstract superclass for all vector properties
Header class that setup every thing in order to use Protobuf messages in a transparent manner...
virtual void ClearUncheckedElements()=0
API for setting unchecked element values.
static vtkSMProperty * New()
virtual unsigned int GetNumberOfUncheckedElements()=0
API for setting unchecked element values.
virtual void ReadFrom(const vtkSMMessage *, int vtkNotUsed(message_offset), vtkSMProxyLocator *)
Let the property read and set its content from the stream.
proxy for a VTK object(s) on a server
is used to locate proxies referred to in state xmls while loading state files.
virtual void ResetToXMLDefaults()
For properties that support specifying defaults in XML configuration, this method will reset the prop...
virtual void Copy(vtkSMProperty *src)
Copy all property values.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
virtual int LoadState(vtkPVXMLElement *element, vtkSMProxyLocator *loader)
Updates state from an XML element.
virtual bool IsValueDefault()
Returns true if the property's value is different from the default value.
virtual unsigned int GetNumberOfElements()=0
Returns the size of the vector.
Class used to retreive a given message state based on its GlobalID.