LuciadCPillar 2024.0.08
|
An observer that allows you to receive change events from an IEditHandles
when the collection of handles changes.
More...
#include <luciad/edit/handles/IEditHandles.h>
Public Member Functions | |
virtual | ~IEditHandlesObserver ()=default |
virtual void | onEditHandlesChanged (const EditHandlesEvent &editHandlesEvent)=0 |
This method is called when a handle is added or removed from an IEditHandles . More... | |
virtual void | onEditHandlesInvalid ()=0 |
This method is called when IEditHandles has become invalid, and can not be used anymore for the currently edited object. More... | |
Static Public Member Functions | |
static std::shared_ptr< IEditHandlesObserver > | create (std::function< void(const EditHandlesEvent &event)> onChangedFunction, std::function< void()> onInvalidFunction=nullptr) |
Creates a default IEditHandlesObserver instance that delegates the IEditHandlesObserver::onEditHandlesChanged to the given function. More... | |
An observer that allows you to receive change events from an IEditHandles
when the collection of handles changes.
|
virtualdefault |
|
static |
Creates a default IEditHandlesObserver instance that delegates the IEditHandlesObserver::onEditHandlesChanged
to the given function.
This is a convenience method that allows you to reduce boiler plate code, and use lambdas.
onChangedFunction | the function that is called by IEditHandlesObserver::onEditHandlesChanged |
onInvalidFunction | the function that is called by IEditHandlesObserver::onEditHandlesInvalid |
|
pure virtual |
This method is called when a handle is added or removed from an IEditHandles
.
editHandlesEvent | the event that describes the change |
|
pure virtual |
This method is called when IEditHandles
has become invalid, and can not be used anymore for the currently edited object.
This allows the editing code to generate a new set of handles for the edited object.