LuciadCPillar 2023.1.04
luciad::ISelectionCandidateCallback Class Referenceabstract

This callback needs to be called to let ISelectionCandidateChooser know which (subset of) features should be selected. More...

#include <luciad/controllers/ISelectionCandidateCallback.h>

Public Member Functions

virtual ~ISelectionCandidateCallback ()=default
 
virtual void handleFeatures (const std::vector< LayerFeatureId > &layerFeatureIds)=0
 This method is called to notify which subset of features should be selected. More...
 

Static Public Member Functions

static std::shared_ptr< ISelectionCandidateCallbackcreate (std::function< void(const std::vector< LayerFeatureId > &)> function)
 Creates a default ISelectionCandidateCallback instance that delegates the ISelectionCandidateCallback::handleFeature to the given function. More...
 

Detailed Description

This callback needs to be called to let ISelectionCandidateChooser know which (subset of) features should be selected.

See also
ISelectionCandidateChooser::chooseCandidates
Since
2020.1

Constructor & Destructor Documentation

◆ ~ISelectionCandidateCallback()

virtual luciad::ISelectionCandidateCallback::~ISelectionCandidateCallback ( )
virtualdefault

Member Function Documentation

◆ create()

static std::shared_ptr< ISelectionCandidateCallback > luciad::ISelectionCandidateCallback::create ( std::function< void(const std::vector< LayerFeatureId > &)>  function)
static

Creates a default ISelectionCandidateCallback instance that delegates the ISelectionCandidateCallback::handleFeature to the given function.

This is a convenience method that allows to reduce boiler plate code, and use lambdas.

Parameters
functionthe function that is called by ISelectionCandidateCallback::handleFeature
Returns
an ISelectionCandidateCallback instance based on the given function.

◆ handleFeatures()

virtual void luciad::ISelectionCandidateCallback::handleFeatures ( const std::vector< LayerFeatureId > &  layerFeatureIds)
pure virtual

This method is called to notify which subset of features should be selected.

Parameters
layerFeatureIdsthe subset of features that should be selected.