45#include "vtkCommonCoreModule.h"
50VTK_ABI_NAMESPACE_BEGIN
85 virtual bool IsDense() VTK_FUTURE_CONST = 0;
237 void operator=(const
vtkArray&) = delete;
Stores coordinate into an N-way array.
Stores the number of dimensions and valid coordinate ranges along each dimension for vtkArray.
vtkArrayCoordinates::CoordinateT CoordinateT
vtkArrayCoordinates::DimensionT DimensionT
Stores a half-open range of array coordinates.
@ SPARSE
Used with CreateArray() to create sparse arrays.
@ DENSE
Used with CreateArray() to create dense arrays.
void SetDimensionLabel(DimensionT i, const vtkStdString &label)
Sets the label for the i-th array dimension.
virtual const vtkArrayExtents & GetExtents() VTK_FUTURE_CONST=0
Returns the extents (the number of dimensions and size along each dimension) of the array.
DimensionT GetDimensions() VTK_FUTURE_CONST
Returns the number of dimensions stored in the array.
vtkStdString GetDimensionLabel(DimensionT i) VTK_FUTURE_CONST
Returns the label for the i-th array dimension.
virtual void GetCoordinatesN(SizeT n, vtkArrayCoordinates &coordinates) VTK_FUTURE_CONST=0
Returns the coordinates of the n-th value in the array, where n is in the range [0,...
void Resize(CoordinateT i)
Resizes the array to the given extents (number of dimensions and size of each dimension).
void SetVariantValue(CoordinateT i, const vtkVariant &value)
Overwrites the value stored in the array at the given coordinates.
virtual void SetVariantValueN(SizeT n, const vtkVariant &value)=0
Overwrites the n-th value stored in the array, where n is in the range [0, GetNonNullSize()).
vtkArrayExtents::SizeT SizeT
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual vtkVariant GetVariantValueN(SizeT n)=0
Returns the n-th value stored in the array, where n is in the range [0, GetNonNullSize()).
void SetName(const vtkStdString &name)
Sets the array name.
vtkArrayRange GetExtent(DimensionT dimension)
Returns the extent (valid coordinate range) along the given dimension.
vtkArrayExtents::DimensionT DimensionT
virtual bool IsDense() VTK_FUTURE_CONST=0
Returns true iff the underlying array storage is "dense", i.e.
virtual SizeT GetNonNullSize() VTK_FUTURE_CONST=0
Returns the number of non-null values stored in the array.
vtkStdString GetName() VTK_FUTURE_CONST
Returns the array name.
virtual void CopyValue(vtkArray *source, const vtkArrayCoordinates &source_coordinates, const vtkArrayCoordinates &target_coordinates)=0
Overwrites a value with a value retrieved from another array.
static vtkArray * CreateArray(int StorageType, int ValueType)
Creates a new array where StorageType is one of vtkArray::DENSE or vtkArray::SPARSE,...
SizeT GetSize() VTK_FUTURE_CONST
Returns the number of values stored in the array.
vtkArrayExtents::CoordinateT CoordinateT
virtual vtkArray * DeepCopy()=0
Returns a new array that is a deep copy of this array.
vtkVariant GetVariantValue(CoordinateT i)
Returns the value stored in the array at the given coordinates.
a simple class to control print indentation
Wrapper around std::string to keep symbols short.
vtkVariant GetVariantValue(const vtkArrayCoordinates &coordinates) override
Returns the value stored in the array at the given coordinates.
vtkArray::CoordinateT CoordinateT
void SetVariantValue(const vtkArrayCoordinates &coordinates, const vtkVariant &value) override
Overwrites the value stored in the array at the given coordinates.
A type representing the union of many types.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)