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