vtkUnsignedIntArray.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00039 #ifndef __vtkUnsignedIntArray_h
00040 #define __vtkUnsignedIntArray_h
00041
00042
00043 #if !defined(__vtkUnsignedIntArray_cxx)
00044 # define VTK_DATA_ARRAY_TEMPLATE_TYPE unsigned int
00045 #endif
00046
00047 #include "vtkDataArray.h"
00048 #include "vtkDataArrayTemplate.h"
00049
00050
00051 #define vtkDataArray vtkDataArrayTemplate<unsigned int>
00052 class VTK_COMMON_EXPORT vtkUnsignedIntArray : public vtkDataArray
00053 #undef vtkDataArray
00054 {
00055 public:
00056 static vtkUnsignedIntArray* New();
00057 vtkTypeRevisionMacro(vtkUnsignedIntArray,vtkDataArray);
00058 void PrintSelf(ostream& os, vtkIndent indent);
00059
00061
00062 int GetDataType()
00063 { return VTK_UNSIGNED_INT; }
00065
00067
00068 unsigned int GetValue(vtkIdType id)
00069 { return this->RealSuperclass::GetValue(id); }
00071
00073
00075 void SetValue(vtkIdType id, unsigned int value)
00076 { this->RealSuperclass::SetValue(id, value); }
00078
00080
00083 void SetNumberOfValues(vtkIdType number)
00084 { this->RealSuperclass::SetNumberOfValues(number); }
00086
00088
00089 void InsertValue(vtkIdType id, unsigned int f)
00090 { this->RealSuperclass::InsertValue(id, f); }
00092
00094
00096 vtkIdType InsertNextValue(unsigned int f)
00097 { return this->RealSuperclass::InsertNextValue(f); }
00099
00101
00104 unsigned int* WritePointer(vtkIdType id, vtkIdType number)
00105 { return this->RealSuperclass::WritePointer(id, number); }
00107
00109
00111 unsigned int* GetPointer(vtkIdType id)
00112 { return this->RealSuperclass::GetPointer(id); }
00114
00116
00122 void SetArray(unsigned int* array, vtkIdType size, int save)
00123 { this->RealSuperclass::SetArray(array, size, save); }
00125
00126 protected:
00127 vtkUnsignedIntArray(vtkIdType numComp=1);
00128 ~vtkUnsignedIntArray();
00129
00130 private:
00131
00132 typedef vtkDataArrayTemplate<unsigned int> RealSuperclass;
00133
00134 vtkUnsignedIntArray(const vtkUnsignedIntArray&);
00135 void operator=(const vtkUnsignedIntArray&);
00136 };
00137
00138 #endif