VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkLongLongArray.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 __vtkLongLongArray_h 00024 #define __vtkLongLongArray_h 00025 00026 // Tell the template header how to give our superclass a DLL interface. 00027 #if !defined(__vtkLongLongArray_cxx) 00028 # define VTK_DATA_ARRAY_TEMPLATE_TYPE 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<long long> 00037 class VTKCOMMONCORE_EXPORT vtkLongLongArray : public vtkDataArray 00038 #undef vtkDataArray 00039 { 00040 public: 00041 static vtkLongLongArray* New(); 00042 vtkTypeMacro(vtkLongLongArray,vtkDataArray); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 00046 00047 int GetDataType() 00048 { return VTK_LONG_LONG; } 00050 00052 00053 void GetTupleValue(vtkIdType i, long long* tuple) 00054 { this->RealSuperclass::GetTupleValue(i, tuple); } 00056 00058 00059 void SetTupleValue(vtkIdType i, const long long* tuple) 00060 { this->RealSuperclass::SetTupleValue(i, tuple); } 00062 00064 00066 void InsertTupleValue(vtkIdType i, const long long* tuple) 00067 { this->RealSuperclass::InsertTupleValue(i, tuple); } 00069 00071 00073 vtkIdType InsertNextTupleValue(const long long* tuple) 00074 { return this->RealSuperclass::InsertNextTupleValue(tuple); } 00076 00078 00079 long long GetValue(vtkIdType id) 00080 { return this->RealSuperclass::GetValue(id); } 00082 00084 00086 void SetValue(vtkIdType id, 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, long long f) 00101 { this->RealSuperclass::InsertValue(id, f); } 00103 00105 00107 vtkIdType InsertNextValue(long long f) 00108 { return this->RealSuperclass::InsertNextValue(f); } 00110 00112 00114 long long *GetValueRange(int comp) 00115 { return this->RealSuperclass::GetValueRange(comp); } 00116 //BTX 00117 void GetValueRange(long long range[2], int comp) 00118 { this->RealSuperclass::GetValueRange(range, comp); } 00119 //ETX 00121 00123 00125 long long *GetValueRange() 00126 { return this->RealSuperclass::GetValueRange(0); } 00127 //BTX 00128 void GetValueRange(long long range[2]) 00129 { this->RealSuperclass::GetValueRange(range, 0); } 00130 //ETX 00132 00134 static long long GetDataTypeValueMin() { return VTK_LONG_LONG_MIN; } 00135 00137 static long long GetDataTypeValueMax() { return VTK_LONG_LONG_MAX; } 00138 00140 00143 long long* WritePointer(vtkIdType id, vtkIdType number) 00144 { return this->RealSuperclass::WritePointer(id, number); } 00146 00148 00150 long long* GetPointer(vtkIdType id) 00151 { return this->RealSuperclass::GetPointer(id); } 00153 00155 00161 void SetArray(long long* array, vtkIdType size, int save) 00162 { this->RealSuperclass::SetArray(array, size, save); } 00163 void SetArray(long long* array, vtkIdType size, int save, int deleteMethod) 00164 { this->RealSuperclass::SetArray(array, size, save, deleteMethod); } 00166 00167 protected: 00168 vtkLongLongArray(vtkIdType numComp=1); 00169 ~vtkLongLongArray(); 00170 00171 private: 00172 //BTX 00173 typedef vtkDataArrayTemplate<long long> RealSuperclass; 00174 //ETX 00175 vtkLongLongArray(const vtkLongLongArray&); // Not implemented. 00176 void operator=(const vtkLongLongArray&); // Not implemented. 00177 }; 00178 00179 #endif