00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00024 #ifndef __vtkSMIdTypeVectorProperty_h
00025 #define __vtkSMIdTypeVectorProperty_h
00026
00027 #include "vtkSMVectorProperty.h"
00028
00029
00030 struct vtkSMIdTypeVectorPropertyInternals;
00031
00032
00033 class VTK_EXPORT vtkSMIdTypeVectorProperty : public vtkSMVectorProperty
00034 {
00035 public:
00036 static vtkSMIdTypeVectorProperty* New();
00037 vtkTypeRevisionMacro(vtkSMIdTypeVectorProperty, vtkSMVectorProperty);
00038 void PrintSelf(ostream& os, vtkIndent indent);
00039
00041 virtual unsigned int GetNumberOfElements();
00042
00045 virtual void SetNumberOfElements(unsigned int num);
00046
00050 int SetElement(unsigned int idx, vtkIdType value);
00051
00056 int SetElements(const vtkIdType* values);
00057
00061 int SetElements1(vtkIdType value0);
00062
00067 int SetElements2(vtkIdType value0, vtkIdType value1);
00068
00073 int SetElements3(vtkIdType value0, vtkIdType value1, vtkIdType value2);
00074
00076 vtkIdType GetElement(unsigned int idx);
00077
00082 vtkIdType GetUncheckedElement(unsigned int idx);
00083
00087 void SetUncheckedElement(unsigned int idx, vtkIdType value);
00088
00092 virtual unsigned int GetNumberOfUncheckedElements();
00093
00095
00101 vtkGetMacro(ArgumentIsArray, int);
00102 vtkSetMacro(ArgumentIsArray, int);
00103 vtkBooleanMacro(ArgumentIsArray, int);
00105
00107 virtual void Copy(vtkSMProperty* src);
00108
00109 protected:
00110 vtkSMIdTypeVectorProperty();
00111 ~vtkSMIdTypeVectorProperty();
00112
00113 virtual int ReadXMLAttributes(vtkSMProxy* parent,
00114 vtkPVXMLElement* element);
00115
00116 vtkSMIdTypeVectorPropertyInternals* Internals;
00117
00118 int ArgumentIsArray;
00119
00120 virtual void SaveState(const char* name, ostream* file, vtkIndent indent);
00121
00125 virtual void SetNumberOfUncheckedElements(unsigned int num);
00126
00127
00129
00132 virtual void AppendCommandToStream(
00133 vtkSMProxy*, vtkClientServerStream* stream, vtkClientServerID objectId );
00134
00136
00137 private:
00138 vtkSMIdTypeVectorProperty(const vtkSMIdTypeVectorProperty&);
00139 void operator=(const vtkSMIdTypeVectorProperty&);
00140 };
00141
00142 #endif