VTK  9.6.20260313
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
126
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 non-Python wrappers.
135// Python can handle the templated superclass; Java and others cannot.
136#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
137#define vtkDataArray vtkAOSDataArrayTemplate<float>
138#endif
139VTK_ABI_NAMESPACE_BEGIN
140class VTKCOMMONCORE_EXPORT vtkFloatArray : public vtkDataArray
141{
142public:
144#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
145#undef vtkDataArray
146#endif
147
150 void PrintSelf(ostream& os, vtkIndent indent) override;
151
152 // This macro expands to the set of method declarations that
153 // make up the interface of vtkAOSDataArrayTemplate, which is ignored
154 // by the wrappers.
155#if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
157#endif
158
166
167protected:
169 ~vtkFloatArray() override;
170
171private:
172 typedef vtkAOSDataArrayTemplate<float> RealSuperclass;
173
174 vtkFloatArray(const vtkFloatArray&) = delete;
175 void operator=(const vtkFloatArray&) = delete;
176};
177
178// Define vtkArrayDownCast implementation:
180
181VTK_ABI_NAMESPACE_END
182#endif
Abstract superclass for all arrays.
static vtkDataArray * FastDownCast(vtkAbstractArray *source)
Perform a fast, safe cast from a vtkAbstractArray to a vtkDataArray.
dynamic, self-adjusting array of float
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkFloatArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
static vtkFloatArray * New()
~vtkFloatArray() override
static vtkFloatArray * ExtendedNew()
a simple class to control print indentation
Definition vtkIndent.h:108
#define vtkCreateWrappedArrayInterface(T)
#define vtkArrayDownCast_FastCastMacro(ArrayT)
This macro is used to tell vtkArrayDownCast to use FastDownCast instead of SafeDownCast.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define vtkDataArray