|
CartoType API
|
#include <cartotype_map.h>
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 |
The map painter is the low-level object that draws map objects and labels and carries all the state information used during drawing.
| 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.
1.7.5.1