00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00029 #ifndef __vtkIdTypeArray_h
00030 #define __vtkIdTypeArray_h
00031
00032
00033 #if !(defined(__vtkIdTypeArray_cxx) && defined(VTK_USE_64BIT_IDS)) && (defined(VTK_USE_64BIT_IDS) || !defined(__vtkIntArray_h))
00034 # define VTK_DATA_ARRAY_TEMPLATE_TYPE vtkIdType
00035 #endif
00036
00037 #include "vtkDataArray.h"
00038 #include "vtkDataArrayTemplate.h"
00039
00040
00041 #define vtkDataArray vtkDataArrayTemplate<vtkIdType>
00042 class VTK_COMMON_EXPORT vtkIdTypeArray : public vtkDataArray
00043 #undef vtkDataArray
00044 {
00045 public:
00046 static vtkIdTypeArray* New();
00047 vtkTypeMacro(vtkIdTypeArray,vtkDataArray);
00048 void PrintSelf(ostream& os, vtkIndent indent);
00049
00051
00052 int GetDataType()
00053 { return VTK_ID_TYPE; }
00055
00057
00058 void GetTupleValue(vtkIdType i, vtkIdType* tuple)
00059 { this->RealSuperclass::GetTupleValue(i, tuple); }
00061
00063
00064 void SetTupleValue(vtkIdType i, const vtkIdType* tuple)
00065 { this->RealSuperclass::SetTupleValue(i, tuple); }
00067
00069
00071 void InsertTupleValue(vtkIdType i, const vtkIdType* tuple)
00072 { this->RealSuperclass::InsertTupleValue(i, tuple); }
00074
00076
00078 vtkIdType InsertNextTupleValue(const vtkIdType* tuple)
00079 { return this->RealSuperclass::InsertNextTupleValue(tuple); }
00081
00083
00084 vtkIdType GetValue(vtkIdType id)
00085 { return this->RealSuperclass::GetValue(id); }
00087
00089
00091 void SetValue(vtkIdType id, vtkIdType value)
00092 { this->RealSuperclass::SetValue(id, value); }
00094
00096
00099 void SetNumberOfValues(vtkIdType number)
00100 { this->RealSuperclass::SetNumberOfValues(number); }
00102
00104
00105 void InsertValue(vtkIdType id, vtkIdType f)
00106 { this->RealSuperclass::InsertValue(id, f); }
00108
00110
00112 vtkIdType InsertNextValue(vtkIdType f)
00113 { return this->RealSuperclass::InsertNextValue(f); }
00115
00117
00119 vtkIdType *GetValueRange(int comp)
00120 { return this->RealSuperclass::GetValueRange(comp); }
00121
00122 void GetValueRange(vtkIdType range[2], int comp)
00123 { this->RealSuperclass::GetValueRange(range, comp); }
00124
00126
00128
00130 vtkIdType *GetValueRange()
00131 { return this->RealSuperclass::GetValueRange(0); }
00132
00133 void GetValueRange(vtkIdType range[2])
00134 { this->RealSuperclass::GetValueRange(range, 0); }
00135
00137
00139 static vtkIdType GetDataTypeValueMin() { return -VTK_LARGE_ID-1; }
00140
00142 static vtkIdType GetDataTypeValueMax() { return VTK_LARGE_ID; }
00143
00145
00148 vtkIdType* WritePointer(vtkIdType id, vtkIdType number)
00149 { return this->RealSuperclass::WritePointer(id, number); }
00151
00153
00155 vtkIdType* GetPointer(vtkIdType id)
00156 { return this->RealSuperclass::GetPointer(id); }
00158
00160
00166 void SetArray(vtkIdType* array, vtkIdType size, int save)
00167 { this->RealSuperclass::SetArray(array, size, save); }
00168 void SetArray(vtkIdType* array, vtkIdType size, int save, int deleteMethod)
00169 { this->RealSuperclass::SetArray(array, size, save, deleteMethod); }
00171
00172 protected:
00173 vtkIdTypeArray(vtkIdType numComp=1);
00174 ~vtkIdTypeArray();
00175
00176 private:
00177
00178 typedef vtkDataArrayTemplate<vtkIdType> RealSuperclass;
00179
00180 vtkIdTypeArray(const vtkIdTypeArray&);
00181 void operator=(const vtkIdTypeArray&);
00182 };
00183
00184 #endif