MapLink Pro 11.2
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLSelector Class Referenceabstract

Detailed Description

This class specifies the criteria by which the TSLDataLayer query algorithm determines which entities to find.

It is an abstract class, which requires clients to provide an implementation specific to their problem domain.

Public Member Functions

virtual TSLSelectorActionType select (const TSLEntity *entity)
 
virtual TSLSelectorActionType select (const TSLEntity *entity, const TSLSelectorParams &params)
 
virtual ~TSLSelector ()=0
 

Constructor & Destructor Documentation

◆ ~TSLSelector()

TSLSelector::~TSLSelector ( )
inlinepure virtual

Virtual destructor.

Class TSLSelector Class TSLSelector Additional Declarations

Member Function Documentation

◆ select() [1/2]

virtual TSLSelectorActionType TSLSelector::select ( const TSLEntity * entity)
inlinevirtual

This method should return the type of action required of the search algorithm based on the supplied entity.

NOTE : In earlier releases of MapLink, this method was const. This requirement has now been removed to allow derived classes to store data for use during the traversal of the entities.

Change in MapLink Pro 11.2. This overload was previously abstract. It is no longer abstract so that clients can choose which overload is needed. If wrap-around mode is enabled on your drawing surface, it is recommended that the overload with 2 arguments is implemented.

Parameters
entitythe entity for the search
Returns
Enumerated type determines how the TSLDataLayer query algorithm proceeds as it searches for entities that match the TSLSelector object. Default implementation returns TSLSelectorActionSelectNext to select the entity.

◆ select() [2/2]

virtual TSLSelectorActionType TSLSelector::select ( const TSLEntity * entity,
const TSLSelectorParams & params )
inlinevirtual

New in MapLink Pro 11.2.

This method should return the type of action required of the search algorithm based on the supplied entity.

An override of this virtual method overload is only required when your drawing surface has wrap-around enabled. The default implementation defers to the overload of this method that only takes a TSLEntity as an argument.

Parameters
entitythe entity for the search
paramsSupplementary parameters, inlcuding the selectionExtent.
Returns
Enumerated type determines how the TSLDataLayer query algorithm proceeds as it searches for entities that match the TSLSelector object.