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