VTK  9.6.1
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
17
18#ifndef vtkFloatArray_h
19#define vtkFloatArray_h
20
21#include "vtkAOSDataArrayTemplate.h" // Real Superclass
22#include "vtkCommonCoreModule.h" // For export macro
23#include "vtkDataArray.h"
24
25// Fake the superclass for the wrappers.
26#ifndef __VTK_WRAP__
27#define vtkDataArray vtkAOSDataArrayTemplate<float>
28#endif
29VTK_ABI_NAMESPACE_BEGIN
30class VTKCOMMONCORE_EXPORT vtkFloatArray : public vtkDataArray
31{
32public:
34#ifndef __VTK_WRAP__
35#undef vtkDataArray
36#endif
37
38 static vtkFloatArray* New();
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
42 // This macro expands to the set of method declarations that
43 // make up the interface of vtkAOSDataArrayTemplate, which is ignored
44 // by the wrappers.
45#if defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)
47#endif
48
56
57protected:
59 ~vtkFloatArray() override;
60
61private:
62 typedef vtkAOSDataArrayTemplate<float> RealSuperclass;
63
64 vtkFloatArray(const vtkFloatArray&) = delete;
65 void operator=(const vtkFloatArray&) = delete;
66};
67
68// Define vtkArrayDownCast implementation:
70
71VTK_ABI_NAMESPACE_END
72#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:29
#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