LuciadCPillar C# 2023.1.04
|
Builder for the luciad::FeatureLayer class. More...
Builder for the luciad::FeatureLayer class.
|
inline |
|
inline |
Returns a new layer, based on the properties set on this builder.
a new layer, based on the properties set on this builder.
luciad::LogicException
If not all mandatory parameters are set. If no painter is set and the feature model contains at least one feature data type without a geometry.
|
inline |
|
inline |
Sets whether the layer should be editable initially.
When an edit configuration is set, the default is true. When no edit configuration is set, the default is false. When this method is called with true as parameter, and no edit configuration is edit set, a default edit configuration will be used. This default configuration enables editing for all features, using a default handles provider. Refer to editConfiguration for enabling editing capabilities.
editable
the edit capability.
this builder.
FeatureLayer::setEditable for more info.
2020.1
|
inline |
Enables editing capabilities using the given IFeatureEditConfiguration.
If not set, editing will not be supported, and FeatureLayer::getEditConfiguration will return nullptr. If set, editing will be enabled by default. Additional configuration for editing can be done using: Editor::Builder: for more global editing configuration FeatureLayer::Builder::editCreateGeometryProvider: to determine the edit/create geometry associated with a Feature
editConfiguration
the feature edit configuration used to edit the feature model. Cannot be nullptr.
this builder.
2020.1
luciad::NullArgumentException
when the given edit configuration is nullptr
|
inline |
Provides the edit/create geometry provider for a Feature.
This geometry provider determines using which geometry a Feature can be edited or created, and how to apply this geometry back on the Feature. This implementation is for example used by FeatureHandlesProvider, and by Creator. Calling this method is optional. When this method is not called, a default implementation will be used. This default implementation assumes that the Feature has a DataType with a GeometryDataAnnotation that points to the Geometry that can be edited the changed Geometry can be applied by replacing that Geometry property value, using Feature::asBuilder
geometryProvider
the edit geometry provider for the current Feature. Cannot be nullptr.
this
2020.1
luciad::NullArgumentException
when the given geometry provider is nullptr
|
inline |
Sets whether the layer should display labels initially.
The default is true. this builder.
labeled
whether the layer should display labels initially.
FeatureLayer::setLabeled
2020.2
|
inline |
Sets the FeatureLayerLoadingStrategy to use.
This method is optional. If a loading strategy is not explicitly configured, the LoadSpatially strategy is used. It tries to use the LoadSpatially strategy first. If that strategy is not supported for the layer's model, the LoadEverything strategy is used as fallback.
loadingStrategy
the loading strategy to use.
this builder
2023.0.02
|
inline |
Sets the feature model of the layer.
Calling this function is mandatory.
model
the feature model of the layer. Cannot be nullptr.
this builder.
luciad::NullArgumentException
when the given model is nullptr.
|
inline |
Sets the IFeaturePainter to use.
If not set, a default painter will be used. The default painter relies on the feature model having all of its feature data types containing a geometry annotation.
featurePainter
the feature painter used to paint the feature model. Cannot be nullptr.
this builder.
luciad::NullArgumentException
when the given feature painter is nullptr
|
inline |
Sets whether the features in this layer can be returned in the Map::queryFeatures method.
The default is true.
queryable
whether the features in this layer can be returned in the Map::queryFeatures method.
this builder
FeatureLayer::setQueryable
2023.1
|
inline |
Sets the query configuration to use.
The query configuration determines which features to load based on the current map's scale. If not set, a default configuration will be used that always loads all features.
configuration
the query configuration. Cannot be nullptr.
this builder
luciad::NullArgumentException
when the given query configuration is nullptr
|
inline |
Sets the title to use for the layer.
If not set, the title from the ModelMetadata is used.
title
the title for the layer.
this builder.
|
inline |
Sets whether the layer should be visible initially.
Default is true.
visible
the visibility.
this builder.