VTK
vtkUnsignedShortArray.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUnsignedShortArray.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 vtkUnsignedShortArray_h
31 #define vtkUnsignedShortArray_h
32 
33 // Tell the template header how to give our superclass a DLL interface.
34 #if !defined(vtkUnsignedShortArray_cxx)
35 # define VTK_DATA_ARRAY_TEMPLATE_TYPE unsigned 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<unsigned short>
45 #endif
47 #ifndef __WRAP__
48 #undef vtkDataArray
49 #endif
50 {
51 public:
52  static vtkUnsignedShortArray* 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__)
60  vtkCreateWrappedArrayInterface(unsigned short);
61 #endif
62 
64  static unsigned short GetDataTypeValueMin() { return VTK_UNSIGNED_SHORT_MIN; }
65 
67  static unsigned short GetDataTypeValueMax() { return VTK_UNSIGNED_SHORT_MAX; }
68 
69 protected:
72 
73 private:
74  //BTX
75  typedef vtkDataArrayTemplate<unsigned short> RealSuperclass;
76  //ETX
77  vtkUnsignedShortArray(const vtkUnsignedShortArray&); // Not implemented.
78  void operator=(const vtkUnsignedShortArray&); // Not implemented.
79 };
80 
81 #endif
static unsigned short GetDataTypeValueMin()
Implementation template for vtkDataArray.
#define VTKCOMMONCORE_EXPORT
#define VTK_UNSIGNED_SHORT_MAX
Definition: vtkType.h:130
#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
static unsigned short GetDataTypeValueMax()
#define VTK_UNSIGNED_SHORT_MIN
Definition: vtkType.h:129
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
dynamic, self-adjusting array of unsigned short