![]() |
Mapper
0.9.0
API documentation
|
A high-level container for renderables of multiple objects grouped by color priority, object and common render attributes. More...
#include <renderable.h>
Classes | |
class | ObjectDeleter |
An Object deleter which takes care of removing the renderables of the object. More... | |
Public Member Functions | |
MapRenderables (Map *map) | |
void | draw (QPainter *painter, const RenderConfig &config) const |
Draws the renderables normally (one opaque over the other). More... | |
void | drawOverprintingSimulation (QPainter *painter, const RenderConfig &config) const |
Draws the renderables in a spot color overprinting simulation. More... | |
void | drawColorSeparation (QPainter *painter, const RenderConfig &config, const MapColor *separation, bool use_color=false) const |
Draws only the renderables which belong to a particular spot color. More... | |
void | insertRenderablesOfObject (const Object *object) |
void | removeRenderablesOfObject (const Object *object, bool mark_area_as_dirty) |
void | clear (bool mark_area_as_dirty=false) |
bool | empty () const |
A high-level container for renderables of multiple objects grouped by color priority, object and common render attributes.
This container is able to draw the renderables.
OpenOrienteering::MapRenderables::MapRenderables | ( | Map * | map | ) |
void OpenOrienteering::MapRenderables::clear | ( | bool | mark_area_as_dirty = false | ) |
void OpenOrienteering::MapRenderables::draw | ( | QPainter * | painter, |
const RenderConfig & | config | ||
) | const |
Draws the renderables normally (one opaque over the other).
painter | The QPainter used for drawing. |
config | The rendering configuration |
void OpenOrienteering::MapRenderables::drawColorSeparation | ( | QPainter * | painter, |
const RenderConfig & | config, | ||
const MapColor * | separation, | ||
bool | use_color = false |
||
) | const |
Draws only the renderables which belong to a particular spot color.
Separations are normally drawn in levels of gray where black means full tone of the spot color. The parameter use_color can be used to draw in the actual spot color instead.
painter | The QPainter used for drawing. |
config | The rendering configuration |
separation | The spot color to draw the separation for. |
use_color | If true, forces the separation to be drawn in its actual color. |
void OpenOrienteering::MapRenderables::drawOverprintingSimulation | ( | QPainter * | painter, |
const RenderConfig & | config | ||
) | const |
|
inline |
void OpenOrienteering::MapRenderables::insertRenderablesOfObject | ( | const Object * | object | ) |
void OpenOrienteering::MapRenderables::removeRenderablesOfObject | ( | const Object * | object, |
bool | mark_area_as_dirty | ||
) |