1 #ifndef SZA_UTIL_COORDAXES_H
2 #define SZA_UTIL_COORDAXES_H
34 CoordAxes(
unsigned nel0,
unsigned nel1,
unsigned nel2);
69 unsigned int nEl(
int axis=-1);
106 std::vector<Range<unsigned> >
getRanges(CoordRange range);
107 std::vector<Range<unsigned> >
getRanges(CoordRange* range=0);
119 unsigned nEl(CoordRange& range);
120 unsigned nEl(CoordRange* range);
143 std::vector<unsigned int> nEl_;
148 void privateConstructor();
153 void checkValidityOf(
Coord& coord);
158 std::vector<Range<unsigned> >::iterator
159 findStopIndex(std::vector<Range<unsigned> >& ranges,
unsigned index);
164 void computeRanges(std::vector<Range<unsigned> >& ranges,
unsigned iAxis,
170 void addNewRange(std::vector<Range<unsigned> >& ranges,
171 unsigned startIndex,
unsigned stopIndex);
180 #endif // End #ifndef SZA_UTIL_COORDAXES_H
unsigned int nAxis()
Return the number of axes in this axis description.
bool operator==(CoordAxes &axes)
An operator for testing equality of two Axes.
Class for managing coordinate axes.
void setAxis(unsigned nAxis, unsigned nEl)
Method for setting the number of elements on an arbitrary axis.
Tagged: Thu Jun 24 17:38:28 UTC 2004.
friend std::ostream & operator<<(std::ostream &os, CoordAxes axes)
An operator for printing this object.
void fillRange(CoordRange &range)
This method fills out any missing dimensions in the range object with the full range for that axis...
void reset()
Reset this object.
virtual ~CoordAxes()
Destructor.
unsigned int nEl(int axis=-1)
Return the number of elements in an axis.
Tagged: Fri Sep 17 15:48:20 PDT 2004.
std::vector< Range< unsigned > > getRanges(CoordRange range)
CoordRange objects can specify a different range of indices in each axis.
bool rangeIsValid(CoordRange &range)
Check if a coordinate range is consistent with this axis specifier.
A class for specifying a coordinate in a multi-dimensional space.
Coord coordOf(unsigned element)
An N-dimensional axis description can be thought of as indexing a contiguous one-dimensional array...
unsigned int elementOffsetOf(Coord &coord)
An N-dimensional axis description can be thought of as indexing a contiguous one-dimensional array...
Tagged: Fri Sep 17 15:51:07 PDT 2004.