libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::VisibilityBounds Struct Reference

Index selectors by type and level. More...

#include <StyleConfig.h>

Public Attributes

double maxIconHeight =0.0
 Widest icon height [pixels] of the icon styles of the level.
 
double maxIconWidth =0.0
 Widest icon width [pixels] of the icon styles of the level.
 
double maxWayDisplayWidth =0.0
 Widest summed display width [mm] of the line styles of the level.
 
double maxWayLineWidth =0.0
 Widest summed line width [map units] of the line styles of the level.
 
std::vector< SymbolRefsymbols
 Symbols the level can resolve, their extent depends on the projection.
 

Detailed Description

Index selectors by type and level.

The conservative visual reach of the styles of one magnification level: the widest extent an object of that level can reach with any style the level can resolve. The values are upper bounds, i.e. they are never smaller than the extent of a style resolved for the level, so a painter may use them to reject objects that provably cannot be visible without changing the rendered output.

The values are in the units of the style sheet (line widths in map units, display widths and symbol sizes in mm, icon sizes in pixels), because the conversion to pixels depends on the projection of the frame. The symbols are returned by reference because their extent depends on the projection as well.

Member Data Documentation

◆ maxIconHeight

double osmscout::VisibilityBounds::maxIconHeight =0.0

Widest icon height [pixels] of the icon styles of the level.

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

◆ maxIconWidth

double osmscout::VisibilityBounds::maxIconWidth =0.0

Widest icon width [pixels] of the icon styles of the level.

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

◆ maxWayDisplayWidth

double osmscout::VisibilityBounds::maxWayDisplayWidth =0.0

Widest summed display width [mm] of the line styles of the level.

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

◆ maxWayLineWidth

double osmscout::VisibilityBounds::maxWayLineWidth =0.0

Widest summed line width [map units] of the line styles of the level.

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

◆ symbols

std::vector<SymbolRef> osmscout::VisibilityBounds::symbols

Symbols the level can resolve, their extent depends on the projection.

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


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