LuciadCPillar 2023.1.04
luciad::ICreatorObserver Class Referenceabstract

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>

Public Member Functions

virtual ~ICreatorObserver ()=default
 
virtual void onFeatureCreated (const Feature &createdFeature, const std::shared_ptr< FeatureLayer > &featureLayer)=0
 Called when a new feature is created and added to the layer. More...
 
virtual void onFeatureCreationFailed (const ErrorInfo &errorInfo)=0
 Called when feature creation has failed. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ~ICreatorObserver()

virtual luciad::ICreatorObserver::~ICreatorObserver ( )
virtualdefault

Member Function Documentation

◆ 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
createdFeaturethe newly created feature
featureLayerthe 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
errorInfothe reason why creation has stopped