vtkShortArray.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00041 #ifndef __vtkShortArray_h
00042 #define __vtkShortArray_h
00043
00044
00045 #if !defined(__vtkShortArray_cxx)
00046 # define VTK_DATA_ARRAY_TEMPLATE_TYPE short
00047 #endif
00048
00049 #include "vtkDataArray.h"
00050 #include "vtkDataArrayTemplate.h"
00051
00052
00053 #define vtkDataArray vtkDataArrayTemplate<short>
00054 class VTK_COMMON_EXPORT vtkShortArray : public vtkDataArray
00055 #undef vtkDataArray
00056 {
00057 public:
00058 static vtkShortArray* New();
00059 vtkTypeRevisionMacro(vtkShortArray,vtkDataArray);
00060 void PrintSelf(ostream& os, vtkIndent indent);
00061
00063
00064 int GetDataType()
00065 { return VTK_SHORT; }
00067
00069
00070 short GetValue(vtkIdType id)
00071 { return this->RealSuperclass::GetValue(id); }
00073
00075
00077 void SetValue(vtkIdType id, short value)
00078 { this->RealSuperclass::SetValue(id, value); }
00080
00082
00085 void SetNumberOfValues(vtkIdType number)
00086 { this->RealSuperclass::SetNumberOfValues(number); }
00088
00090
00091 void InsertValue(vtkIdType id, short f)
00092 { this->RealSuperclass::InsertValue(id, f); }
00094
00096
00098 vtkIdType InsertNextValue(short f)
00099 { return this->RealSuperclass::InsertNextValue(f); }
00101
00103
00106 short* WritePointer(vtkIdType id, vtkIdType number)
00107 { return this->RealSuperclass::WritePointer(id, number); }
00109
00111
00113 short* GetPointer(vtkIdType id)
00114 { return this->RealSuperclass::GetPointer(id); }
00116
00118
00124 void SetArray(short* array, vtkIdType size, int save)
00125 { this->RealSuperclass::SetArray(array, size, save); }
00127
00128 protected:
00129 vtkShortArray(vtkIdType numComp=1);
00130 ~vtkShortArray();
00131
00132 private:
00133
00134 typedef vtkDataArrayTemplate<short> RealSuperclass;
00135
00136 vtkShortArray(const vtkShortArray&);
00137 void operator=(const vtkShortArray&);
00138 };
00139
00140 #endif