MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLFeatureClassifierCustom Class Reference
Inheritance diagram for TSLFeatureClassifierCustom:

Detailed Description

A custom application specified classification definition.

Public Member Functions

TSLFeatureClassifierCustomoperator= (const TSLFeatureClassifierCustom &other)
 Assignment operator.
 
bool operator== (const TSLFeatureClassifierCustom &other) const
 Equality operator.
 
virtual TSLFeatureClassifierclone () const
 
virtual bool getClassifiedFeatures (TSLFeature *rootFeature, unsigned int classificationLevel, bool caseSensitive) const
 
virtual bool classifyFeature (const TSLMUGeometry *geometry, TSLRenderingAttributes &renderingAttribs, TSLSimpleString &childFeatureName) const
 
- Public Member Functions inherited from TSLFeatureClassifier
void destroy ()
 Delete this object.
 
TSLFeatureClassifier::ClassifierType type () const
 

Static Public Member Functions

static TSLFeatureClassifierCustomcreate (TSLClientFeatureClassifierCustom *customHandler)
 Constructor.
 

Additional Inherited Members

- Public Types inherited from TSLFeatureClassifier
enum  ClassifierType { ClassifierTypeCategorised , ClassifierTypeGraduated , ClassifierTypeCustom }
 The type of a classification definition. More...
 

Member Function Documentation

◆ classifyFeature()

virtual bool TSLFeatureClassifierCustom::classifyFeature ( const TSLMUGeometry * geometry,
TSLRenderingAttributes & renderingAttribs,
TSLSimpleString & childFeatureName ) const
virtual

Query the feature name for a given geometry

Parameters
geometryThe geometry to classify
renderingAttribsThe given TSLRenderingAttributes object will be set to the rendering attributes (if any) of the feature. Not all classifier definitions can specify rendering attributes.
childFeatureNameReturned name of the child feature for this geometry
Returns
'true' if childFeatureName was populated, false if the classification could not be determined.

Implements TSLFeatureClassifier.

◆ clone()

virtual TSLFeatureClassifier * TSLFeatureClassifierCustom::clone ( ) const
virtual

Clone this classifier definition.

Returns
A clone of this object.

Implements TSLFeatureClassifier.

◆ create()

static TSLFeatureClassifierCustom * TSLFeatureClassifierCustom::create ( TSLClientFeatureClassifierCustom * customHandler)
static

Constructor.

◆ getClassifiedFeatures()

virtual bool TSLFeatureClassifierCustom::getClassifiedFeatures ( TSLFeature * rootFeature,
unsigned int classificationLevel,
bool caseSensitive ) const
virtual

Process the classification definition and add child features to the hierarchy.

Parameters
rootFeatureThe top-level feature (TSLFeature) in the hierarchy the sub-classing should be applied to.
classificationLevelThe level of this classification, starting at 0.
caseSensitiveWhether the identification of existing classifications should be case sensitive or not.
Returns
true if any new features were created, false otherwise.

Implements TSLFeatureClassifier.

◆ operator=()

TSLFeatureClassifierCustom & TSLFeatureClassifierCustom::operator= ( const TSLFeatureClassifierCustom & other)

Assignment operator.

◆ operator==()

bool TSLFeatureClassifierCustom::operator== ( const TSLFeatureClassifierCustom & other) const

Equality operator.