vtkStridedTypeUInt32Array.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 vtkStridedTypeUInt32Array_h
14 #define vtkStridedTypeUInt32Array_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 non-Python wrappers.
21 // Python can handle the templated superclass; Java and others cannot.
22 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
23 #define vtkDataArray vtkStridedArray<vtkTypeUInt32>
24 #endif
27 {
28 public:
29  vtkImplicitArrayTypeMacro(vtkStridedTypeUInt32Array, vtkDataArray);
30 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
31 #undef vtkDataArray
32 #endif
33 
35  static vtkStridedTypeUInt32Array* ExtendedNew();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
38  // This macro expands to the set of method declarations that
39  // make up the interface of vtkStridedArray, which is ignored
40  // by the wrappers.
41 #if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
42  vtkCreateStridedWrappedArrayInterface(vtkTypeUInt32);
43 #endif
44 
49  {
50  return static_cast<vtkStridedTypeUInt32Array*>(Superclass::FastDownCast(source));
51  }
52 
53 protected:
55  ~vtkStridedTypeUInt32Array() override;
56 
57 private:
58  typedef vtkStridedArray<vtkTypeUInt32> RealSuperclass;
59 
61  void operator=(const vtkStridedTypeUInt32Array&) = delete;
62 };
63 
64 // Define vtkArrayDownCast implementation:
66 
68 #endif
69 // VTK-HeaderTest-Exclude: TYPEMACRO
vtkArrayDownCast_FastCastMacro(vtkStridedTypeUInt32Array)
static vtkStridedTypeUInt32Array * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
#define VTKCOMMONCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
#define VTK_ABI_NAMESPACE_BEGIN
static vtkObject * New()
strided implicit array of vtkTypeUInt32.
void operator=(const vtkObjectBase &)