Provides editing handles for military symbol features.
More...
#include <luciad/symbology/military/MilitarySymbolFeatureHandlesProvider.h>
Provides editing handles for military symbol features.
Example usage
public:
auto featureHandlesProvider = std::make_shared<MilitarySymbolFeatureHandlesProvider>();
}
};
void enableCustomEditing(const std::shared_ptr<IFeatureModel>& militarySymbologyModel) {
.
model(militarySymbologyModel)
}
This builder can be used to configure editing for a layer.
Definition: FeatureEditConfigurationBuilder.h:17
virtual void submit()=0
Submits the information to this builder, and confirm that the current feature can be edited.
virtual FeatureEditConfigurationBuilder & handlesProvider(std::shared_ptr< IFeatureHandlesProvider > handlesProvider)=0
Configures the handles provider that is used to provide the edit handles for a feature.
A Feature is a (partial) copy of a domain object.
Definition: Feature.h:34
std::shared_ptr< FeatureLayer > build() const
Returns a new layer, based on the properties set on this builder.
Builder & model(std::shared_ptr< IFeatureModel > model)
Sets the feature model of the layer.
Builder & editable(bool editable)
Sets whether the layer should be editable initially.
Builder & editConfiguration(std::shared_ptr< IFeatureEditConfiguration > editConfiguration)
Enables editing capabilities using the given IFeatureEditConfiguration.
static Builder newBuilder()
Returns a new builder for creating a FeatureLayer.
Allows you to configure the editing behavior for a feature layer.
Definition: IFeatureEditConfiguration.h:13
uint64_t LayerId
Definition: Layer.h:11
- Since
- 2020.1
- See also
- Editor
◆ MilitarySymbolFeatureHandlesProvider()
luciad::MilitarySymbolFeatureHandlesProvider::MilitarySymbolFeatureHandlesProvider |
( |
| ) |
|
|
default |
◆ ~MilitarySymbolFeatureHandlesProvider()
luciad::MilitarySymbolFeatureHandlesProvider::~MilitarySymbolFeatureHandlesProvider |
( |
| ) |
|
|
overridedefault |
◆ canProvide()
bool luciad::MilitarySymbolFeatureHandlesProvider::canProvide |
( |
const std::shared_ptr< Observable< Feature > > & |
feature, |
|
|
const std::shared_ptr< FeatureEditContext > & |
context |
|
) |
| const |
|
overridevirtual |
Indicates if this handles provider can create handles for the given Feature.
- Parameters
-
feature | an observable Feature. |
context | the context. Contains additional information about the edited feature. |
- Returns
- if this handles provider can create handles for the given Feature.
Implements luciad::IFeatureHandlesProvider.
◆ provide()
Returns handles for the given feature.
If this provider doesn't support the given feature, it can return nullptr
.
- Parameters
-
feature | the observable feature for which to create handles. |
context | the context. Contains additional information about the edited feature. |
featureEditCallback | a callback that notifies the caller when the Feature has changed. |
- Returns
- handles for the given feature. If this provider doesn't support the given feature, it can return
nullptr
.
Implements luciad::IFeatureHandlesProvider.