VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkSignedCharArray.h 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 =========================================================================*/ 00026 #ifndef vtkSignedCharArray_h 00027 #define vtkSignedCharArray_h 00028 00029 // Tell the template header how to give our superclass a DLL interface. 00030 #if !defined(vtkSignedCharArray_cxx) 00031 # define VTK_DATA_ARRAY_TEMPLATE_TYPE signed char 00032 #endif 00033 00034 #include "vtkCommonCoreModule.h" // For export macro 00035 #include "vtkDataArray.h" 00036 #include "vtkDataArrayTemplate.h" // Real Superclass 00037 00038 // Fake the superclass for the wrappers. 00039 #ifndef __WRAP__ 00040 #define vtkDataArray vtkDataArrayTemplate<signed char> 00041 #endif 00042 class VTKCOMMONCORE_EXPORT vtkSignedCharArray : public vtkDataArray 00043 #ifndef __WRAP__ 00044 #undef vtkDataArray 00045 #endif 00046 { 00047 public: 00048 static vtkSignedCharArray* New(); 00049 vtkTypeMacro(vtkSignedCharArray,vtkDataArray); 00050 void PrintSelf(ostream& os, vtkIndent indent); 00051 00052 // This macro expands to the set of method declarations that 00053 // make up the interface of vtkDataArrayTemplate, which is ignored 00054 // by the wrappers. 00055 #if defined(__WRAP__) || defined (__WRAP_GCCXML__) 00056 vtkCreateWrappedArrayInterface(signed char); 00057 #endif 00058 00060 static signed char GetDataTypeValueMin() { return VTK_SIGNED_CHAR_MIN; } 00061 00063 static signed char GetDataTypeValueMax() { return VTK_SIGNED_CHAR_MAX; } 00064 00065 protected: 00066 vtkSignedCharArray(); 00067 ~vtkSignedCharArray(); 00068 00069 private: 00070 //BTX 00071 typedef vtkDataArrayTemplate<signed char> RealSuperclass; 00072 //ETX 00073 vtkSignedCharArray(const vtkSignedCharArray&); // Not implemented. 00074 void operator=(const vtkSignedCharArray&); // Not implemented. 00075 }; 00076 00077 #endif