![]() |
Mapper
0.9.0
API documentation
|
This class contains rendering configuration values. More...
#include <renderable.h>
Public Types | |
enum | Option { Screen = 1<<0, DisableAntialiasing = 1<<1, ForceMinSize = 1<<2, HelperSymbols = 1<<3, Highlighted = 1<<4, RequireSpotColor = 1<<5, Tool = Screen | ForceMinSize | HelperSymbols, NoOptions = 0 } |
Flags indicating particular rendering configuration options. More... | |
Public Member Functions | |
bool | testFlag (const Option flag) const |
A convenience method for testing flags in the options value. More... | |
Public Attributes | |
const Map & | map |
The map. More... | |
QRectF | bounding_box |
The bounding box of the area to be drawn. More... | |
qreal | scaling |
The scaling expressed as pixels per mm. More... | |
Options | options |
The rendering options. More... | |
qreal | opacity |
The opacity. More... | |
This class contains rendering configuration values.
A reference to an object of this class replaces what used to be part of the parameter list of various draw()/render() methods. With that old approach, each new rendering configuration option required changes in many signatures and function calls. In addition, the boolean options were not verbose at all.
Objects are meant to be initialized by initializer lists (C++11).
Flags indicating particular rendering configuration options.
A convenience method for testing flags in the options value.
QRectF OpenOrienteering::RenderConfig::bounding_box |
The bounding box of the area to be drawn.
Given in map coordinates.
const Map& OpenOrienteering::RenderConfig::map |
The map.
qreal OpenOrienteering::RenderConfig::opacity |
The opacity.
Options OpenOrienteering::RenderConfig::options |
The rendering options.
qreal OpenOrienteering::RenderConfig::scaling |
The scaling expressed as pixels per mm.
Used to calculate the final object sizes when ForceMinSize is set.