VTK
vtkSignedCharArray.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSignedCharArray.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 =========================================================================*/
26 #ifndef vtkSignedCharArray_h
27 #define vtkSignedCharArray_h
28 
29 // Tell the template header how to give our superclass a DLL interface.
30 #if !defined(vtkSignedCharArray_cxx)
31 # define VTK_DATA_ARRAY_TEMPLATE_TYPE signed char
32 #endif
33 
34 #include "vtkCommonCoreModule.h" // For export macro
35 #include "vtkDataArray.h"
36 #include "vtkDataArrayTemplate.h" // Real Superclass
37 
38 // Fake the superclass for the wrappers.
39 #ifndef __WRAP__
40 #define vtkDataArray vtkDataArrayTemplate<signed char>
41 #endif
43 {
44 public:
46 #ifndef __WRAP__
47 #undef vtkDataArray
48 #endif
49  static vtkSignedCharArray* New();
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
52  // This macro expands to the set of method declarations that
53  // make up the interface of vtkDataArrayTemplate, which is ignored
54  // by the wrappers.
55 #if defined(__WRAP__) || defined (__WRAP_GCCXML__)
56  vtkCreateWrappedArrayInterface(signed char);
57 #endif
58 
60  static signed char GetDataTypeValueMin() { return VTK_SIGNED_CHAR_MIN; }
61 
63  static signed char GetDataTypeValueMax() { return VTK_SIGNED_CHAR_MAX; }
64 
65 protected:
68 
69 private:
70  //BTX
71  typedef vtkDataArrayTemplate<signed char> RealSuperclass;
72  //ETX
73  vtkSignedCharArray(const vtkSignedCharArray&); // Not implemented.
74  void operator=(const vtkSignedCharArray&); // Not implemented.
75 };
76 
77 #endif
Implementation template for vtkDataArray.
#define VTKCOMMONCORE_EXPORT
static signed char GetDataTypeValueMin()
#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 signed char
#define VTK_SIGNED_CHAR_MIN
Definition: vtkType.h:121
static signed char GetDataTypeValueMax()
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
#define VTK_SIGNED_CHAR_MAX
Definition: vtkType.h:122