VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 "vtkCommonCoreModule.h" // For export macro
35 #include "vtkDataArray.h"
36 #include "vtkDataArrayTemplate.h" // Real Superclass
37 
38 // Fake the superclass for the wrappers.
39 #define vtkDataArray vtkDataArrayTemplate<unsigned long>
40 class VTKCOMMONCORE_EXPORT vtkUnsignedLongArray : public vtkDataArray
41 #undef vtkDataArray
42 {
43 public:
44  static vtkUnsignedLongArray* New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
51  { return VTK_UNSIGNED_LONG; }
53 
55 
56  void GetTupleValue(vtkIdType i, unsigned long* tuple)
57  { this->RealSuperclass::GetTupleValue(i, tuple); }
59 
61 
62  void SetTupleValue(vtkIdType i, const unsigned long* tuple)
63  { this->RealSuperclass::SetTupleValue(i, tuple); }
65 
67 
69  void InsertTupleValue(vtkIdType i, const unsigned long* tuple)
70  { this->RealSuperclass::InsertTupleValue(i, tuple); }
72 
74 
76  vtkIdType InsertNextTupleValue(const unsigned long* tuple)
77  { return this->RealSuperclass::InsertNextTupleValue(tuple); }
79 
81 
82  unsigned long GetValue(vtkIdType id)
83  { return this->RealSuperclass::GetValue(id); }
85 
87 
89  void SetValue(vtkIdType id, unsigned long value)
90  { this->RealSuperclass::SetValue(id, value); }
92 
94 
98  { this->RealSuperclass::SetNumberOfValues(number); }
100 
102 
103  void InsertValue(vtkIdType id, unsigned long f)
104  { this->RealSuperclass::InsertValue(id, f); }
106 
108 
110  vtkIdType InsertNextValue(unsigned long f)
111  { return this->RealSuperclass::InsertNextValue(f); }
113 
115 
117  unsigned long *GetValueRange(int comp)
118  { return this->RealSuperclass::GetValueRange(comp); }
119 //BTX
120  void GetValueRange(unsigned long range[2], int comp)
121  { this->RealSuperclass::GetValueRange(range, comp); }
122 //ETX
124 
126 
128  unsigned long *GetValueRange()
129  { return this->RealSuperclass::GetValueRange(0); }
130 //BTX
131  void GetValueRange(unsigned long range[2])
132  { this->RealSuperclass::GetValueRange(range, 0); }
133 //ETX
135 
137  static unsigned long GetDataTypeValueMin() { return VTK_UNSIGNED_LONG_MIN; }
138 
140  static unsigned long GetDataTypeValueMax() { return VTK_UNSIGNED_LONG_MAX; }
141 
143 
146  unsigned long* WritePointer(vtkIdType id, vtkIdType number)
147  { return this->RealSuperclass::WritePointer(id, number); }
149 
151 
153  unsigned long* GetPointer(vtkIdType id)
154  { return this->RealSuperclass::GetPointer(id); }
156 
158 
164  void SetArray(unsigned long* array, vtkIdType size, int save)
165  { this->RealSuperclass::SetArray(array, size, save); }
166  void SetArray(unsigned long* array, vtkIdType size, int save, int deleteMethod)
167  { this->RealSuperclass::SetArray(array, size, save, deleteMethod); }
169 
170 protected:
171  vtkUnsignedLongArray(vtkIdType numComp=1);
173 
174 private:
175  //BTX
176  typedef vtkDataArrayTemplate<unsigned long> RealSuperclass;
177  //ETX
178  vtkUnsignedLongArray(const vtkUnsignedLongArray&); // Not implemented.
179  void operator=(const vtkUnsignedLongArray&); // Not implemented.
180 };
181 
182 #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:137
void SetArray(unsigned long *array, vtkIdType size, int save, int deleteMethod)
unsigned long * GetValueRange(int comp)
int vtkIdType
Definition: vtkType.h:268
void SetTupleValue(vtkIdType i, const unsigned long *tuple)
void SetNumberOfValues(vtkIdType number)
#define VTK_UNSIGNED_LONG_MIN
Definition: vtkType.h:136
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
void save(Archiver &ar, const vtkUnicodeString &str, const unsigned int vtkNotUsed(version))
dynamic, self-adjusting array of unsigned long
void InsertValue(vtkIdType id, unsigned long f)
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)