VTK
|
Stores a half-open range of array coordinates. More...
#include <vtkArrayRange.h>
Public Types | |
typedef vtkArrayCoordinates::CoordinateT | CoordinateT |
Public Member Functions | |
vtkArrayRange () | |
Creates an empty range. More... | |
vtkArrayRange (CoordinateT begin, CoordinateT end) | |
Creates a half-open range [begin, end). More... | |
CoordinateT | GetBegin () const |
Returns the beginning of the range. More... | |
CoordinateT | GetEnd () const |
Returns one-past-the-end of the range. More... | |
CoordinateT | GetSize () const |
Returns the size of the range (the distance End - Begin). More... | |
bool | Contains (const vtkArrayRange &range) const |
Returns true iff the given range is a non-overlapping subset of this range. More... | |
bool | Contains (const CoordinateT coordinate) const |
Returns true iff the given coordinate falls within this range. More... | |
Friends | |
VTKCOMMONCORE_EXPORT friend ostream & | operator<< (ostream &stream, const vtkArrayRange &rhs) |
Serialization. More... | |
VTKCOMMONCORE_EXPORT friend bool | operator== (const vtkArrayRange &lhs, const vtkArrayRange &rhs) |
Equality comparisons. More... | |
VTKCOMMONCORE_EXPORT friend bool | operator!= (const vtkArrayRange &lhs, const vtkArrayRange &rhs) |
Equality comparisons. More... | |
Stores a half-open range of array coordinates.
vtkArrayRange stores a half-open range of array coordinates along a single dimension of a vtkArraySlice object.
Definition at line 51 of file vtkArrayRange.h.
Definition at line 54 of file vtkArrayRange.h.
vtkArrayRange::vtkArrayRange | ( | ) |
Creates an empty range.
vtkArrayRange::vtkArrayRange | ( | CoordinateT | begin, |
CoordinateT | end | ||
) |
Creates a half-open range [begin, end).
Note that begin must be <= end, if not, creates the empty range [begin, begin).
CoordinateT vtkArrayRange::GetBegin | ( | ) | const |
Returns the beginning of the range.
CoordinateT vtkArrayRange::GetEnd | ( | ) | const |
Returns one-past-the-end of the range.
CoordinateT vtkArrayRange::GetSize | ( | ) | const |
Returns the size of the range (the distance End - Begin).
bool vtkArrayRange::Contains | ( | const vtkArrayRange & | range | ) | const |
Returns true iff the given range is a non-overlapping subset of this range.
bool vtkArrayRange::Contains | ( | const CoordinateT | coordinate | ) | const |
Returns true iff the given coordinate falls within this range.
|
friend |
Equality comparisons.
|
friend |
Equality comparisons.
|
friend |
Serialization.