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

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

#include <renderable.h>

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

Public Member Functions

 ObjectRenderables (Object &object)
 
 ObjectRenderables (const ObjectRenderables &)=delete
 
ObjectRenderablesoperator= (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 QPainterPathgetClipPath () const
 
const QRectFgetExtent () const
 

Friends

class MapRenderables
 

Detailed Description

A high-level container for all renderables of a single object, grouped by color priority and common render attributes.

Constructor & Destructor Documentation

◆ ObjectRenderables() [1/2]

OpenOrienteering::ObjectRenderables::ObjectRenderables ( Object object)

◆ ObjectRenderables() [2/2]

OpenOrienteering::ObjectRenderables::ObjectRenderables ( const ObjectRenderables )
delete

◆ ~ObjectRenderables()

OpenOrienteering::ObjectRenderables::~ObjectRenderables ( )
default

Member Function Documentation

◆ clear()

void OpenOrienteering::ObjectRenderables::clear ( )

◆ deleteRenderables()

void OpenOrienteering::ObjectRenderables::deleteRenderables ( )

◆ draw()

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.

◆ getClipPath()

const QPainterPath * OpenOrienteering::ObjectRenderables::getClipPath ( ) const
inline

◆ getExtent()

const QRectF & OpenOrienteering::ObjectRenderables::getExtent ( ) const
inline

◆ insertRenderable() [1/2]

void OpenOrienteering::ObjectRenderables::insertRenderable ( Renderable r)
inline

◆ insertRenderable() [2/2]

void OpenOrienteering::ObjectRenderables::insertRenderable ( Renderable r,
const PainterConfig state 
)

◆ operator=()

ObjectRenderables& OpenOrienteering::ObjectRenderables::operator= ( const ObjectRenderables )
delete

◆ setClipPath()

void OpenOrienteering::ObjectRenderables::setClipPath ( const QPainterPath path)

◆ takeRenderables()

void OpenOrienteering::ObjectRenderables::takeRenderables ( )

Friends And Related Function Documentation

◆ MapRenderables

friend class MapRenderables
friend

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