Mapper  0.9.0
API documentation
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OpenOrienteering::AreaRenderable Class Reference

Renderable for displaying an area. More...

#include <renderable_implementation.h>

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

Public Member Functions

 AreaRenderable (const AreaSymbol *symbol, const PathPartVector &path_parts)
 
 AreaRenderable (const AreaSymbol *symbol, const VirtualPath &path)
 
void render (QPainter &painter, const RenderConfig &config) const override
 Renders the renderable with the given painter and rendering configuration. More...
 
PainterConfig getPainterConfig (const QPainterPath *clip_path=nullptr) const override
 Returns the painter configuration information. More...
 
const QPainterPathpainterPath () const
 
- Public Member Functions inherited from OpenOrienteering::Renderable
 Renderable (const Renderable &)=delete
 
 Renderable (Renderable &&)=delete
 
virtual ~Renderable ()
 The destructor. More...
 
Renderableoperator= (const Renderable &)=delete
 
Renderableoperator= (Renderable &&)=delete
 
const QRectFgetExtent () const
 Returns the extent (bounding box). More...
 
bool intersects (const QRectF &rect) const
 Tests whether the renderable's extent intersects the given rect. More...
 

Protected Member Functions

void addSubpath (const VirtualPath &virtual_path)
 
- Protected Member Functions inherited from OpenOrienteering::Renderable
 Renderable (const MapColor *color)
 The constructor for new renderables. More...
 

Protected Attributes

QPainterPath path
 
- Protected Attributes inherited from OpenOrienteering::Renderable
const int color_priority
 The color priority is a major attribute and cannot be modified. More...
 
QRectF extent
 The extent must be set by inheriting classes. More...
 

Detailed Description

Renderable for displaying an area.

Constructor & Destructor Documentation

◆ AreaRenderable() [1/2]

OpenOrienteering::AreaRenderable::AreaRenderable ( const AreaSymbol symbol,
const PathPartVector path_parts 
)

◆ AreaRenderable() [2/2]

OpenOrienteering::AreaRenderable::AreaRenderable ( const AreaSymbol symbol,
const VirtualPath path 
)

Member Function Documentation

◆ addSubpath()

void OpenOrienteering::AreaRenderable::addSubpath ( const VirtualPath virtual_path)
protected

◆ getPainterConfig()

PainterConfig OpenOrienteering::AreaRenderable::getPainterConfig ( const QPainterPath clip_path = nullptr) const
overridevirtual

Returns the painter configuration information.

This configuration must be set when rendering this renderable.

Implements OpenOrienteering::Renderable.

◆ painterPath()

const QPainterPath * OpenOrienteering::AreaRenderable::painterPath ( ) const
inline

◆ render()

void OpenOrienteering::AreaRenderable::render ( QPainter painter,
const RenderConfig config 
) const
overridevirtual

Renders the renderable with the given painter and rendering configuration.

Implements OpenOrienteering::Renderable.

Member Data Documentation

◆ path

QPainterPath OpenOrienteering::AreaRenderable::path
protected

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