LuciadCPillar 2023.1.04
luciad::ISelectionCandidateChooser Class Referenceabstract

A selection candidate handler has the responsibility to show candidates for selection and let a user choose which feature(s) they want to select. More...

#include <luciad/controllers/ISelectionCandidateChooser.h>

Public Member Functions

virtual ~ISelectionCandidateChooser ()=default
 
virtual void chooseCandidates (std::vector< LayerFeatureId > selectionCandidates, Coordinate position, std::shared_ptr< ISelectionCandidateCallback > callback)=0
 This method is called by SelectEventHandler when there are multiple selection candidates. More...
 

Detailed Description

A selection candidate handler has the responsibility to show candidates for selection and let a user choose which feature(s) they want to select.

This class can for example be implemented by showing a popup menu that allows you to choose the feature to select.

Since
2020.1

Constructor & Destructor Documentation

◆ ~ISelectionCandidateChooser()

virtual luciad::ISelectionCandidateChooser::~ISelectionCandidateChooser ( )
virtualdefault

Member Function Documentation

◆ chooseCandidates()

virtual void luciad::ISelectionCandidateChooser::chooseCandidates ( std::vector< LayerFeatureId selectionCandidates,
Coordinate  position,
std::shared_ptr< ISelectionCandidateCallback callback 
)
pure virtual

This method is called by SelectEventHandler when there are multiple selection candidates.

It allows to determine which subset of the features need to be selected.

Parameters
selectionCandidates: a list of features that could be selected.
position: the current mouse position. This coordinate is in screen coordinate.
callbackthis callback needs to be called to provide the subset of the selection candidates that should be selected.