vtkSOATypeUInt32Array.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 vtkSOATypeUInt32Array_h
14 #define vtkSOATypeUInt32Array_h
15 
16 #include "vtkCommonCoreModule.h" // For export macro
17 #include "vtkSOADataArrayTemplate.h" // Real Superclass
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__) || defined(__VTK_WRAP_HIERARCHY__)
23 #define vtkDataArray vtkSOADataArrayTemplate<vtkTypeUInt32>
24 #endif
27 {
28 public:
30 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
31 #undef vtkDataArray
32 #endif
33 
34  static vtkSOATypeUInt32Array* New();
35  static vtkSOATypeUInt32Array* ExtendedNew();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
38  // This macro expands to the set of method declarations that make up
39  // the interface of vtkSOADataArrayTemplate, which is ignored by wrappers
40  // other than the Python wrappers
41 #if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
42  vtkCreateSOAWrappedArrayInterface(vtkTypeUInt32);
43 #endif
44 
49  {
50  return static_cast<vtkSOATypeUInt32Array*>(Superclass::FastDownCast(source));
51  }
52 
53 protected:
55  ~vtkSOATypeUInt32Array() override;
56 
57 private:
59 
61  void operator=(const vtkSOATypeUInt32Array&) = delete;
62 };
63 
64 // Define vtkArrayDownCast implementation:
66 
68 #endif
69 // VTK-HeaderTest-Exclude: TYPEMACRO
#define VTKCOMMONCORE_EXPORT
static vtkSOATypeUInt32Array * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
#define VTK_ABI_NAMESPACE_BEGIN
soa array of vtkTypeUInt32.
static vtkObject * New()
void operator=(const vtkObjectBase &)
vtkArrayDownCast_FastCastMacro(vtkSOATypeUInt32Array)