LuciadCPillar 2023.1.04
|
This interface allows to calculate a visual aid line based on the location of the handle. More...
#include <luciad/edit/handles/PointEditHandle.h>
Public Member Functions | |
virtual | ~IVisualAidProvider ()=default |
virtual std::shared_ptr< Curve > | calculateVisualAid (const std::shared_ptr< Point > &handleLocation)=0 |
Returns a new visual aid line. More... | |
Static Public Member Functions | |
static std::shared_ptr< IVisualAidProvider > | create (std::function< std::shared_ptr< Curve >(const std::shared_ptr< Point > &handleLocation)> function) |
Creates a default IVisualAidProvider instance that delegates IVisualAidProvider::calculateVisualAid to the given function. More... | |
This interface allows to calculate a visual aid line based on the location of the handle.
This can for example be a vertical line to connect a point with the ground.
|
virtualdefault |
|
pure virtual |
Returns a new visual aid line.
handleLocation | the current location of the handle. Never nullptr . |
nullptr
. In that case, no visual aid line will be painted.
|
static |
Creates a default IVisualAidProvider instance that delegates IVisualAidProvider::calculateVisualAid
to the given function.
This is a convenience method that allows to reduce boiler plate code, and use lambdas.
function | the function that is called by IVisualAidProvider::calculateVisualAid |