vtkCompositeUnsignedCharArray.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 vtkCompositeUnsignedCharArray_h
14 #define vtkCompositeUnsignedCharArray_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 char>
23 #endif
26 
28 {
29 public:
30  vtkImplicitArrayTypeMacro(vtkCompositeUnsignedCharArray, vtkDataArray);
31 #ifndef __VTK_WRAP__
32 #undef vtkDataArray
33 #endif
34 
36  static vtkCompositeUnsignedCharArray* 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 char);
44 #endif
45 
50  {
51  return static_cast<vtkCompositeUnsignedCharArray*>(Superclass::FastDownCast(source));
52  }
53 
57  void ConstructBackend(vtkDataArrayCollection* arrays);
58 
59 protected:
62 
63 private:
64  typedef vtkCompositeArray<unsigned char> RealSuperclass;
65 
67  void operator=(const vtkCompositeUnsignedCharArray&) = delete;
68 };
69 
70 // Define vtkArrayDownCast implementation:
72 
74 #endif
75 // VTK-HeaderTest-Exclude: TYPEMACRO
static vtkCompositeUnsignedCharArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
#define VTKCOMMONCORE_EXPORT
#define VTK_ABI_NAMESPACE_END
composite implicit array of unsigned char.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
#define VTK_ABI_NAMESPACE_BEGIN
vtkArrayDownCast_FastCastMacro(vtkCompositeUnsignedCharArray)
static vtkObject * New()
void operator=(const vtkObjectBase &)