00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00026 #ifndef __vtkIdTypeArray_h
00027 #define __vtkIdTypeArray_h
00028 
00029 
00030 #if !(defined(__vtkIdTypeArray_cxx) && defined(VTK_USE_64BIT_IDS)) && (defined(VTK_USE_64BIT_IDS) || !defined(__vtkIntArray_h))
00031 # define VTK_DATA_ARRAY_TEMPLATE_TYPE vtkIdType
00032 #endif
00033 
00034 #include "vtkDataArray.h"
00035 #include "vtkDataArrayTemplate.h" 
00036 
00037 
00038 #define vtkDataArray vtkDataArrayTemplate<vtkIdType>
00039 class VTK_COMMON_EXPORT vtkIdTypeArray : public vtkDataArray
00040 #undef vtkDataArray
00041 {
00042 public:
00043   static vtkIdTypeArray* New();
00044   vtkTypeRevisionMacro(vtkIdTypeArray,vtkDataArray);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048 
00049   int GetDataType()
00050     { return VTK_ID_TYPE; }
00052 
00054 
00055   void GetTupleValue(vtkIdType i, vtkIdType* tuple)
00056     { this->RealSuperclass::GetTupleValue(i, tuple); }
00058 
00060 
00061   void SetTupleValue(vtkIdType i, const vtkIdType* tuple)
00062     { this->RealSuperclass::SetTupleValue(i, tuple); }
00064 
00066 
00068   void InsertTupleValue(vtkIdType i, const vtkIdType* tuple)
00069     { this->RealSuperclass::InsertTupleValue(i, tuple); }
00071 
00073 
00075   vtkIdType InsertNextTupleValue(const vtkIdType* tuple)
00076     { return this->RealSuperclass::InsertNextTupleValue(tuple); }
00078 
00080 
00081   vtkIdType GetValue(vtkIdType id)
00082     { return this->RealSuperclass::GetValue(id); }
00084 
00086 
00088   void SetValue(vtkIdType id, vtkIdType value)
00089     { this->RealSuperclass::SetValue(id, value); }
00091 
00093 
00096   void SetNumberOfValues(vtkIdType number)
00097     { this->RealSuperclass::SetNumberOfValues(number); }
00099 
00101 
00102   void InsertValue(vtkIdType id, vtkIdType f)
00103     { this->RealSuperclass::InsertValue(id, f); }
00105 
00107 
00109   vtkIdType InsertNextValue(vtkIdType f)
00110     { return this->RealSuperclass::InsertNextValue(f); }
00112 
00114 
00117   vtkIdType* WritePointer(vtkIdType id, vtkIdType number)
00118     { return this->RealSuperclass::WritePointer(id, number); }
00120 
00122 
00124   vtkIdType* GetPointer(vtkIdType id)
00125     { return this->RealSuperclass::GetPointer(id); }
00127 
00129 
00135   void SetArray(vtkIdType* array, vtkIdType size, int save)
00136     { this->RealSuperclass::SetArray(array, size, save); }
00137   void SetArray(vtkIdType* array, vtkIdType size, int save, int deleteMethod)
00138     { this->RealSuperclass::SetArray(array, size, save, deleteMethod); }
00140 
00141 protected:
00142   vtkIdTypeArray(vtkIdType numComp=1);
00143   ~vtkIdTypeArray();
00144 
00145 private:
00146   
00147   typedef vtkDataArrayTemplate<vtkIdType> RealSuperclass;
00148   
00149   vtkIdTypeArray(const vtkIdTypeArray&);  
00150   void operator=(const vtkIdTypeArray&);  
00151 };
00152 
00153 #endif