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:
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
75  //ETX
76  vtkUnsignedCharArray(const vtkUnsignedCharArray&); // Not implemented.
77  void operator=(const vtkUnsignedCharArray&); // Not implemented.
78 };
79 
80 #endif
VTKCOMMONCORE_EXPORT
#define VTKCOMMONCORE_EXPORT
Definition: vtkCommonCoreModule.h:15
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:49
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkUnsignedCharArray::~vtkUnsignedCharArray
~vtkUnsignedCharArray()
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
VTK_UNSIGNED_CHAR_MAX
#define VTK_UNSIGNED_CHAR_MAX
Definition: vtkType.h:126
vtkCommonCoreModule.h
vtkCreateWrappedArrayInterface
#define vtkCreateWrappedArrayInterface(T)
Definition: vtkDataArrayTemplate.h:370
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkUnsignedCharArray::GetDataTypeValueMin
static unsigned char GetDataTypeValueMin()
Definition: vtkUnsignedCharArray.h:63
vtkDataArrayTemplate.h
vtkDataArrayTemplate
Implementation template for vtkDataArray.
Definition: vtkDataArrayTemplate.h:37
vtkUnsignedCharArray::vtkUnsignedCharArray
vtkUnsignedCharArray()
vtkUnsignedCharArray::New
static vtkUnsignedCharArray * New()
vtkDataArray.h
VTK_UNSIGNED_CHAR_MIN
#define VTK_UNSIGNED_CHAR_MIN
Definition: vtkType.h:125
vtkUnsignedCharArray::GetDataTypeValueMax
static unsigned char GetDataTypeValueMax()
Definition: vtkUnsignedCharArray.h:66
vtkUnsignedCharArray::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)