VTK
vtkUnsignedIntArray.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUnsignedIntArray.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 __vtkUnsignedIntArray_h
27 #define __vtkUnsignedIntArray_h
28 
29 // Tell the template header how to give our superclass a DLL interface.
30 #if !defined(__vtkUnsignedIntArray_cxx)
31 # define VTK_DATA_ARRAY_TEMPLATE_TYPE unsigned int
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 int>
40 #undef vtkDataArray
41 {
42 public:
43  static vtkUnsignedIntArray* New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
50  { return VTK_UNSIGNED_INT; }
52 
54 
55  void GetTupleValue(vtkIdType i, unsigned int* tuple)
56  { this->RealSuperclass::GetTupleValue(i, tuple); }
58 
60 
61  void SetTupleValue(vtkIdType i, const unsigned int* tuple)
62  { this->RealSuperclass::SetTupleValue(i, tuple); }
64 
66 
68  void InsertTupleValue(vtkIdType i, const unsigned int* tuple)
69  { this->RealSuperclass::InsertTupleValue(i, tuple); }
71 
73 
75  vtkIdType InsertNextTupleValue(const unsigned int* tuple)
76  { return this->RealSuperclass::InsertNextTupleValue(tuple); }
78 
80 
81  unsigned int GetValue(vtkIdType id)
82  { return this->RealSuperclass::GetValue(id); }
84 
86 
88  void SetValue(vtkIdType id, unsigned int value)
89  { this->RealSuperclass::SetValue(id, value); }
91 
93 
97  { this->RealSuperclass::SetNumberOfValues(number); }
99 
101 
102  void InsertValue(vtkIdType id, unsigned int f)
103  { this->RealSuperclass::InsertValue(id, f); }
105 
107 
109  vtkIdType InsertNextValue(unsigned int f)
110  { return this->RealSuperclass::InsertNextValue(f); }
112 
114 
116  unsigned int *GetValueRange(int comp)
117  { return this->RealSuperclass::GetValueRange(comp); }
118 //BTX
119  void GetValueRange(unsigned int range[2], int comp)
120  { this->RealSuperclass::GetValueRange(range, comp); }
121 //ETX
123 
125 
127  unsigned int *GetValueRange()
128  { return this->RealSuperclass::GetValueRange(0); }
129 //BTX
130  void GetValueRange(unsigned int range[2])
131  { this->RealSuperclass::GetValueRange(range, 0); }
132 //ETX
134 
136  static unsigned int GetDataTypeValueMin() { return VTK_UNSIGNED_INT_MIN; }
137 
139  static unsigned int GetDataTypeValueMax() { return VTK_UNSIGNED_INT_MAX; }
140 
142 
145  unsigned int* WritePointer(vtkIdType id, vtkIdType number)
146  { return this->RealSuperclass::WritePointer(id, number); }
148 
150 
152  unsigned int* GetPointer(vtkIdType id)
153  { return this->RealSuperclass::GetPointer(id); }
155 
157 
163  void SetArray(unsigned int* array, vtkIdType size, int save)
164  { this->RealSuperclass::SetArray(array, size, save); }
165  void SetArray(unsigned int* array, vtkIdType size, int save, int deleteMethod)
166  { this->RealSuperclass::SetArray(array, size, save, deleteMethod); }
168 
169 protected:
170  vtkUnsignedIntArray(vtkIdType numComp=1);
172 
173 private:
174  //BTX
175  typedef vtkDataArrayTemplate<unsigned int> RealSuperclass;
176  //ETX
177  vtkUnsignedIntArray(const vtkUnsignedIntArray&); // Not implemented.
178  void operator=(const vtkUnsignedIntArray&); // Not implemented.
179 };
180 
181 #endif
vtkIdType InsertNextValue(unsigned int f)
unsigned int * WritePointer(vtkIdType id, vtkIdType number)
static unsigned int GetDataTypeValueMin()
dynamic, self-adjusting array of unsigned int
Implementation template for vtkDataArray.
#define VTK_UNSIGNED_INT
Definition: vtkType.h:32
void GetTupleValue(vtkIdType i, unsigned int *tuple)
static unsigned int GetDataTypeValueMax()
void SetArray(unsigned int *array, vtkIdType size, int save, int deleteMethod)
#define VTK_UNSIGNED_INT_MIN
Definition: vtkType.h:124
vtkIdType InsertNextTupleValue(const unsigned int *tuple)
int vtkIdType
Definition: vtkType.h:255
void SetNumberOfValues(vtkIdType number)
a simple class to control print indentation
Definition: vtkIndent.h:37
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
void SetTupleValue(vtkIdType i, const unsigned int *tuple)
unsigned int GetValue(vtkIdType id)
#define VTK_UNSIGNED_INT_MAX
Definition: vtkType.h:125
#define VTK_COMMON_EXPORT
unsigned int * GetPointer(vtkIdType id)
void InsertTupleValue(vtkIdType i, const unsigned int *tuple)
void InsertValue(vtkIdType id, unsigned int f)
void save(Archiver &ar, const vtkVariant &variant, const unsigned int vtkNotUsed(version))
void SetValue(vtkIdType id, unsigned int value)
unsigned int * GetValueRange(int comp)
void PrintSelf(ostream &os, vtkIndent indent)
void GetValueRange(unsigned int range[2], int comp)
void GetValueRange(unsigned int range[2])
void SetArray(unsigned int *array, vtkIdType size, int save)
static vtkObject * New()
unsigned int * GetValueRange()