![]() |
Mapper
0.9.0
API documentation
|
A high-level container for all renderables of a single object, grouped by color priority and common render attributes. More...
#include <renderable.h>
Public Member Functions | |
ObjectRenderables (Object &object) | |
ObjectRenderables (const ObjectRenderables &)=delete | |
ObjectRenderables & | operator= (const ObjectRenderables &)=delete |
~ObjectRenderables () | |
void | insertRenderable (Renderable *r) |
void | insertRenderable (Renderable *r, const PainterConfig &state) |
void | clear () |
void | deleteRenderables () |
void | takeRenderables () |
void | draw (int map_color, const QColor &color, QPainter *painter, const RenderConfig &config) const |
Draws all renderables matching the given map color with the given color. More... | |
void | setClipPath (const QPainterPath *path) |
const QPainterPath * | getClipPath () const |
const QRectF & | getExtent () const |
Friends | |
class | MapRenderables |
A high-level container for all renderables of a single object, grouped by color priority and common render attributes.
OpenOrienteering::ObjectRenderables::ObjectRenderables | ( | Object & | object | ) |
|
delete |
|
default |
void OpenOrienteering::ObjectRenderables::clear | ( | ) |
void OpenOrienteering::ObjectRenderables::deleteRenderables | ( | ) |
void OpenOrienteering::ObjectRenderables::draw | ( | int | map_color, |
const QColor & | color, | ||
QPainter * | painter, | ||
const RenderConfig & | config | ||
) | const |
Draws all renderables matching the given map color with the given color.
If map_color is -1, this functions draws all renderables of color which are not in the list of map colors (i.e. objects with undefined symbol). Used by FillTool to encode object IDs as colors.
|
inline |
|
inline |
|
inline |
void OpenOrienteering::ObjectRenderables::insertRenderable | ( | Renderable * | r, |
const PainterConfig & | state | ||
) |
|
delete |
void OpenOrienteering::ObjectRenderables::setClipPath | ( | const QPainterPath * | path | ) |
void OpenOrienteering::ObjectRenderables::takeRenderables | ( | ) |
|
friend |