VTK  9.7.20260813
vtkDoubleArray.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 vtkDoubleArray_h
128#define vtkDoubleArray_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<double>
139#endif
140VTK_ABI_NAMESPACE_BEGIN
141class VTKCOMMONCORE_EXPORT VTK_MARSHALAUTO vtkDoubleArray : public vtkDataArray
142{
143public:
145#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
146#undef vtkDataArray
147#endif
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 ~vtkDoubleArray() override;
170
171private:
172 typedef vtkAOSDataArrayTemplate<double> RealSuperclass;
173
174 vtkDoubleArray(const vtkDoubleArray&) = delete;
175 void operator=(const vtkDoubleArray&) = 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 double
static vtkDoubleArray * ExtendedNew()
static vtkDoubleArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkDoubleArray * New()
~vtkDoubleArray() override
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