Mapper  0.9.0
API documentation
Classes | Public Member Functions | List of all members
OpenOrienteering::MapRenderables Class Reference

A high-level container for renderables of multiple objects grouped by color priority, object and common render attributes. More...

#include <renderable.h>

Inheritance diagram for OpenOrienteering::MapRenderables:
Inheritance graph
[legend]
Collaboration diagram for OpenOrienteering::MapRenderables:
Collaboration graph
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ MapRenderables()

OpenOrienteering::MapRenderables::MapRenderables ( Map map)

Member Function Documentation

◆ clear()

void OpenOrienteering::MapRenderables::clear ( bool  mark_area_as_dirty = false)

◆ draw()

void OpenOrienteering::MapRenderables::draw ( QPainter painter,
const RenderConfig config 
) const

Draws the renderables normally (one opaque over the other).

Parameters
painterThe QPainter used for drawing.
configThe rendering configuration

◆ drawColorSeparation()

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.

Parameters
painterThe QPainter used for drawing.
configThe rendering configuration
separationThe spot color to draw the separation for.
use_colorIf true, forces the separation to be drawn in its actual color.

◆ drawOverprintingSimulation()

void OpenOrienteering::MapRenderables::drawOverprintingSimulation ( QPainter painter,
const RenderConfig config 
) const

Draws the renderables in a spot color overprinting simulation.

Parameters
painterMust be a QPainter on a QImage of Format_ARGB32_Premultiplied.
configThe rendering configuration

◆ empty()

bool OpenOrienteering::MapRenderables::empty ( ) const
inline

◆ insertRenderablesOfObject()

void OpenOrienteering::MapRenderables::insertRenderablesOfObject ( const Object object)

◆ removeRenderablesOfObject()

void OpenOrienteering::MapRenderables::removeRenderablesOfObject ( const Object object,
bool  mark_area_as_dirty 
)

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