CartoType API
Public Member Functions
CartoType::CMapObjectCache Class Reference

#include <cartotype_map_object_cache.h>

List of all members.

Public Member Functions

CT_IMPORT TResult AddDataBase (CMapDataBase &aDb)
CT_IMPORT
CMapObjectCacheSearchResult
Search (TResult &aError, const CMapStyle &aMapStyle, const CMapDrawParam *aMapDrawParam, const TRect &aClip, const TCoordinateTransform &aProjection)
CT_IMPORT void Clear ()

Detailed Description

A cache for map objects loaded from one or more map databases. The cache returns all the objects to be drawn for a particular scale in a particular rectangular region.


Member Function Documentation

CT_EXPORT TResult CMapObjectCache::AddDataBase ( CMapDataBase aDb)

Add a map database to the list of map databases to be read when fulfilling a request for data. Ownership of the database is not transferred.

CT_EXPORT void CMapObjectCache::Clear ( )

Clear all cached data.

CT_EXPORT CMapObjectCacheSearchResult * CMapObjectCache::Search ( TResult aError,
const CMapStyle aMapStyle,
const CMapDrawParam aMapDrawParam,
const TRect aClip,
const TCoordinateTransform aProjection 
)

Search for all the objects to be drawn in the rectangle aClip, which is in the coordinate system of the map database. The rectangle must already have been enlarged to cover items just off the edge of the map which would overlap on to the map.

The return value is a new CCacheSearchResult that must be deleted by the caller.

Objects are projected using aProjection.


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