|
CartoType API
|
#include <cartotype_map_data.h>
Public Member Functions | |
| TResult | AddCondition (const TMapDataCondition &aCondition) |
| CT_IMPORT TResult | SetLabelCondition (const MString &aLabel, TLabelMatchMethod aLabelMatchMethod) |
| CT_IMPORT const TMapDataCondition * | Match (const CMapObject &aObject) const |
| CT_IMPORT const TMapDataCondition * | Match (TMapAttribute aAttrib) const |
| CT_IMPORT bool | MatchLabel (const CMapObject &aObject) const |
| CT_IMPORT int32 | HighestFirstAttributeValue () const |
| bool | HasOrdinaryConditions () const |
| bool | HasLabelCondition () const |
| const MString & | Label () const |
Static Public Member Functions | |
| static CT_IMPORT CMapDataCondition * | New (TResult &aError, const CMapDataLayer &aLayer, const CLayerStyle &aStyle) |
A group of conditions, at least one of which must be fulfilled for a map object to be returned.
| 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.
1.7.5.1