vtkStridedTypeUInt8Array.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 vtkStridedTypeUInt8Array_h
14 #define vtkStridedTypeUInt8Array_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<vtkTypeUInt8>
24 #endif
27 {
28 public:
29  vtkImplicitArrayTypeMacro(vtkStridedTypeUInt8Array, vtkDataArray);
30 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
31 #undef vtkDataArray
32 #endif
33 
34  static vtkStridedTypeUInt8Array* New();
35  static vtkStridedTypeUInt8Array* 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(vtkTypeUInt8);
43 #endif
44 
49  {
50  return static_cast<vtkStridedTypeUInt8Array*>(Superclass::FastDownCast(source));
51  }
52 
53 protected:
55  ~vtkStridedTypeUInt8Array() override;
56 
57 private:
58  typedef vtkStridedArray<vtkTypeUInt8> RealSuperclass;
59 
61  void operator=(const vtkStridedTypeUInt8Array&) = delete;
62 };
63 
64 // Define vtkArrayDownCast implementation:
66 
68 #endif
69 // VTK-HeaderTest-Exclude: TYPEMACRO
static vtkStridedTypeUInt8Array * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
#define VTKCOMMONCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
strided implicit array of vtkTypeUInt8.
#define VTK_ABI_NAMESPACE_BEGIN
static vtkObject * New()
void operator=(const vtkObjectBase &)
vtkArrayDownCast_FastCastMacro(vtkStridedTypeUInt8Array)