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 "vtkDeprecation.h" // For VTK_DEPRECATION_9_6_0
19 #include "vtkDataArray.h"
20 
21 // Fake the superclass for non-Python wrappers.
22 // Python can handle the templated superclass; Java and others cannot.
23 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
24 #define vtkDataArray vtkCompositeArray<unsigned char>
25 #endif
28 
29 class VTK_DEPRECATED_IN_9_6_0("Use vtkCompositeTypeUnsignedCharArray instead") VTKCOMMONCORE_EXPORT vtkCompositeUnsignedCharArray : public vtkDataArray
30 {
31 public:
32  vtkImplicitArrayTypeMacro(vtkCompositeUnsignedCharArray, vtkDataArray);
33 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
34 #undef vtkDataArray
35 #endif
36 
38  static vtkCompositeUnsignedCharArray* ExtendedNew();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
41  // This macro expands to the set of method declarations that
42  // make up the interface of vtkCompositeArray, which is ignored
43  // by the wrappers.
44 #if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
45  vtkCreateCompositeWrappedArrayInterface(unsigned char);
46 #endif
47 
52  {
53  return static_cast<vtkCompositeUnsignedCharArray*>(Superclass::FastDownCast(source));
54  }
55 
56 protected:
59 
60 private:
61  typedef vtkCompositeArray<unsigned char> RealSuperclass;
62 
64  void operator=(const vtkCompositeUnsignedCharArray&) = delete;
65 };
66 
67 // Define vtkArrayDownCast implementation:
69 
71 #endif
72 // VTK-HeaderTest-Exclude: TYPEMACRO
#define VTKCOMMONCORE_EXPORT
composite implicit array of unsigned char.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
#define VTK_ABI_NAMESPACE_BEGIN
static vtkDataArray * FastDownCast(vtkAbstractArray *source)
static vtkObject * New()
class VTK_DEPRECATED_IN_9_6_0("Use vtkCompositeTypeUnsignedCharArray instead") VTKCOMMONCORE_EXPORT vtkCompositeUnsignedCharArray vtkArrayDownCast_FastCastMacro(vtkCompositeUnsignedCharArray)
void operator=(const vtkObjectBase &)