Abstraction of an action that is executed based on a Point.
More...
#include <luciad/edit/handles/IPointEditAction.h>
Abstraction of an action that is executed based on a Point.
Examples of this action are:
This class is used by PointEditHandle.
- Since
- 2020.1
◆ ~IPointEditAction()
virtual luciad::IPointEditAction::~IPointEditAction |
( |
| ) |
|
|
virtualdefault |
◆ create()
Creates a default IPointEditAction instance that always delegates the IPointEditAction::execute methods to the given function, regardless of the EventStatus
that may or may not be provided.
This is a convenience method that allows you to reduce boiler plate code using lambdas.
- Parameters
-
- Returns
- an IPointEditAction instance based on the given function.
◆ execute() [1/2]
virtual void luciad::IPointEditAction::execute |
( |
const std::shared_ptr< Point > & |
location, |
|
|
ChangeStatus |
changeStatus |
|
) |
| |
|
pure virtual |
Performs the action.
- Parameters
-
location | the Point location that is used to perform the action |
changeStatus | the status of the action. Can be used to distinguish between intermediate changes and a finished change. |
◆ execute() [2/2]
virtual void luciad::IPointEditAction::execute |
( |
const std::shared_ptr< Point > & |
location, |
|
|
EventStatus |
eventStatus, |
|
|
ChangeStatus |
changeStatus |
|
) |
| |
|
pure virtual |
Performs the part of the action that corresponds to the given EventStatus
.
- Parameters
-
location | the Point location that is used to perform the action |
eventStatus | Used to indicate that an action has started , is in progress , or has ended . This can for example be used by edit handles that apply the action on drag events. It is guaranteed that a sequence of calls to this method will contain at least 1 Start, and 1 End call. |
changeStatus | the status of the action. Can be used to distinguish between intermediate changes and a finished change. |