00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00026 #ifndef __vtkSignedCharArray_h
00027 #define __vtkSignedCharArray_h
00028
00029
00030 #if !defined(__vtkSignedCharArray_cxx)
00031 # define VTK_DATA_ARRAY_TEMPLATE_TYPE signed char
00032 #endif
00033
00034 #include "vtkDataArray.h"
00035 #include "vtkDataArrayTemplate.h"
00036
00037
00038 #define vtkDataArray vtkDataArrayTemplate<signed char>
00039 class VTK_COMMON_EXPORT vtkSignedCharArray : public vtkDataArray
00040 #undef vtkDataArray
00041 {
00042 public:
00043 static vtkSignedCharArray* New();
00044 vtkTypeMacro(vtkSignedCharArray,vtkDataArray);
00045 void PrintSelf(ostream& os, vtkIndent indent);
00046
00048
00049 int GetDataType()
00050 { return VTK_SIGNED_CHAR; }
00052
00054
00055 void GetTupleValue(vtkIdType i, signed char* tuple)
00056 { this->RealSuperclass::GetTupleValue(i, tuple); }
00058
00060
00061 void SetTupleValue(vtkIdType i, const signed char* tuple)
00062 { this->RealSuperclass::SetTupleValue(i, tuple); }
00064
00066
00068 void InsertTupleValue(vtkIdType i, const signed char* tuple)
00069 { this->RealSuperclass::InsertTupleValue(i, tuple); }
00071
00073
00075 vtkIdType InsertNextTupleValue(const signed char* tuple)
00076 { return this->RealSuperclass::InsertNextTupleValue(tuple); }
00078
00080
00081 signed char GetValue(vtkIdType id)
00082 { return this->RealSuperclass::GetValue(id); }
00084
00086
00088 void SetValue(vtkIdType id, signed char value)
00089 { this->RealSuperclass::SetValue(id, value); }
00091
00093
00096 void SetNumberOfValues(vtkIdType number)
00097 { this->RealSuperclass::SetNumberOfValues(number); }
00099
00101
00102 void InsertValue(vtkIdType id, signed char f)
00103 { this->RealSuperclass::InsertValue(id, f); }
00105
00107
00109 vtkIdType InsertNextValue(signed char f)
00110 { return this->RealSuperclass::InsertNextValue(f); }
00112
00114
00116 signed char *GetValueRange(int comp)
00117 { return this->RealSuperclass::GetValueRange(comp); }
00118
00119 void GetValueRange(signed char range[2], int comp)
00120 { this->RealSuperclass::GetValueRange(range, comp); }
00121
00123
00125
00127 signed char *GetValueRange()
00128 { return this->RealSuperclass::GetValueRange(0); }
00129
00130 void GetValueRange(signed char range[2])
00131 { this->RealSuperclass::GetValueRange(range, 0); }
00132
00134
00136 static signed char GetDataTypeValueMin() { return VTK_SIGNED_CHAR_MIN; }
00137
00139 static signed char GetDataTypeValueMax() { return VTK_SIGNED_CHAR_MAX; }
00140
00142
00145 signed char* WritePointer(vtkIdType id, vtkIdType number)
00146 { return this->RealSuperclass::WritePointer(id, number); }
00148
00150
00152 signed char* GetPointer(vtkIdType id)
00153 { return this->RealSuperclass::GetPointer(id); }
00155
00157
00163 void SetArray(signed char* array, vtkIdType size, int save)
00164 { this->RealSuperclass::SetArray(array, size, save); }
00165 void SetArray(signed char* array, vtkIdType size, int save, int deleteMethod)
00166 { this->RealSuperclass::SetArray(array, size, save, deleteMethod); }
00168
00169 protected:
00170 vtkSignedCharArray(vtkIdType numComp=1);
00171 ~vtkSignedCharArray();
00172
00173 private:
00174
00175 typedef vtkDataArrayTemplate<signed char> RealSuperclass;
00176
00177 vtkSignedCharArray(const vtkSignedCharArray&);
00178 void operator=(const vtkSignedCharArray&);
00179 };
00180
00181 #endif