44#ifndef vtkArrayCoordinates_h
45#define vtkArrayCoordinates_h
47#include "vtkCommonCoreModule.h"
124 std::vector<CoordinateT> Storage;
Stores coordinate into an N-way array.
void SetDimensions(DimensionT dimensions)
Set the number of dimensions.
const CoordinateT & operator[](DimensionT i) const
Returns the coordinate of the i-th dimension.
CoordinateT GetCoordinate(DimensionT i) const
Returns the coordinate of the i-th dimension.
vtkArrayCoordinates(CoordinateT i, CoordinateT j)
Create coordinates for a two-dimensional array.
vtkArrayCoordinates()
Create an empty set of coordinates.
CoordinateT & operator[](DimensionT i)
Returns the coordinate of the i-th dimension.
VTKCOMMONCORE_EXPORT friend ostream & operator<<(ostream &stream, const vtkArrayCoordinates &rhs)
Inequality comparison.
DimensionT GetDimensions() const
Return the number of dimensions contained in the coordinates.
bool operator!=(const vtkArrayCoordinates &rhs) const
Inequality comparison.
void SetCoordinate(DimensionT i, const CoordinateT &)
Sets the coordinate of the i-th dimension.
vtkArrayCoordinates(CoordinateT i)
Create coordinates for a one-dimensional array.
bool operator==(const vtkArrayCoordinates &rhs) const
Equality comparison.
vtkArrayCoordinates(CoordinateT i, CoordinateT j, CoordinateT k)
Create coordinates for a three-dimensional array.