libosmscout  1.1.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osmscout::MapPainterBatch< PainterType > Class Template Reference

#include <libosmscout-map/include/osmscout/MapPainter.h>

Collaboration diagram for osmscout::MapPainterBatch< PainterType >:
Collaboration graph
[legend]

Public Member Functions

 MapPainterBatch (size_t expectedCount)
 
virtual ~MapPainterBatch ()=default
 
void addData (const MapDataRef &d, PainterType &painter)
 

Protected Member Functions

bool batchPaintInternal (const Projection &projection, const MapParameter &parameter)
 

Protected Attributes

std::vector< MapDataRefdata
 
std::vector< PainterType > painters
 

Detailed Description

template<class PainterType>
class osmscout::MapPainterBatch< PainterType >

Batch renderer helps to render map based on multiple databases

Constructor & Destructor Documentation

◆ MapPainterBatch()

template<class PainterType>
osmscout::MapPainterBatch< PainterType >::MapPainterBatch ( size_t  expectedCount)
inlineexplicit

◆ ~MapPainterBatch()

template<class PainterType>
virtual osmscout::MapPainterBatch< PainterType >::~MapPainterBatch ( )
virtualdefault

Member Function Documentation

◆ addData()

template<class PainterType>
void osmscout::MapPainterBatch< PainterType >::addData ( const MapDataRef d,
PainterType &  painter 
)
inline

◆ batchPaintInternal()

template<class PainterType>
bool osmscout::MapPainterBatch< PainterType >::batchPaintInternal ( const Projection projection,
const MapParameter &  parameter 
)
inlineprotected

Render bach of multiple databases, step by step (

See also
RenderSteps). All painters should have initialised its (backend specific) state.
Parameters
projection
parameter
Returns
false on error, true otherwise

Member Data Documentation

◆ data

template<class PainterType>
std::vector<MapDataRef> osmscout::MapPainterBatch< PainterType >::data
protected

◆ painters

template<class PainterType>
std::vector<PainterType> osmscout::MapPainterBatch< PainterType >::painters
protected

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