vtkStridedTypeFloat32Array.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 vtkStridedTypeFloat32Array_h
14 #define vtkStridedTypeFloat32Array_h
15 
16 #include "vtkStridedArray.h" // Real Superclass
17 #include "vtkCommonCoreModule.h" // For export macro
18 #include "vtkDataArray.h"
19 
20 // Fake the superclass for the wrappers.
21 #ifndef __VTK_WRAP__
22 #define vtkDataArray vtkStridedArray<vtkTypeFloat32>
23 #endif
26 {
27 public:
28  vtkImplicitArrayTypeMacro(vtkStridedTypeFloat32Array, vtkDataArray);
29 #ifndef __VTK_WRAP__
30 #undef vtkDataArray
31 #endif
32 
34  static vtkStridedTypeFloat32Array* ExtendedNew();
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
37  // This macro expands to the set of method declarations that
38  // make up the interface of vtkImplicitArray, which is ignored
39  // by the wrappers.
40 #if defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)
41  vtkCreateReadOnlyWrappedArrayInterface(vtkTypeFloat32);
42 #endif
43 
48  {
49  return static_cast<vtkStridedTypeFloat32Array*>(Superclass::FastDownCast(source));
50  }
51 
53 
56  void ConstructBackend(const vtkTypeFloat32* buffer, vtkIdType stride, int components, vtkIdType offset);
57  void ConstructBackend(const vtkTypeFloat32* buffer, vtkIdType stride, int components);
58  void ConstructBackend(const vtkTypeFloat32* buffer, vtkIdType stride);
60 
61 protected:
63  ~vtkStridedTypeFloat32Array() override;
64 
65 private:
66  typedef vtkStridedArray<vtkTypeFloat32> RealSuperclass;
67 
69  void operator=(const vtkStridedTypeFloat32Array&) = delete;
70 };
71 
72 // Define vtkArrayDownCast implementation:
74 
76 #endif
77 // VTK-HeaderTest-Exclude: TYPEMACRO
offset
vtkArrayDownCast_FastCastMacro(vtkStridedTypeFloat32Array)
strided implicit array of vtkTypeFloat32.
#define VTKCOMMONCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
int vtkIdType
static vtkStridedTypeFloat32Array * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
#define VTK_ABI_NAMESPACE_BEGIN
static vtkObject * New()
void operator=(const vtkObjectBase &)