VTK  9.7.20260816
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
134
135// Fake the superclass for non-Python wrappers.
136// Python can handle the templated superclass; Java and others cannot.
137#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
138#define vtkDataArray vtkAOSDataArrayTemplate<float>
139#endif
140VTK_ABI_NAMESPACE_BEGIN
141class VTKCOMMONCORE_EXPORT VTK_MARSHALAUTO vtkFloatArray : public vtkDataArray
142{
143public:
145#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
146#undef vtkDataArray
147#endif
148
151 void PrintSelf(ostream& os, vtkIndent indent) override;
152
153 // This macro expands to the set of method declarations that
154 // make up the interface of vtkAOSDataArrayTemplate, which is ignored
155 // by the wrappers.
156#if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
158#endif
159
167
168protected:
170 ~vtkFloatArray() override;
171
172private:
173 typedef vtkAOSDataArrayTemplate<float> RealSuperclass;
174
175 vtkFloatArray(const vtkFloatArray&) = delete;
176 void operator=(const vtkFloatArray&) = delete;
177};
178
179// Define vtkArrayDownCast implementation:
181
182VTK_ABI_NAMESPACE_END
183#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
#define VTK_MARSHALAUTO