vtkCompositeUnsignedShortArray.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 vtkCompositeUnsignedShortArray_h
14 #define vtkCompositeUnsignedShortArray_h
15 
16 #include "vtkCompositeArray.h" // Real Superclass
17 #include "vtkCommonCoreModule.h" // For export macro
18 #include "vtkDataArray.h"
19 
20 // Fake the superclass for the wrappers.
21 #ifndef __VTK_WRAP__
22 #define vtkDataArray vtkCompositeArray<unsigned short>
23 #endif
26 
28 {
29 public:
30  vtkImplicitArrayTypeMacro(vtkCompositeUnsignedShortArray, vtkDataArray);
31 #ifndef __VTK_WRAP__
32 #undef vtkDataArray
33 #endif
34 
36  static vtkCompositeUnsignedShortArray* ExtendedNew();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
39  // This macro expands to the set of method declarations that
40  // make up the interface of vtkImplicitArray, which is ignored
41  // by the wrappers.
42 #if defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)
43  vtkCreateReadOnlyWrappedArrayInterface(unsigned short);
44 #endif
45 
50  {
51  return static_cast<vtkCompositeUnsignedShortArray*>(Superclass::FastDownCast(source));
52  }
53 
57  void ConstructBackend(vtkDataArrayCollection* arrays);
58 
59 protected:
62 
63 private:
64  typedef vtkCompositeArray<unsigned short> RealSuperclass;
65 
67  void operator=(const vtkCompositeUnsignedShortArray&) = delete;
68 };
69 
70 // Define vtkArrayDownCast implementation:
72 
74 #endif
75 // VTK-HeaderTest-Exclude: TYPEMACRO
composite implicit array of unsigned short.
#define VTKCOMMONCORE_EXPORT
#define VTK_ABI_NAMESPACE_END
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
static vtkCompositeUnsignedShortArray * 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(vtkCompositeUnsignedShortArray)