VTK  9.6.20260313
vtkUnsignedCharArray.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
126
127#ifndef vtkUnsignedCharArray_h
128#define vtkUnsignedCharArray_h
129
130#include "vtkAOSDataArrayTemplate.h" // Real Superclass
131#include "vtkCommonCoreModule.h" // For export macro
132#include "vtkDataArray.h"
133
134// Fake the superclass for non-Python wrappers.
135// Python can handle the templated superclass; Java and others cannot.
136#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
137#define vtkDataArray vtkAOSDataArrayTemplate<unsigned char>
138#endif
139VTK_ABI_NAMESPACE_BEGIN
140class VTKCOMMONCORE_EXPORT vtkUnsignedCharArray : public vtkDataArray
141{
142public:
144#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
145#undef vtkDataArray
146#endif
149 void PrintSelf(ostream& os, vtkIndent indent) override;
150
151 // This macro expands to the set of method declarations that
152 // make up the interface of vtkAOSDataArrayTemplate, which is ignored
153 // by the wrappers.
154#if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
155 vtkCreateWrappedArrayInterface(unsigned char);
156#endif
157
165
166protected:
169
170private:
171 typedef vtkAOSDataArrayTemplate<unsigned char> RealSuperclass;
172
174 void operator=(const vtkUnsignedCharArray&) = delete;
175};
176
177// Define vtkArrayDownCast implementation:
179
180VTK_ABI_NAMESPACE_END
181#endif
Abstract superclass for all arrays.
static vtkDataArray * FastDownCast(vtkAbstractArray *source)
Perform a fast, safe cast from a vtkAbstractArray to a vtkDataArray.
a simple class to control print indentation
Definition vtkIndent.h:108
dynamic, self-adjusting array of unsigned char
static vtkUnsignedCharArray * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkUnsignedCharArray() override
static vtkUnsignedCharArray * ExtendedNew()
static vtkUnsignedCharArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
#define vtkCreateWrappedArrayInterface(T)
#define vtkArrayDownCast_FastCastMacro(ArrayT)
This macro is used to tell vtkArrayDownCast to use FastDownCast instead of SafeDownCast.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define vtkDataArray