libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::MapPainter::WayData Class Reference

Data structure for holding temporary data about ways. More...

#include <MapPainter.h>

Public Member Functions

bool operator< (const WayData &other) const
 We then draw lines in order of layer (Smaller layers first) More...
 

Public Attributes

const FeatureValueBufferbuffer
 Features of the line segment. More...
 
Color color
 Line color. More...
 
CoordBufferRange coordRange
 Range of coordinates in transformation buffer. More...
 
bool endIsClosed
 The end of the way is closed, it does not lead to another way or area. More...
 
int8_t layer
 Layer this way is in. More...
 
LineStyleRef lineStyle
 Line style. More...
 
double lineWidth
 Line width. More...
 
bool startIsClosed
 The end of the way is closed, it does not lead to another way or area. More...
 
size_t wayPriority
 Priority of way (from style sheet) More...
 

Detailed Description

Data structure for holding temporary data about ways.

Member Function Documentation

◆ operator<()

bool osmscout::MapPainter::WayData::operator< ( const WayData other) const
inline

We then draw lines in order of layer (Smaller layers first)

Within a layer, we draw lines in order of line style priority (first overlays, lower priority value first)

Within a style priority, we draw transparent lines over solid lines

Within a style priority we draw lines in order of style sheet way priority (more important ways on top of less important ways, higher priority value first))

Parameters
other
Returns

References layer, lineStyle, and wayPriority.

Member Data Documentation

◆ buffer

const FeatureValueBuffer* osmscout::MapPainter::WayData::buffer

Features of the line segment.

Referenced by osmscout::MapPainter::DrawContourLines().

◆ color

Color osmscout::MapPainter::WayData::color

◆ coordRange

CoordBufferRange osmscout::MapPainter::WayData::coordRange

Range of coordinates in transformation buffer.

Referenced by osmscout::MapPainter::DrawContourLines(), osmscout::MapPainterSVG::DrawWay(), and osmscout::MapPainter::DrawWay().

◆ endIsClosed

bool osmscout::MapPainter::WayData::endIsClosed

The end of the way is closed, it does not lead to another way or area.

Referenced by osmscout::MapPainter::DrawContourLines(), osmscout::MapPainterSVG::DrawWay(), and osmscout::MapPainter::DrawWay().

◆ layer

int8_t osmscout::MapPainter::WayData::layer

Layer this way is in.

Referenced by osmscout::MapPainter::DrawContourLines(), and operator<().

◆ lineStyle

◆ lineWidth

double osmscout::MapPainter::WayData::lineWidth

◆ startIsClosed

bool osmscout::MapPainter::WayData::startIsClosed

The end of the way is closed, it does not lead to another way or area.

Referenced by osmscout::MapPainter::DrawContourLines(), osmscout::MapPainterSVG::DrawWay(), and osmscout::MapPainter::DrawWay().

◆ wayPriority

size_t osmscout::MapPainter::WayData::wayPriority

Priority of way (from style sheet)

Referenced by osmscout::MapPainter::DrawContourLines(), and operator<().


The documentation for this class was generated from the following file: