vtkStdFunctionTypeFloat32Array.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
13 #ifndef vtkStdFunctionTypeFloat32Array_h
14 #define vtkStdFunctionTypeFloat32Array_h
15 
16 #include "vtkStdFunctionArray.h" // Real Superclass
17 #include "vtkCommonCoreModule.h" // For export macro
18 #include "vtkDeprecation.h" // For VTK_DEPRECATION_9_7_0
19 #include "vtkDataArray.h"
20 
21 // Fake the superclass for non-Python wrappers.
22 // Python can handle the templated superclass; Java and others cannot.
23 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
24 #define vtkDataArray vtkStdFunctionArray<vtkTypeFloat32>
25 #endif
27 class VTK_DEPRECATED_IN_9_7_0("Use vtkStdFunctionTypeTypeFloat32Array instead") VTKCOMMONCORE_EXPORT vtkStdFunctionTypeFloat32Array : public vtkDataArray
28 {
29 public:
30  vtkImplicitArrayTypeMacro(vtkStdFunctionTypeFloat32Array, vtkDataArray);
31 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
32 #undef vtkDataArray
33 #endif
34 
36  static vtkStdFunctionTypeFloat32Array* ExtendedNew();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
39  // This macro expands to the set of method declarations that
40  // make up the interface of vtkStdFunctionArray, which is ignored
41  // by the wrappers.
42 #if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
43  vtkCreateStdFunctionWrappedArrayInterface(vtkTypeFloat32);
44 #endif
45 
50  {
51  return static_cast<vtkStdFunctionTypeFloat32Array*>(Superclass::FastDownCast(source));
52  }
53 protected:
56 
57 private:
58  typedef vtkStdFunctionArray<vtkTypeFloat32> RealSuperclass;
59 
61  void operator=(const vtkStdFunctionTypeFloat32Array&) = delete;
62 };
63 
64 // Define vtkArrayDownCast implementation:
66 
68 #endif
69 // VTK-HeaderTest-Exclude: TYPEMACRO
#define VTKCOMMONCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
#define VTK_ABI_NAMESPACE_BEGIN
source
static vtkDataArray * FastDownCast(vtkAbstractArray *source)
VTK_ABI_NAMESPACE_BEGIN class VTK_DEPRECATED_IN_9_7_0("Use vtkStdFunctionTypeTypeFloat32Array instead") VTKCOMMONCORE_EXPORT vtkStdFunctionTypeFloat32Array vtkArrayDownCast_FastCastMacro(vtkStdFunctionTypeFloat32Array)
std function implicit array of vtkTypeFloat32.
static vtkObject * New()
void operator=(const vtkObjectBase &)