VTK
vtkUnsignedCharArray.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUnsignedCharArray.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
29 #ifndef vtkUnsignedCharArray_h
30 #define vtkUnsignedCharArray_h
31 
32 // Tell the template header how to give our superclass a DLL interface.
33 #if !defined(vtkUnsignedCharArray_cxx)
34 # define VTK_DATA_ARRAY_TEMPLATE_TYPE unsigned char
35 #endif
36 
37 #include "vtkCommonCoreModule.h" // For export macro
38 #include "vtkDataArray.h"
39 #include "vtkDataArrayTemplate.h" // Real Superclass
40 
41 // Fake the superclass for the wrappers.
42 #ifndef __WRAP__
43 #define vtkDataArray vtkDataArrayTemplate<unsigned char>
44 #endif
46 #ifndef __WRAP__
47 #undef vtkDataArray
48 #endif
49 {
50 public:
51  static vtkUnsignedCharArray* New();
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
55  // This macro expands to the set of method declarations that
56  // make up the interface of vtkDataArrayTemplate, which is ignored
57  // by the wrappers.
58 #if defined(__WRAP__) || defined (__WRAP_GCCXML__)
59  vtkCreateWrappedArrayInterface(unsigned char);
60 #endif
61 
63  static unsigned char GetDataTypeValueMin() { return VTK_UNSIGNED_CHAR_MIN; }
64 
66  static unsigned char GetDataTypeValueMax() { return VTK_UNSIGNED_CHAR_MAX; }
67 
68 protected:
71 
72 private:
73  //BTX
74  typedef vtkDataArrayTemplate<unsigned char> RealSuperclass;
75  //ETX
76  vtkUnsignedCharArray(const vtkUnsignedCharArray&); // Not implemented.
77  void operator=(const vtkUnsignedCharArray&); // Not implemented.
78 };
79 
80 #endif
Implementation template for vtkDataArray.
#define VTKCOMMONCORE_EXPORT
static unsigned char GetDataTypeValueMin()
#define VTK_UNSIGNED_CHAR_MAX
Definition: vtkType.h:126
#define vtkCreateWrappedArrayInterface(T)
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
dynamic, self-adjusting array of unsigned char
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_UNSIGNED_CHAR_MIN
Definition: vtkType.h:125
static vtkObject * New()
static unsigned char GetDataTypeValueMax()