VTK
dox/Common/Core/vtkUnsignedLongLongArray.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkUnsignedLongLongArray.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00023 #ifndef __vtkUnsignedLongLongArray_h
00024 #define __vtkUnsignedLongLongArray_h
00025 
00026 // Tell the template header how to give our superclass a DLL interface.
00027 #if !defined(__vtkUnsignedLongLongArray_cxx)
00028 # define VTK_DATA_ARRAY_TEMPLATE_TYPE unsigned long long
00029 #endif
00030 
00031 #include "vtkCommonCoreModule.h" // For export macro
00032 #include "vtkDataArray.h"
00033 #include "vtkDataArrayTemplate.h" // Real Superclass
00034 
00035 // Fake the superclass for the wrappers.
00036 #define vtkDataArray vtkDataArrayTemplate<unsigned long long>
00037 class VTKCOMMONCORE_EXPORT vtkUnsignedLongLongArray : public vtkDataArray
00038 #undef vtkDataArray
00039 {
00040 public:
00041   static vtkUnsignedLongLongArray* New();
00042   vtkTypeMacro(vtkUnsignedLongLongArray,vtkDataArray);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044 
00046 
00047   int GetDataType()
00048     { return VTK_UNSIGNED_LONG_LONG; }
00050 
00052 
00053   void GetTupleValue(vtkIdType i, unsigned long long* tuple)
00054     { this->RealSuperclass::GetTupleValue(i, tuple); }
00056 
00058 
00059   void SetTupleValue(vtkIdType i, const unsigned long long* tuple)
00060     { this->RealSuperclass::SetTupleValue(i, tuple); }
00062 
00064 
00066   void InsertTupleValue(vtkIdType i, const unsigned long long* tuple)
00067     { this->RealSuperclass::InsertTupleValue(i, tuple); }
00069 
00071 
00073   vtkIdType InsertNextTupleValue(const unsigned long long* tuple)
00074     { return this->RealSuperclass::InsertNextTupleValue(tuple); }
00076 
00078 
00079   unsigned long long GetValue(vtkIdType id)
00080     { return this->RealSuperclass::GetValue(id); }
00082 
00084 
00086   void SetValue(vtkIdType id, unsigned long long value)
00087     { this->RealSuperclass::SetValue(id, value); }
00089 
00091 
00094   void SetNumberOfValues(vtkIdType number)
00095     { this->RealSuperclass::SetNumberOfValues(number); }
00097 
00099 
00100   void InsertValue(vtkIdType id, unsigned long long f)
00101     { this->RealSuperclass::InsertValue(id, f); }
00103 
00105 
00107   vtkIdType InsertNextValue(unsigned long long f)
00108     { return this->RealSuperclass::InsertNextValue(f); }
00110 
00112 
00114   unsigned long long *GetValueRange(int comp)
00115     { return this->RealSuperclass::GetValueRange(comp); }
00116 //BTX
00117   void GetValueRange(unsigned long long range[2], int comp)
00118     { this->RealSuperclass::GetValueRange(range, comp); }
00119 //ETX
00121 
00123 
00125   unsigned long long *GetValueRange()
00126     { return this->RealSuperclass::GetValueRange(0); }
00127 //BTX
00128   void GetValueRange(unsigned long long range[2])
00129     { this->RealSuperclass::GetValueRange(range, 0); }
00130 //ETX
00132 
00134   static unsigned long long GetDataTypeValueMin() {return VTK_UNSIGNED_LONG_LONG_MIN;}
00135 
00137   static unsigned long long GetDataTypeValueMax() {return VTK_UNSIGNED_LONG_LONG_MAX;}
00138 
00140 
00143   unsigned long long* WritePointer(vtkIdType id, vtkIdType number)
00144     { return this->RealSuperclass::WritePointer(id, number); }
00146 
00148 
00150   unsigned long long* GetPointer(vtkIdType id)
00151     { return this->RealSuperclass::GetPointer(id); }
00153 
00155 
00161   void SetArray(unsigned long long* array, vtkIdType size, int save)
00162     { this->RealSuperclass::SetArray(array, size, save); }
00163   void SetArray(unsigned long long* array, vtkIdType size, int save, int deleteMethod)
00164     { this->RealSuperclass::SetArray(array, size, save, deleteMethod); }
00166 
00167 protected:
00168   vtkUnsignedLongLongArray(vtkIdType numComp=1);
00169   ~vtkUnsignedLongLongArray();
00170 
00171 private:
00172   //BTX
00173   typedef vtkDataArrayTemplate<unsigned long long> RealSuperclass;
00174   //ETX
00175   vtkUnsignedLongLongArray(const vtkUnsignedLongLongArray&);  // Not implemented.
00176   void operator=(const vtkUnsignedLongLongArray&);  // Not implemented.
00177 };
00178 
00179 #endif