VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtk__Int64Array.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 __vtk__Int64Array_h 00024 #define __vtk__Int64Array_h 00025 00026 // Tell the template header how to give our superclass a DLL interface. 00027 #if !defined(__vtk__Int64Array_cxx) 00028 # define VTK_DATA_ARRAY_TEMPLATE_TYPE __int64 00029 #endif 00030 00031 #include "vtkDataArray.h" 00032 #include "vtkDataArrayTemplate.h" // Real Superclass 00033 00034 // Fake the superclass for the wrappers. 00035 #define vtkDataArray vtkDataArrayTemplate<__int64> 00036 class VTK_COMMON_EXPORT vtk__Int64Array : public vtkDataArray 00037 #undef vtkDataArray 00038 { 00039 public: 00040 static vtk__Int64Array* New(); 00041 vtkTypeMacro(vtk__Int64Array,vtkDataArray); 00042 void PrintSelf(ostream& os, vtkIndent indent); 00043 00045 00046 int GetDataType() 00047 { return VTK___INT64; } 00049 00051 00052 void GetTupleValue(vtkIdType i, __int64* tuple) 00053 { this->RealSuperclass::GetTupleValue(i, tuple); } 00055 00057 00058 void SetTupleValue(vtkIdType i, const __int64* tuple) 00059 { this->RealSuperclass::SetTupleValue(i, tuple); } 00061 00063 00065 void InsertTupleValue(vtkIdType i, const __int64* tuple) 00066 { this->RealSuperclass::InsertTupleValue(i, tuple); } 00068 00070 00072 vtkIdType InsertNextTupleValue(const __int64* tuple) 00073 { return this->RealSuperclass::InsertNextTupleValue(tuple); } 00075 00077 00078 __int64 GetValue(vtkIdType id) 00079 { return this->RealSuperclass::GetValue(id); } 00081 00083 00085 void SetValue(vtkIdType id, __int64 value) 00086 { this->RealSuperclass::SetValue(id, value); } 00088 00090 00093 void SetNumberOfValues(vtkIdType number) 00094 { this->RealSuperclass::SetNumberOfValues(number); } 00096 00098 00099 void InsertValue(vtkIdType id, __int64 f) 00100 { this->RealSuperclass::InsertValue(id, f); } 00102 00104 00106 vtkIdType InsertNextValue(__int64 f) 00107 { return this->RealSuperclass::InsertNextValue(f); } 00109 00111 00113 __int64 *GetValueRange(int comp) 00114 { return this->RealSuperclass::GetValueRange(comp); } 00115 //BTX 00116 void GetValueRange(__int64 range[2], int comp) 00117 { this->RealSuperclass::GetValueRange(range, comp); } 00118 //ETX 00120 00122 00124 __int64 *GetValueRange() 00125 { return this->RealSuperclass::GetValueRange(0); } 00126 //BTX 00127 void GetValueRange(__int64 range[2]) 00128 { this->RealSuperclass::GetValueRange(range, 0); } 00129 //ETX 00131 00133 static __int64 GetDataTypeValueMin() { return VTK___INT64_MIN; } 00134 00136 static __int64 GetDataTypeValueMax() { return VTK___INT64_MAX; } 00137 00139 00142 __int64* WritePointer(vtkIdType id, vtkIdType number) 00143 { return this->RealSuperclass::WritePointer(id, number); } 00145 00147 00149 __int64* GetPointer(vtkIdType id) 00150 { return this->RealSuperclass::GetPointer(id); } 00152 00154 00160 void SetArray(__int64* array, vtkIdType size, int save) 00161 { this->RealSuperclass::SetArray(array, size, save); } 00162 void SetArray(__int64* array, vtkIdType size, int save, int deleteMethod) 00163 { this->RealSuperclass::SetArray(array, size, save, deleteMethod); } 00165 00166 protected: 00167 vtk__Int64Array(vtkIdType numComp=1); 00168 ~vtk__Int64Array(); 00169 00170 private: 00171 //BTX 00172 typedef vtkDataArrayTemplate<__int64> RealSuperclass; 00173 //ETX 00174 vtk__Int64Array(const vtk__Int64Array&); // Not implemented. 00175 void operator=(const vtk__Int64Array&); // Not implemented. 00176 }; 00177 00178 #endif