VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
26 #ifndef __vtkUnsignedShortArray_h
27 #define __vtkUnsignedShortArray_h
28 
29 // Tell the template header how to give our superclass a DLL interface.
30 #if !defined(__vtkUnsignedShortArray_cxx)
31 # define VTK_DATA_ARRAY_TEMPLATE_TYPE unsigned short
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<unsigned short>
41 #endif
43 #ifndef __WRAP__
44 #undef vtkDataArray
45 #endif
46 {
47 public:
48  static vtkUnsignedShortArray* 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 #ifdef __WRAP__
56  vtkCreateWrappedArrayInterface(unsigned short);
57 #endif
58 
60  static unsigned short GetDataTypeValueMin() { return VTK_UNSIGNED_SHORT_MIN; }
61 
63  static unsigned short GetDataTypeValueMax() { return VTK_UNSIGNED_SHORT_MAX; }
64 
65 protected:
68 
69 private:
70  //BTX
71  typedef vtkDataArrayTemplate<unsigned short> RealSuperclass;
72  //ETX
73  vtkUnsignedShortArray(const vtkUnsignedShortArray&); // Not implemented.
74  void operator=(const vtkUnsignedShortArray&); // Not implemented.
75 };
76 
77 #endif
static unsigned short GetDataTypeValueMin()
Implementation template for vtkDataArray.
#define VTKCOMMONCORE_EXPORT
#define VTK_UNSIGNED_SHORT_MAX
Definition: vtkType.h:129
#define vtkCreateWrappedArrayInterface(T)
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
static unsigned short GetDataTypeValueMax()
#define VTK_UNSIGNED_SHORT_MIN
Definition: vtkType.h:128
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
dynamic, self-adjusting array of unsigned short