VTK
vtkShortArray.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkShortArray.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 =========================================================================*/
30 #ifndef vtkShortArray_h
31 #define vtkShortArray_h
32 
33 // Tell the template header how to give our superclass a DLL interface.
34 #if !defined(vtkShortArray_cxx)
35 # define VTK_DATA_ARRAY_TEMPLATE_TYPE short
36 #endif
37 
38 #include "vtkCommonCoreModule.h" // For export macro
39 #include "vtkDataArray.h"
40 #include "vtkDataArrayTemplate.h" // Real Superclass
41 
42 // Fake the superclass for the wrappers.
43 #ifndef __WRAP__
44 #define vtkDataArray vtkDataArrayTemplate<short>
45 #endif
47 {
48 public:
49  vtkTypeMacro(vtkShortArray, vtkDataArray)
50 #ifndef __WRAP__
51 #undef vtkDataArray
52 #endif
53  static vtkShortArray* New();
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
56  // This macro expands to the set of method declarations that
57  // make up the interface of vtkDataArrayTemplate, which is ignored
58  // by the wrappers.
59 #if defined(__WRAP__) || defined (__WRAP_GCCXML__)
61 #endif
62 
64  static short GetDataTypeValueMin() { return VTK_SHORT_MIN; }
65 
67  static short GetDataTypeValueMax() { return VTK_SHORT_MAX; }
68 
69 protected:
70  vtkShortArray();
71  ~vtkShortArray();
72 
73 private:
74  //BTX
75  typedef vtkDataArrayTemplate<short> RealSuperclass;
76  //ETX
77  vtkShortArray(const vtkShortArray&); // Not implemented.
78  void operator=(const vtkShortArray&); // Not implemented.
79 };
80 
81 #endif
Implementation template for vtkDataArray.
dynamic, self-adjusting array of short
Definition: vtkShortArray.h:46
#define VTKCOMMONCORE_EXPORT
#define VTK_SHORT_MIN
Definition: vtkType.h:125
#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
#define VTK_SHORT_MAX
Definition: vtkType.h:126
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
static short GetDataTypeValueMax()
Definition: vtkShortArray.h:67
static short GetDataTypeValueMin()
Definition: vtkShortArray.h:64