VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 "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<signed char>
40 class VTKCOMMONCORE_EXPORT vtkSignedCharArray : public vtkDataArray
41 #undef vtkDataArray
42 {
43 public:
44  static vtkSignedCharArray* New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
51  { return VTK_SIGNED_CHAR; }
53 
55 
56  void GetTupleValue(vtkIdType i, signed char* tuple)
57  { this->RealSuperclass::GetTupleValue(i, tuple); }
59 
61 
62  void SetTupleValue(vtkIdType i, const signed char* tuple)
63  { this->RealSuperclass::SetTupleValue(i, tuple); }
65 
67 
69  void InsertTupleValue(vtkIdType i, const signed char* tuple)
70  { this->RealSuperclass::InsertTupleValue(i, tuple); }
72 
74 
76  vtkIdType InsertNextTupleValue(const signed char* tuple)
77  { return this->RealSuperclass::InsertNextTupleValue(tuple); }
79 
81 
82  signed char GetValue(vtkIdType id)
83  { return this->RealSuperclass::GetValue(id); }
85 
87 
89  void SetValue(vtkIdType id, signed char value)
90  { this->RealSuperclass::SetValue(id, value); }
92 
94 
98  { this->RealSuperclass::SetNumberOfValues(number); }
100 
102 
103  void InsertValue(vtkIdType id, signed char f)
104  { this->RealSuperclass::InsertValue(id, f); }
106 
108 
110  vtkIdType InsertNextValue(signed char f)
111  { return this->RealSuperclass::InsertNextValue(f); }
113 
115 
117  signed char *GetValueRange(int comp)
118  { return this->RealSuperclass::GetValueRange(comp); }
119 //BTX
120  void GetValueRange(signed char range[2], int comp)
121  { this->RealSuperclass::GetValueRange(range, comp); }
122 //ETX
124 
126 
128  signed char *GetValueRange()
129  { return this->RealSuperclass::GetValueRange(0); }
130 //BTX
131  void GetValueRange(signed char range[2])
132  { this->RealSuperclass::GetValueRange(range, 0); }
133 //ETX
135 
137  static signed char GetDataTypeValueMin() { return VTK_SIGNED_CHAR_MIN; }
138 
140  static signed char GetDataTypeValueMax() { return VTK_SIGNED_CHAR_MAX; }
141 
143 
146  signed char* WritePointer(vtkIdType id, vtkIdType number)
147  { return this->RealSuperclass::WritePointer(id, number); }
149 
151 
153  signed char* GetPointer(vtkIdType id)
154  { return this->RealSuperclass::GetPointer(id); }
156 
158 
164  void SetArray(signed char* array, vtkIdType size, int save)
165  { this->RealSuperclass::SetArray(array, size, save); }
166  void SetArray(signed char* array, vtkIdType size, int save, int deleteMethod)
167  { this->RealSuperclass::SetArray(array, size, save, deleteMethod); }
169 
170 protected:
171  vtkSignedCharArray(vtkIdType numComp=1);
173 
174 private:
175  //BTX
176  typedef vtkDataArrayTemplate<signed char> RealSuperclass;
177  //ETX
178  vtkSignedCharArray(const vtkSignedCharArray&); // Not implemented.
179  void operator=(const vtkSignedCharArray&); // Not implemented.
180 };
181 
182 #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:268
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:38
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:122
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 PrintSelf(ostream &os, vtkIndent indent)
void SetNumberOfValues(vtkIdType number)
static vtkObject * New()
#define VTK_SIGNED_CHAR_MAX
Definition: vtkType.h:123
signed char * GetValueRange()