CartoType API
Public Member Functions
CartoType::CMapPainter Class Reference

#include <cartotype_map.h>

List of all members.

Public Member Functions

CT_IMPORT CMapPainter (CMap &aMap, CGraphicsContext *aGc, const TPoint &aTopLeft, const CMapDrawParam *aMapDrawParam)
CT_IMPORT TResult StartDrawing (MInputStream &aStyleSheet)
CT_IMPORT TResult DrawLayers (int32 aStartLevel, int aEndLevel, int32 aStartLayer, int32 aEndLayer, int32 &aObjectsDrawn)
CT_IMPORT TResult DrawLabels ()
bool DrawAreaIsEmpty () const
CT_IMPORT TResult FindInLayer (const CLayerStyle &aStyle, CPointerArray< CMapObject > &aObject, int32 aMaxObjects)
int32 Layers () const
int32 RoadLayerIndex () const
bool DrawMapObjectsEnabled () const

Detailed Description

The map painter is the low-level object that draws map objects and labels and carries all the state information used during drawing.


Member Function Documentation

CT_EXPORT TResult CMapPainter::FindInLayer ( const CLayerStyle aStyle,
CPointerArray< CMapObject > &  aObject,
int32  aMaxObjects 
)

Find all the objects in a layer that intersect a search area already drawn into the label GC and append them to the array aObject.

CT_EXPORT TResult CMapPainter::StartDrawing ( MInputStream aStyleSheet)

Start drawing: compile the style sheet if necessary, draw the background, etc., but do not draw any map objects.


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