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 {
47 public:
48  vtkTypeMacro(vtkFloatArray, vtkDataArray)
49 #ifndef __WRAP__
50 #undef vtkDataArray
51 #endif
52 
53  static vtkFloatArray* 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 float GetDataTypeValueMin() { return VTK_FLOAT_MIN; }
65 
67  static float GetDataTypeValueMax() { return VTK_FLOAT_MAX; }
68 
69 
70 protected:
71  vtkFloatArray();
72  ~vtkFloatArray();
73 
74 private:
75  //BTX
76  typedef vtkDataArrayTemplate<float> RealSuperclass;
77  //ETX
78  vtkFloatArray(const vtkFloatArray&); // Not implemented.
79  void operator=(const vtkFloatArray&); // Not implemented.
80 };
81 
82 #endif
Implementation template for vtkDataArray.
#define VTKCOMMONCORE_EXPORT
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:45
static float GetDataTypeValueMax()
Definition: vtkFloatArray.h:67
#define VTK_FLOAT_MAX
Definition: vtkType.h:138
#define vtkCreateWrappedArrayInterface(T)
static float GetDataTypeValueMin()
Definition: vtkFloatArray.h:64
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:137