VTK  9.3.20240328
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
127 #ifndef vtkFloatArray_h
128 #define vtkFloatArray_h
129 
130 #include "vtkAOSDataArrayTemplate.h" // Real Superclass
131 #include "vtkCommonCoreModule.h" // For export macro
132 #include "vtkDataArray.h"
133 
134 // Fake the superclass for the wrappers.
135 #ifndef __VTK_WRAP__
136 #define vtkDataArray vtkAOSDataArrayTemplate<float>
137 #endif
138 VTK_ABI_NAMESPACE_BEGIN
139 class VTKCOMMONCORE_EXPORT vtkFloatArray : public vtkDataArray
140 {
141 public:
142  vtkTypeMacro(vtkFloatArray, vtkDataArray);
143 #ifndef __VTK_WRAP__
144 #undef vtkDataArray
145 #endif
146 
147  static vtkFloatArray* New();
149  void PrintSelf(ostream& os, vtkIndent indent) override;
150 
151  // This macro expands to the set of method declarations that
152  // make up the interface of vtkAOSDataArrayTemplate, which is ignored
153  // by the wrappers.
154 #if defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)
156 #endif
157 
162  {
163  return static_cast<vtkFloatArray*>(Superclass::FastDownCast(source));
164  }
165 
169  static float GetDataTypeValueMin() { return VTK_FLOAT_MIN; }
170 
174  static float GetDataTypeValueMax() { return VTK_FLOAT_MAX; }
175 
176 protected:
178  ~vtkFloatArray() override;
179 
180 private:
182 
183  vtkFloatArray(const vtkFloatArray&) = delete;
184  void operator=(const vtkFloatArray&) = delete;
185 };
186 
187 // Define vtkArrayDownCast implementation:
189 
190 VTK_ABI_NAMESPACE_END
191 #endif
Abstract superclass for all arrays.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:154
dynamic, self-adjusting array of float
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.
static vtkFloatArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
static float GetDataTypeValueMax()
Get the maximum data value in its native type.
~vtkFloatArray() override
static vtkFloatArray * New()
a simple class to control print indentation
Definition: vtkIndent.h:108
#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