vtkUnsignedShortArray.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00042 #ifndef __vtkUnsignedShortArray_h
00043 #define __vtkUnsignedShortArray_h
00044
00045
00046 #if !defined(__vtkUnsignedShortArray_cxx)
00047 # define VTK_DATA_ARRAY_TEMPLATE_TYPE unsigned short
00048 #endif
00049
00050 #include "vtkDataArray.h"
00051 #include "vtkDataArrayTemplate.h"
00052
00053
00054 #define vtkDataArray vtkDataArrayTemplate<unsigned short>
00055 class VTK_COMMON_EXPORT vtkUnsignedShortArray : public vtkDataArray
00056 #undef vtkDataArray
00057 {
00058 public:
00059 static vtkUnsignedShortArray* New();
00060 vtkTypeRevisionMacro(vtkUnsignedShortArray,vtkDataArray);
00061 void PrintSelf(ostream& os, vtkIndent indent);
00062
00064
00065 int GetDataType()
00066 { return VTK_UNSIGNED_SHORT; }
00068
00070
00071 unsigned short GetValue(vtkIdType id)
00072 { return this->RealSuperclass::GetValue(id); }
00074
00076
00078 void SetValue(vtkIdType id, unsigned short value)
00079 { this->RealSuperclass::SetValue(id, value); }
00081
00083
00086 void SetNumberOfValues(vtkIdType number)
00087 { this->RealSuperclass::SetNumberOfValues(number); }
00089
00091
00092 void InsertValue(vtkIdType id, unsigned short f)
00093 { this->RealSuperclass::InsertValue(id, f); }
00095
00097
00099 vtkIdType InsertNextValue(unsigned short f)
00100 { return this->RealSuperclass::InsertNextValue(f); }
00102
00104
00107 unsigned short* WritePointer(vtkIdType id, vtkIdType number)
00108 { return this->RealSuperclass::WritePointer(id, number); }
00110
00112
00114 unsigned short* GetPointer(vtkIdType id)
00115 { return this->RealSuperclass::GetPointer(id); }
00117
00119
00125 void SetArray(unsigned short* array, vtkIdType size, int save)
00126 { this->RealSuperclass::SetArray(array, size, save); }
00128
00129 protected:
00130 vtkUnsignedShortArray(vtkIdType numComp=1);
00131 ~vtkUnsignedShortArray();
00132
00133 private:
00134
00135 typedef vtkDataArrayTemplate<unsigned short> RealSuperclass;
00136
00137 vtkUnsignedShortArray(const vtkUnsignedShortArray&);
00138 void operator=(const vtkUnsignedShortArray&);
00139 };
00140
00141 #endif