VTK  9.3.0
vtkFloatArray.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
27 #ifndef vtkFloatArray_h
28 #define vtkFloatArray_h
29 
30 #include "vtkAOSDataArrayTemplate.h" // Real Superclass
31 #include "vtkCommonCoreModule.h" // For export macro
32 #include "vtkDataArray.h"
33 
34 // Fake the superclass for the wrappers.
35 #ifndef __VTK_WRAP__
36 #define vtkDataArray vtkAOSDataArrayTemplate<float>
37 #endif
38 VTK_ABI_NAMESPACE_BEGIN
39 class VTKCOMMONCORE_EXPORT vtkFloatArray : public vtkDataArray
40 {
41 public:
42  vtkTypeMacro(vtkFloatArray, vtkDataArray);
43 #ifndef __VTK_WRAP__
44 #undef vtkDataArray
45 #endif
46 
47  static vtkFloatArray* New();
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
51  // This macro expands to the set of method declarations that
52  // make up the interface of vtkAOSDataArrayTemplate, which is ignored
53  // by the wrappers.
54 #if defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)
56 #endif
57 
62  {
63  return static_cast<vtkFloatArray*>(Superclass::FastDownCast(source));
64  }
65 
69  static float GetDataTypeValueMin() { return VTK_FLOAT_MIN; }
70 
74  static float GetDataTypeValueMax() { return VTK_FLOAT_MAX; }
75 
76 protected:
78  ~vtkFloatArray() override;
79 
80 private:
82 
83  vtkFloatArray(const vtkFloatArray&) = delete;
84  void operator=(const vtkFloatArray&) = delete;
85 };
86 
87 // Define vtkArrayDownCast implementation:
89 
90 VTK_ABI_NAMESPACE_END
91 #endif
Abstract superclass for all arrays.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:40
static vtkFloatArray * ExtendedNew()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static float GetDataTypeValueMin()
Get the minimum data value in its native type.
Definition: vtkFloatArray.h:69
static vtkFloatArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
Definition: vtkFloatArray.h:61
static float GetDataTypeValueMax()
Get the maximum data value in its native type.
Definition: vtkFloatArray.h:74
~vtkFloatArray() override
static vtkFloatArray * New()
a simple class to control print indentation
Definition: vtkIndent.h:38
#define vtkCreateWrappedArrayInterface(T)
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
vtkArrayDownCast_FastCastMacro(vtkFloatArray)
#define VTK_FLOAT_MIN
Definition: vtkType.h:151
#define VTK_FLOAT_MAX
Definition: vtkType.h:152