VTK
vtkUnsignedLongArray.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUnsignedLongArray.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
26 #ifndef __vtkUnsignedLongArray_h
27 #define __vtkUnsignedLongArray_h
28 
29 // Tell the template header how to give our superclass a DLL interface.
30 #if !defined(__vtkUnsignedLongArray_cxx)
31 # define VTK_DATA_ARRAY_TEMPLATE_TYPE unsigned long
32 #endif
33 
34 #include "vtkDataArray.h"
35 #include "vtkDataArrayTemplate.h" // Real Superclass
36 
37 // Fake the superclass for the wrappers.
38 #define vtkDataArray vtkDataArrayTemplate<unsigned long>
40 #undef vtkDataArray
41 {
42 public:
43  static vtkUnsignedLongArray* New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
50  { return VTK_UNSIGNED_LONG; }
52 
54 
55  void GetTupleValue(vtkIdType i, unsigned long* tuple)
56  { this->RealSuperclass::GetTupleValue(i, tuple); }
58 
60 
61  void SetTupleValue(vtkIdType i, const unsigned long* tuple)
62  { this->RealSuperclass::SetTupleValue(i, tuple); }
64 
66 
68  void InsertTupleValue(vtkIdType i, const unsigned long* tuple)
69  { this->RealSuperclass::InsertTupleValue(i, tuple); }
71 
73 
75  vtkIdType InsertNextTupleValue(const unsigned long* tuple)
76  { return this->RealSuperclass::InsertNextTupleValue(tuple); }
78 
80 
81  unsigned long GetValue(vtkIdType id)
82  { return this->RealSuperclass::GetValue(id); }
84 
86 
88  void SetValue(vtkIdType id, unsigned long value)
89  { this->RealSuperclass::SetValue(id, value); }
91 
93 
97  { this->RealSuperclass::SetNumberOfValues(number); }
99 
101 
102  void InsertValue(vtkIdType id, unsigned long f)
103  { this->RealSuperclass::InsertValue(id, f); }
105 
107 
109  vtkIdType InsertNextValue(unsigned long f)
110  { return this->RealSuperclass::InsertNextValue(f); }
112 
114 
116  unsigned long *GetValueRange(int comp)
117  { return this->RealSuperclass::GetValueRange(comp); }
118 //BTX
119  void GetValueRange(unsigned long range[2], int comp)
120  { this->RealSuperclass::GetValueRange(range, comp); }
121 //ETX
123 
125 
127  unsigned long *GetValueRange()
128  { return this->RealSuperclass::GetValueRange(0); }
129 //BTX
130  void GetValueRange(unsigned long range[2])
131  { this->RealSuperclass::GetValueRange(range, 0); }
132 //ETX
134 
136  static unsigned long GetDataTypeValueMin() { return VTK_UNSIGNED_LONG_MIN; }
137 
139  static unsigned long GetDataTypeValueMax() { return VTK_UNSIGNED_LONG_MAX; }
140 
142 
145  unsigned long* WritePointer(vtkIdType id, vtkIdType number)
146  { return this->RealSuperclass::WritePointer(id, number); }
148 
150 
152  unsigned long* GetPointer(vtkIdType id)
153  { return this->RealSuperclass::GetPointer(id); }
155 
157 
163  void SetArray(unsigned long* array, vtkIdType size, int save)
164  { this->RealSuperclass::SetArray(array, size, save); }
165  void SetArray(unsigned long* array, vtkIdType size, int save, int deleteMethod)
166  { this->RealSuperclass::SetArray(array, size, save, deleteMethod); }
168 
169 protected:
170  vtkUnsignedLongArray(vtkIdType numComp=1);
172 
173 private:
174  //BTX
175  typedef vtkDataArrayTemplate<unsigned long> RealSuperclass;
176  //ETX
177  vtkUnsignedLongArray(const vtkUnsignedLongArray&); // Not implemented.
178  void operator=(const vtkUnsignedLongArray&); // Not implemented.
179 };
180 
181 #endif
static unsigned long GetDataTypeValueMax()
Implementation template for vtkDataArray.
static unsigned long GetDataTypeValueMin()
unsigned long GetValue(vtkIdType id)
void SetArray(unsigned long *array, vtkIdType size, int save)
unsigned long * GetValueRange()
void GetValueRange(unsigned long range[2])
vtkIdType InsertNextTupleValue(const unsigned long *tuple)
unsigned long * WritePointer(vtkIdType id, vtkIdType number)
#define VTK_UNSIGNED_LONG_MAX
Definition: vtkType.h:129
void SetArray(unsigned long *array, vtkIdType size, int save, int deleteMethod)
unsigned long * GetValueRange(int comp)
int vtkIdType
Definition: vtkType.h:255
void SetTupleValue(vtkIdType i, const unsigned long *tuple)
void SetNumberOfValues(vtkIdType number)
#define VTK_UNSIGNED_LONG_MIN
Definition: vtkType.h:128
a simple class to control print indentation
Definition: vtkIndent.h:37
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
#define VTK_COMMON_EXPORT
dynamic, self-adjusting array of unsigned long
void InsertValue(vtkIdType id, unsigned long f)
void save(Archiver &ar, const vtkVariant &variant, const unsigned int vtkNotUsed(version))
vtkIdType InsertNextValue(unsigned long f)
void GetTupleValue(vtkIdType i, unsigned long *tuple)
void SetValue(vtkIdType id, unsigned long value)
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_UNSIGNED_LONG
Definition: vtkType.h:34
static vtkObject * New()
void GetValueRange(unsigned long range[2], int comp)
void InsertTupleValue(vtkIdType i, const unsigned long *tuple)
unsigned long * GetPointer(vtkIdType id)