vtkStructuredPointTypeUInt32Array.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
15 #ifndef vtkStructuredPointTypeUInt32Array_h
16 #define vtkStructuredPointTypeUInt32Array_h
17 
18 #include "vtkCommonCoreModule.h" // For export macro
19 #include "vtkDataArray.h"
20 #include "vtkStructuredPointArray.h" // Real Superclass
21 
22 // Fake the superclass for non-Python wrappers.
23 // Python can handle the templated superclass; Java and others cannot.
24 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
25 #define vtkDataArray vtkStructuredPointArray<vtkTypeUInt32>
26 #endif
29 {
30 public:
31  vtkImplicitArrayTypeMacro(vtkStructuredPointTypeUInt32Array, vtkDataArray);
32 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
33 #undef vtkDataArray
34 #endif
35 
36  // This macro expands to the set of method declarations that
37  // make up the interface of vtkStructuredPointArray, which is ignored
38  // by the wrappers.
39 #if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
40  vtkCreateStructuredPointWrappedArrayInterface(vtkTypeUInt32);
41 #endif
42 
44  static vtkStructuredPointTypeUInt32Array* ExtendedNew();
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
51  {
52  return static_cast<vtkStructuredPointTypeUInt32Array*>(Superclass::FastDownCast(source));
53  }
54 
55 protected:
58 
59 private:
60  typedef vtkStructuredPointArray<vtkTypeUInt32> RealSuperclass;
61 
63  void operator=(const vtkStructuredPointTypeUInt32Array&) = delete;
64 };
65 
66 // Define vtkArrayDownCast implementation:
68 
70 #endif
71 // VTK-HeaderTest-Exclude: TYPEMACRO
A structured point array of vtkTypeUInt32 used by vtkCartesianGrid subclasses.
#define VTKCOMMONCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
static vtkStructuredPointTypeUInt32Array * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
vtkArrayDownCast_FastCastMacro(vtkStructuredPointTypeUInt32Array)
#define VTK_ABI_NAMESPACE_BEGIN
static vtkObject * New()
void operator=(const vtkObjectBase &)