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