Go to the documentation of this file.
71 #ifndef vtkSparseArray_h
72 #define vtkSparseArray_h
219 std::vector<vtkStdString> DimensionLabels;
224 std::vector<std::vector<CoordinateT> > Coordinates;
227 std::vector<T> Values;
236 #include "vtkSparseArray.txx"
void AddValue(const vtkArrayCoordinates &coordinates, const T &value)
const T & GetValueN(const SizeT n)
void Sort(const vtkArraySort &sort)
void SetExtents(const vtkArrayExtents &extents)
const vtkArrayExtents & GetExtents()
vtkArrayExtents::SizeT SizeT
Controls sorting of sparse array coordinates.
const T * GetValueStorage() const
static vtkSparseArray< T > * New()
const T & GetValue(CoordinateT i, CoordinateT j, CoordinateT k)
CoordinateT * GetCoordinateStorage(DimensionT dimension)
const CoordinateT * GetCoordinateStorage(DimensionT dimension) const
vtkArray::DimensionT DimensionT
void AddValue(CoordinateT i, CoordinateT j, CoordinateT k, const T &value)
void SetValueN(const SizeT n, const T &value)
void PrintSelf(ostream &os, vtkIndent indent)
std::vector< CoordinateT > GetUniqueCoordinates(DimensionT dimension)
GLsizei const GLfloat * value
void AddValue(CoordinateT i, const T &value)
void SetValue(CoordinateT i, const T &value)
void SetValue(const vtkArrayCoordinates &coordinates, const T &value)
a simple class to control print indentation
void GetCoordinatesN(const SizeT n, vtkArrayCoordinates &coordinates)
void SetNullValue(const T &value)
Abstract interface for N-dimensional arrays.
void SetValue(CoordinateT i, CoordinateT j, CoordinateT k, const T &value)
Sparse, independent coordinate storage for N-way arrays.
void ReserveStorage(const SizeT value_count)
vtkArray::CoordinateT CoordinateT
void AddValue(CoordinateT i, CoordinateT j, const T &value)
void SetExtentsFromContents()
const T & GetValue(CoordinateT i)
Wrapper around std::string to keep symbols short.
const T & GetValue(const vtkArrayCoordinates &coordinates)
vtkArrayExtents::CoordinateT CoordinateT
const T & GetValue(CoordinateT i, CoordinateT j)
Stores the number of dimensions and valid coordinate ranges along each dimension for vtkArray.
Stores coordinate into an N-way array.
vtkArrayExtents::DimensionT DimensionT
Provides the equivalent of vtkTypeMacro for use with template classes.
void SetValue(CoordinateT i, CoordinateT j, const T &value)