This observer is called when a feature was created and added to the layer by the Creator
class, or when creation failed.
More...
#include <luciad/create/Creator.h>
This observer is called when a feature was created and added to the layer by the Creator
class, or when creation failed.
- Since
- 2020.1
◆ ~ICreatorObserver()
virtual luciad::ICreatorObserver::~ICreatorObserver |
( |
| ) |
|
|
virtualdefault |
◆ onFeatureCreated()
virtual void luciad::ICreatorObserver::onFeatureCreated |
( |
const Feature & |
createdFeature, |
|
|
const std::shared_ptr< FeatureLayer > & |
featureLayer |
|
) |
| |
|
pure virtual |
Called when a new feature is created and added to the layer.
- Parameters
-
createdFeature | the newly created feature |
featureLayer | the layer to which the feature was added |
◆ onFeatureCreationFailed()
virtual void luciad::ICreatorObserver::onFeatureCreationFailed |
( |
const ErrorInfo & |
errorInfo | ) |
|
|
pure virtual |
Called when feature creation has failed.
This can be for various reasons, for example:
- A new Feature could not be created from the geometry
- The new Feature could not be added to the model
- Parameters
-
errorInfo | the reason why creation has stopped |