vtkStructuredPointTypeUInt16Array.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 vtkStructuredPointTypeUInt16Array_h
16 #define vtkStructuredPointTypeUInt16Array_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<vtkTypeUInt16>
26 #endif
29 {
30 public:
31  vtkImplicitArrayTypeMacro(vtkStructuredPointTypeUInt16Array, 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(vtkTypeUInt16);
41 #endif
42 
44  static vtkStructuredPointTypeUInt16Array* ExtendedNew();
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
51  {
52  return static_cast<vtkStructuredPointTypeUInt16Array*>(Superclass::FastDownCast(source));
53  }
54 
55 protected:
58 
59 private:
60  typedef vtkStructuredPointArray<vtkTypeUInt16> RealSuperclass;
61 
63  void operator=(const vtkStructuredPointTypeUInt16Array&) = delete;
64 };
65 
66 // Define vtkArrayDownCast implementation:
68 
70 #endif
71 // VTK-HeaderTest-Exclude: TYPEMACRO
#define VTKCOMMONCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
A structured point array of vtkTypeUInt16 used by vtkCartesianGrid subclasses.
static vtkStructuredPointTypeUInt16Array * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
#define VTK_ABI_NAMESPACE_BEGIN
static vtkObject * New()
void operator=(const vtkObjectBase &)
vtkArrayDownCast_FastCastMacro(vtkStructuredPointTypeUInt16Array)