• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Common/vtkSignedCharArray.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkSignedCharArray.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00023 #ifndef __vtkSignedCharArray_h
00024 #define __vtkSignedCharArray_h
00025 
00026 // Tell the template header how to give our superclass a DLL interface.
00027 #if !defined(__vtkSignedCharArray_cxx)
00028 # define VTK_DATA_ARRAY_TEMPLATE_TYPE signed char
00029 #endif
00030 
00031 #include "vtkDataArray.h"
00032 #include "vtkDataArrayTemplate.h" // Real Superclass
00033 
00034 // Fake the superclass for the wrappers.
00035 #define vtkDataArray vtkDataArrayTemplate<signed char>
00036 class VTK_COMMON_EXPORT vtkSignedCharArray : public vtkDataArray
00037 #undef vtkDataArray
00038 {
00039 public:
00040   static vtkSignedCharArray* New();
00041   vtkTypeRevisionMacro(vtkSignedCharArray,vtkDataArray);
00042   void PrintSelf(ostream& os, vtkIndent indent);
00043 
00045 
00046   int GetDataType()
00047     { return VTK_SIGNED_CHAR; }
00049 
00051 
00052   void GetTupleValue(vtkIdType i, signed char* tuple)
00053     { this->RealSuperclass::GetTupleValue(i, tuple); }
00055 
00057 
00058   void SetTupleValue(vtkIdType i, const signed char* tuple)
00059     { this->RealSuperclass::SetTupleValue(i, tuple); }
00061 
00063 
00065   void InsertTupleValue(vtkIdType i, const signed char* tuple)
00066     { this->RealSuperclass::InsertTupleValue(i, tuple); }
00068 
00070 
00072   vtkIdType InsertNextTupleValue(const signed char* tuple)
00073     { return this->RealSuperclass::InsertNextTupleValue(tuple); }
00075 
00077 
00078   signed char GetValue(vtkIdType id)
00079     { return this->RealSuperclass::GetValue(id); }
00081 
00083 
00085   void SetValue(vtkIdType id, signed char value)
00086     { this->RealSuperclass::SetValue(id, value); }
00088 
00090 
00093   void SetNumberOfValues(vtkIdType number)
00094     { this->RealSuperclass::SetNumberOfValues(number); }
00096 
00098 
00099   void InsertValue(vtkIdType id, signed char f)
00100     { this->RealSuperclass::InsertValue(id, f); }
00102 
00104 
00106   vtkIdType InsertNextValue(signed char f)
00107     { return this->RealSuperclass::InsertNextValue(f); }
00109 
00111 
00114   signed char* WritePointer(vtkIdType id, vtkIdType number)
00115     { return this->RealSuperclass::WritePointer(id, number); }
00117 
00119 
00121   signed char* GetPointer(vtkIdType id)
00122     { return this->RealSuperclass::GetPointer(id); }
00124 
00126 
00132   void SetArray(signed char* array, vtkIdType size, int save)
00133     { this->RealSuperclass::SetArray(array, size, save); }
00134   void SetArray(signed char* array, vtkIdType size, int save, int deleteMethod)
00135     { this->RealSuperclass::SetArray(array, size, save, deleteMethod); }
00137 
00138 protected:
00139   vtkSignedCharArray(vtkIdType numComp=1);
00140   ~vtkSignedCharArray();
00141 
00142 private:
00143   //BTX
00144   typedef vtkDataArrayTemplate<signed char> RealSuperclass;
00145   //ETX
00146   vtkSignedCharArray(const vtkSignedCharArray&);  // Not implemented.
00147   void operator=(const vtkSignedCharArray&);  // Not implemented.
00148 };
00149 
00150 #endif

Generated by  doxygen 1.7.1