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