CartoType API
Public Types | Public Member Functions
CartoType::Router::CMapDataRouterInfo::MFilter Class Reference

#include <cartotype_router.h>

Inherited by TRoadOrWalkingFilter.

List of all members.

Public Types

enum  { ERoadInfoMask = ERoadLevelMask | ERoadTypeMask | ERoadRoutingMask, EWeightInfoMask = 0x03FF0000 }

Public Member Functions

virtual bool UseLayer (const CMapDataLayer &aLayer)=0
virtual bool UseObject (const CMapObject &aObject, uint32 &aInfo)=0

Detailed Description

A filter which tells a router which layers to load from a map database, and which objects to use. If no filter is supplied all objects in the 'road' layer are used.


Member Enumeration Documentation

anonymous enum
Enumerator:
ERoadInfoMask 

These fields are identical to those in TRoadType.

EWeightInfoMask 

Ten bits are used for the weight (1024 / average speed in kph).


Member Function Documentation

virtual bool CartoType::Router::CMapDataRouterInfo::MFilter::UseLayer ( const CMapDataLayer aLayer) [pure virtual]

Return true if this layer contains linear objects to be used in routing.

virtual bool CartoType::Router::CMapDataRouterInfo::MFilter::UseObject ( const CMapObject aObject,
uint32 &  aInfo 
) [pure virtual]

If this object can be used in routing, return true and set aInfo to bit fields indicating the weighting, directionality and z-level.


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