LuciadCPillar 2024.0.04
|
This builder can be used to configure editing for a layer. More...
#include <luciad/edit/features/FeatureEditConfigurationBuilder.h>
Public Member Functions | |
virtual | ~FeatureEditConfigurationBuilder ()=default |
virtual FeatureEditConfigurationBuilder & | handlesProvider (std::shared_ptr< IFeatureHandlesProvider > handlesProvider)=0 |
Configures the handles provider that is used to provide the edit handles for a feature. More... | |
virtual void | notEditable ()=0 |
Disable editing for the current feature. More... | |
virtual void | submit ()=0 |
Submits the information to this builder, and confirm that the current feature can be edited. More... | |
virtual FeatureEditConfigurationBuilder & | updateMode (ModelUpdateMode updateMode)=0 |
This setting gives more control over when and how often the model is updated during interactive editing. More... | |
This builder can be used to configure editing for a layer.
See FeatureLayer::Builder::editConfiguration
.
See the related guide for more configuration options.
|
virtualdefault |
|
pure virtual |
Configures the handles provider that is used to provide the edit handles
for a feature.
Calling this method is optional. If this method is not called, a default implementation will be configured. See CompositeFeatureHandlesProvider::createDefault().
handlesProvider | a handles provider for Features, cannot be nullptr |
NullArgumentException | when nullptr is passed. |
|
pure virtual |
Disable editing for the current feature.
Either this method, or the submit() method must be called.
Note: you can disable editing for all features of a layer by not configuring
an IFeatureEditConfiguration
.
|
pure virtual |
Submits the information to this builder, and confirm that the current feature can be edited.
Either this method, or the notEditable
method must be called.
luciad::LogicException | on an illegal state, e.g. when already submitted. |
|
pure virtual |
This setting gives more control over when and how often the model is updated during interactive editing.
It is useful to make sure that the model is updated less often when model updates are expensive, for example for models with a database backend, or other models that don't keep Feature state in memory.
The default is ModelUpdateMode::OnAnyChange
.
updateMode | the update mode |