libosmscout
0.1
|
Hold a reference to a range of data within a CoordBuffer. More...
#include <Transformation.h>
Public Member Functions | |
CoordBufferRange ()=default | |
CoordBufferRange (const CoordBufferRange &other)=default | |
CoordBufferRange (CoordBuffer &coordBuffer, size_t start, size_t end) | |
Vertex2D | Get (size_t index) const |
Return the element with the given index. More... | |
size_t | GetEnd () const |
THe index of the last element. More... | |
Vertex2D | GetFirst () const |
Return the first element on the path. More... | |
Vertex2D | GetLast () const |
Return the last element on the path. More... | |
double | GetLength () const |
Returns the on-screen length of the path from the first to the last element. More... | |
size_t | GetSize () const |
Returns the number of elements (end-start+1) More... | |
size_t | GetStart () const |
Return the index of the first element. More... | |
bool | IsValid () const |
CoordBufferRange & | operator= (const CoordBufferRange &other) |
Hold a reference to a range of data within a CoordBuffer.
|
default |
|
default |
|
inline |
|
inline |
Return the element with the given index.
index | where index>=start && index<=end |
References osmscout::CoordBuffer::buffer.
Referenced by osmscout::MapPainterCairo::DrawArea(), osmscout::MapPainterQt::DrawArea(), osmscout::MapPainterCairo::DrawContourSymbol(), osmscout::MapPainterCairo::DrawPath(), and osmscout::MapPainterQt::DrawPath().
|
inline |
THe index of the last element.
Referenced by osmscout::MapPainterCairo::DrawArea(), osmscout::MapPainterAgg::DrawArea(), osmscout::MapPainterQt::DrawArea(), osmscout::MapPainterSVG::DrawArea(), osmscout::MapPainterCairo::DrawContourSymbol(), osmscout::MapPainterAgg::DrawPath(), osmscout::MapPainterCairo::DrawPath(), osmscout::MapPainterSVG::DrawPath(), osmscout::MapPainterQt::DrawPath(), osmscout::MapPainterSVG::DrawWay(), and osmscout::CoordBuffer::GenerateParallelWay().
|
inline |
Return the first element on the path.
References osmscout::CoordBuffer::buffer.
Referenced by osmscout::MapPainterCairo::DrawArea(), osmscout::MapPainterQt::DrawArea(), osmscout::MapPainterCairo::DrawContourSymbol(), osmscout::MapPainterCairo::DrawPath(), and osmscout::MapPainterQt::DrawPath().
|
inline |
Return the last element on the path.
References osmscout::CoordBuffer::buffer.
Referenced by osmscout::MapPainterCairo::DrawPath(), and osmscout::MapPainterQt::DrawPath().
|
inline |
Returns the on-screen length of the path from the first to the last element.
References osmscout::Vertex2D::GetX(), and osmscout::Vertex2D::GetY().
Referenced by osmscout::MapPainterCairo::DrawContourSymbol().
|
inline |
Returns the number of elements (end-start+1)
|
inline |
Return the index of the first element.
Referenced by osmscout::MapPainterCairo::DrawArea(), osmscout::MapPainterAgg::DrawArea(), osmscout::MapPainterQt::DrawArea(), osmscout::MapPainterSVG::DrawArea(), osmscout::MapPainterCairo::DrawContourSymbol(), osmscout::MapPainterAgg::DrawPath(), osmscout::MapPainterCairo::DrawPath(), osmscout::MapPainterSVG::DrawPath(), osmscout::MapPainterQt::DrawPath(), osmscout::MapPainterSVG::DrawWay(), and osmscout::CoordBuffer::GenerateParallelWay().
|
inline |
|
inline |