VTK  9.7.0
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
17
18#ifndef vtkDoubleArray_h
19#define vtkDoubleArray_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 non-Python wrappers.
26// Python can handle the templated superclass; Java and others cannot.
27#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
28#define vtkDataArray vtkAOSDataArrayTemplate<double>
29#endif
30VTK_ABI_NAMESPACE_BEGIN
31class VTKCOMMONCORE_EXPORT vtkDoubleArray : public vtkDataArray
32{
33public:
35#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
36#undef vtkDataArray
37#endif
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__)) && !defined(__VTK_WRAP_PYTHON__)
47#endif
48
53 {
54 return static_cast<vtkDoubleArray*>(Superclass::FastDownCast(source));
55 }
56
57protected:
59 ~vtkDoubleArray() override;
60
61private:
62 typedef vtkAOSDataArrayTemplate<double> RealSuperclass;
63
64 vtkDoubleArray(const vtkDoubleArray&) = delete;
65 void operator=(const vtkDoubleArray&) = 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 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: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