vtkLongArray.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00040 #ifndef __vtkLongArray_h
00041 #define __vtkLongArray_h
00042
00043
00044 #if !defined(__vtkLongArray_cxx)
00045 # define VTK_DATA_ARRAY_TEMPLATE_TYPE long
00046 #endif
00047
00048 #include "vtkDataArray.h"
00049 #include "vtkDataArrayTemplate.h"
00050
00051
00052 #define vtkDataArray vtkDataArrayTemplate<long>
00053 class VTK_COMMON_EXPORT vtkLongArray : public vtkDataArray
00054 #undef vtkDataArray
00055 {
00056 public:
00057 static vtkLongArray* New();
00058 vtkTypeRevisionMacro(vtkLongArray,vtkDataArray);
00059 void PrintSelf(ostream& os, vtkIndent indent);
00060
00062
00063 int GetDataType()
00064 { return VTK_LONG; }
00066
00068
00069 long GetValue(vtkIdType id)
00070 { return this->RealSuperclass::GetValue(id); }
00072
00074
00076 void SetValue(vtkIdType id, long value)
00077 { this->RealSuperclass::SetValue(id, value); }
00079
00081
00084 void SetNumberOfValues(vtkIdType number)
00085 { this->RealSuperclass::SetNumberOfValues(number); }
00087
00089
00090 void InsertValue(vtkIdType id, long f)
00091 { this->RealSuperclass::InsertValue(id, f); }
00093
00095
00097 vtkIdType InsertNextValue(long f)
00098 { return this->RealSuperclass::InsertNextValue(f); }
00100
00102
00105 long* WritePointer(vtkIdType id, vtkIdType number)
00106 { return this->RealSuperclass::WritePointer(id, number); }
00108
00110
00112 long* GetPointer(vtkIdType id)
00113 { return this->RealSuperclass::GetPointer(id); }
00115
00117
00123 void SetArray(long* array, vtkIdType size, int save)
00124 { this->RealSuperclass::SetArray(array, size, save); }
00126
00127 protected:
00128 vtkLongArray(vtkIdType numComp=1);
00129 ~vtkLongArray();
00130
00131 private:
00132
00133 typedef vtkDataArrayTemplate<long> RealSuperclass;
00134
00135 vtkLongArray(const vtkLongArray&);
00136 void operator=(const vtkLongArray&);
00137 };
00138
00139 #endif