VTK  9.3.0
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 the wrappers.
23 #ifndef __VTK_WRAP__
24 #define vtkDataArray vtkAOSDataArrayTemplate<signed char>
25 #endif
26 VTK_ABI_NAMESPACE_BEGIN
27 class VTKCOMMONCORE_EXPORT vtkSignedCharArray : public vtkDataArray
28 {
29 public:
31 #ifndef __VTK_WRAP__
32 #undef vtkDataArray
33 #endif
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
38  // This macro expands to the set of method declarations that
39  // make up the interface of vtkAOSDataArrayTemplate, which is ignored
40  // by the wrappers.
41 #if defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)
42  vtkCreateWrappedArrayInterface(signed char);
43 #endif
44 
49  {
50  return static_cast<vtkSignedCharArray*>(Superclass::FastDownCast(source));
51  }
52 
56  static signed char GetDataTypeValueMin() { return VTK_SIGNED_CHAR_MIN; }
57 
61  static signed char GetDataTypeValueMax() { return VTK_SIGNED_CHAR_MAX; }
62 
63 protected:
65  ~vtkSignedCharArray() override;
66 
67 private:
69 
70  vtkSignedCharArray(const vtkSignedCharArray&) = delete;
71  void operator=(const vtkSignedCharArray&) = delete;
72 };
73 
74 // Define vtkArrayDownCast implementation:
76 
77 VTK_ABI_NAMESPACE_END
78 #endif
Abstract superclass for all arrays.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:45
a simple class to control print indentation
Definition: vtkIndent.h:29
dynamic, self-adjusting array of signed char
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkSignedCharArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
static vtkSignedCharArray * ExtendedNew()
static signed char GetDataTypeValueMin()
Get the minimum data value in its native type.
~vtkSignedCharArray() override
static signed char GetDataTypeValueMax()
Get the maximum data value in its native type.
static vtkSignedCharArray * New()
#define vtkCreateWrappedArrayInterface(T)
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
vtkArrayDownCast_FastCastMacro(vtkSignedCharArray)
#define VTK_SIGNED_CHAR_MAX
Definition: vtkType.h:136
#define VTK_SIGNED_CHAR_MIN
Definition: vtkType.h:135