CartoType API
Public Member Functions | Static Public Member Functions
CartoType::CMapDataCondition Class Reference

#include <cartotype_map_data.h>

List of all members.

Public Member Functions

TResult AddCondition (const TMapDataCondition &aCondition)
CT_IMPORT TResult SetLabelCondition (const MString &aLabel, TLabelMatchMethod aLabelMatchMethod)
CT_IMPORT const TMapDataConditionMatch (const CMapObject &aObject) const
CT_IMPORT const TMapDataConditionMatch (TMapAttribute aAttrib) const
CT_IMPORT bool MatchLabel (const CMapObject &aObject) const
CT_IMPORT int32 HighestFirstAttributeValue () const
bool HasOrdinaryConditions () const
bool HasLabelCondition () const
const MStringLabel () const

Static Public Member Functions

static CT_IMPORT
CMapDataCondition
New (TResult &aError, const CMapDataLayer &aLayer, const CLayerStyle &aStyle)

Detailed Description

A group of conditions, at least one of which must be fulfilled for a map object to be returned.


Member Function Documentation

CT_EXPORT int32 CMapDataCondition::HighestFirstAttributeValue ( ) const

Return the highest first attribute value allowed by a condition. This is used to optimise searches.

CT_EXPORT const TMapDataCondition * CMapDataCondition::Match ( const CMapObject aObject) const

Find the condition, if any, inside CMapDataCondition, that matches aObject.

CT_EXPORT const TMapDataCondition * CMapDataCondition::Match ( TMapAttribute  aAttrib) const

Find the condition, if any, inside CMapDataCondition, that matches aAttrib.

CT_EXPORT bool CMapDataCondition::MatchLabel ( const CMapObject aObject) const

Return true if the label condition matches the object or if there is no label condition.

CT_EXPORT CMapDataCondition * CMapDataCondition::New ( TResult aError,
const CMapDataLayer aLayer,
const CLayerStyle aStyle 
) [static]

Create a CMapDataCondition object if there are any conditions in aStyle.

CT_EXPORT TResult CMapDataCondition::SetLabelCondition ( const MString aLabel,
TLabelMatchMethod  aLabelMatchMethod 
)

Set the label condition.


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