vtkCharArray.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00040 #ifndef __vtkCharArray_h
00041 #define __vtkCharArray_h
00042
00043
00044 #if !defined(__vtkCharArray_cxx)
00045 # define VTK_DATA_ARRAY_TEMPLATE_TYPE char
00046 #endif
00047
00048 #include "vtkDataArray.h"
00049 #include "vtkDataArrayTemplate.h"
00050
00051
00052 #define vtkDataArray vtkDataArrayTemplate<char>
00053 class VTK_COMMON_EXPORT vtkCharArray : public vtkDataArray
00054 #undef vtkDataArray
00055 {
00056 public:
00057 static vtkCharArray* New();
00058 vtkTypeRevisionMacro(vtkCharArray,vtkDataArray);
00059 void PrintSelf(ostream& os, vtkIndent indent);
00060
00062
00063 int GetDataType()
00064 { return VTK_CHAR; }
00066
00068
00069 char GetValue(vtkIdType id)
00070 { return this->RealSuperclass::GetValue(id); }
00072
00074
00076 void SetValue(vtkIdType id, char value)
00077 { this->RealSuperclass::SetValue(id, value); }
00079
00081
00084 void SetNumberOfValues(vtkIdType number)
00085 { this->RealSuperclass::SetNumberOfValues(number); }
00087
00089
00090 void InsertValue(vtkIdType id, char f)
00091 { this->RealSuperclass::InsertValue(id, f); }
00093
00095
00097 vtkIdType InsertNextValue(char f)
00098 { return this->RealSuperclass::InsertNextValue(f); }
00100
00102
00105 char* WritePointer(vtkIdType id, vtkIdType number)
00106 { return this->RealSuperclass::WritePointer(id, number); }
00108
00110
00112 char* GetPointer(vtkIdType id)
00113 { return this->RealSuperclass::GetPointer(id); }
00115
00117
00123 void SetArray(char* array, vtkIdType size, int save)
00124 { this->RealSuperclass::SetArray(array, size, save); }
00126
00127 protected:
00128 vtkCharArray(vtkIdType numComp=1);
00129 ~vtkCharArray();
00130
00131 private:
00132
00133 typedef vtkDataArrayTemplate<char> RealSuperclass;
00134
00135 vtkCharArray(const vtkCharArray&);
00136 void operator=(const vtkCharArray&);
00137 };
00138
00139 #endif