33 #ifndef vtkTypedArray_h
34 #define vtkTypedArray_h
38 VTK_ABI_NAMESPACE_BEGIN
73 virtual const T&
GetValue(CoordinateT i) = 0;
74 virtual const T&
GetValue(CoordinateT i, CoordinateT j) = 0;
75 virtual const T&
GetValue(CoordinateT i, CoordinateT j, CoordinateT k) = 0;
95 virtual void SetValue(CoordinateT i, CoordinateT j,
const T&
value) = 0;
96 virtual void SetValue(CoordinateT i, CoordinateT j, CoordinateT k,
const T&
value) = 0;
118 VTK_ABI_NAMESPACE_END
119 #include "vtkTypedArray.txx"
vtkVariant GetVariantValue(CoordinateT i)
Returns the value stored in the array at the given coordinates.
Stores coordinate into an N-way array.
virtual void SetValue(CoordinateT i, const T &value)=0
Overwrites the value stored in the array at the given coordinates.
virtual const T & GetValue(CoordinateT i)=0
Returns the value stored in the array at the given coordinates.
Abstract interface for N-dimensional arrays.
virtual const T & GetValueN(SizeT n)=0
Returns the n-th value stored in the array, where n is in the range [0, GetNonNullSize()).
~vtkTypedArray() override=default
vtkVariant GetVariantValue(const vtkArrayCoordinates &coordinates) override
Returns the value stored in the array at the given coordinates.
A type representing the union of many types.
a simple class to control print indentation
vtkVariant GetVariantValueN(SizeT n) override
Returns the n-th value stored in the array, where n is in the range [0, GetNonNullSize()).
vtkTemplateTypeMacro(vtkTypedArray< T >, vtkArray)
void SetVariantValue(CoordinateT i, const vtkVariant &value)
Overwrites the value stored in the array at the given coordinates.
vtkArrayExtents::SizeT SizeT
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void SetVariantValue(const vtkArrayCoordinates &coordinates, const vtkVariant &value) override
Overwrites the value stored in the array at the given coordinates.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void CopyValue(vtkArray *source, const vtkArrayCoordinates &source_coordinates, const vtkArrayCoordinates &target_coordinates) override
Overwrites a value with a value retrieved from another array.
Provides a type-specific interface to N-way arrays.
vtkArray::CoordinateT CoordinateT
virtual void SetValueN(SizeT n, const T &value)=0
Overwrites the n-th value stored in the array, where n is in the range [0, GetNonNullSize()).
void SetVariantValueN(SizeT n, const vtkVariant &value) override
Overwrites the n-th value stored in the array, where n is in the range [0, GetNonNullSize()).
vtkArrayExtents::CoordinateT CoordinateT