VTK  9.7.1
vtkSignedCharArray.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
15 #ifndef vtkSignedCharArray_h
16 #define vtkSignedCharArray_h
17 
18 #include "vtkAOSDataArrayTemplate.h" // Real Superclass
19 #include "vtkCommonCoreModule.h" // For export macro
20 #include "vtkDataArray.h"
21 
22 // Fake the superclass for non-Python wrappers.
23 // Python can handle the templated superclass; Java and others cannot.
24 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
25 #define vtkDataArray vtkAOSDataArrayTemplate<signed char>
26 #endif
27 VTK_ABI_NAMESPACE_BEGIN
28 class VTKCOMMONCORE_EXPORT vtkSignedCharArray : public vtkDataArray
29 {
30 public:
32 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
33 #undef vtkDataArray
34 #endif
35  static vtkSignedCharArray* New();
36  static vtkSignedCharArray* 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 vtkAOSDataArrayTemplate, which is ignored
41  // by the wrappers.
42 #if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
43  vtkCreateWrappedArrayInterface(signed char);
44 #endif
45 
50  {
51  return static_cast<vtkSignedCharArray*>(Superclass::FastDownCast(source));
52  }
53 
54 protected:
56  ~vtkSignedCharArray() override;
57 
58 private:
59  typedef vtkAOSDataArrayTemplate<signed char> RealSuperclass;
60 
61  vtkSignedCharArray(const vtkSignedCharArray&) = delete;
62  void operator=(const vtkSignedCharArray&) = delete;
63 };
64 
65 // Define vtkArrayDownCast implementation:
67 
68 VTK_ABI_NAMESPACE_END
69 #endif
Abstract superclass for all arrays.
#define vtkCreateWrappedArrayInterface(T)
vtkArrayDownCast_FastCastMacro(vtkSignedCharArray)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
dynamic, self-adjusting array of signed char
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
static vtkSignedCharArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...