LuciadCPillar C# 2023.1.04
Luciad.Models.Features.FeatureModelBuilder Class Reference

Helps the creation of a IFeatureModel given a list of features, a model metadata, a feature model metadata and optionally a bounds. More...

Inheritance diagram for Luciad.Models.Features.FeatureModelBuilder:

Public Member Functions

 FeatureModelBuilder (Luciad.Models.Features.FeatureModelBuilder other)
 
Luciad.Models.Features.FeatureModelBuilder Bounds (Luciad.Geometries.Bounds bounds)
 Sets the bounds of the feature model. More...
 
Luciad.Models.Features.IFeatureModel Build ()
 Creates a new in-memory IFeatureModel instance, based on the given model metadata, feature model metadata and the list of features. More...
 
void Dispose ()
 
Luciad.Models.Features.FeatureModelBuilder Editable (bool editable)
 Sets whether the model should be editable or not. More...
 
Luciad.Models.Features.FeatureModelBuilder FeatureModelMetadata (Luciad.Models.Features.FeatureModelMetadata featureModelMetadata)
 Sets the FeatureModelMetadata of the feature model. More...
 
Luciad.Models.Features.FeatureModelBuilder Features (System.Collections.Generic.IList< Luciad.Models.Features.Feature > features)
 Sets the features of the feature model. More...
 
Luciad.Models.Features.FeatureModelBuilder ModelMetadata (Luciad.Models.ModelMetadata modelMetadata)
 Sets the ModelMetadata of the feature model. More...
 

Static Public Member Functions

static Luciad.Models.Features.FeatureModelBuilder NewBuilder ()
 Returns the builder class for creation of the IFeatureModel. More...
 

Detailed Description

Helps the creation of a IFeatureModel given a list of features, a model metadata, a feature model metadata and optionally a bounds.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::FeatureModelBuilder.

Constructor & Destructor Documentation

◆ FeatureModelBuilder()

Luciad.Models.Features.FeatureModelBuilder.FeatureModelBuilder ( Luciad.Models.Features.FeatureModelBuilder  other)
inline

Member Function Documentation

◆ Bounds()

Luciad.Models.Features.FeatureModelBuilder Luciad.Models.Features.FeatureModelBuilder.Bounds ( Luciad.Geometries.Bounds  bounds)
inline

Sets the bounds of the feature model.

Calling this function is optional. If no bounds are provided, the model will attempt to derive the bounds by itself. It does so by calculating the union of the geometries of its features, as specified by Feature::findGeometry.

bounds

The model bounds. Cannot be nullptr.

this

luciad::NullArgumentException

when passing nullptr.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::FeatureModelBuilder::bounds.

◆ Build()

Luciad.Models.Features.IFeatureModel Luciad.Models.Features.FeatureModelBuilder.Build ( )
inline

Creates a new in-memory IFeatureModel instance, based on the given model metadata, feature model metadata and the list of features.

Depending on whether the editable flag was set, it is possible to add/remove or update the features of this model after it has been created. An in-memory IFeatureModel instance.

LogicException

If not all mandatory parameters are set.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::FeatureModelBuilder::build.

◆ Dispose()

void Luciad.Models.Features.FeatureModelBuilder.Dispose ( )
inline

◆ Editable()

Luciad.Models.Features.FeatureModelBuilder Luciad.Models.Features.FeatureModelBuilder.Editable ( bool  editable)
inline

Sets whether the model should be editable or not.

An editable model exposes an IFeatureModelUpdater, through which you can add, remove or update the model's features. Calling this function is optional. By default, this value is false.

editable

whether the model should be editable or not.

this

2020.1

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::FeatureModelBuilder::editable.

◆ FeatureModelMetadata()

Luciad.Models.Features.FeatureModelBuilder Luciad.Models.Features.FeatureModelBuilder.FeatureModelMetadata ( Luciad.Models.Features.FeatureModelMetadata  featureModelMetadata)
inline

Sets the FeatureModelMetadata of the feature model.

Calling this function is mandatory.

featureModelMetadata

The model feature model metadata.

this

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::FeatureModelBuilder::featureModelMetadata.

◆ Features()

Luciad.Models.Features.FeatureModelBuilder Luciad.Models.Features.FeatureModelBuilder.Features ( System.Collections.Generic.IList< Luciad.Models.Features.Feature features)
inline

Sets the features of the feature model.

Calling this function is optional. The given features may or may not have an id assigned. If an id is missing, an id will be assigned to them by the resulting model.

features

The model features.

this

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::FeatureModelBuilder::features.

◆ ModelMetadata()

Luciad.Models.Features.FeatureModelBuilder Luciad.Models.Features.FeatureModelBuilder.ModelMetadata ( Luciad.Models.ModelMetadata  modelMetadata)
inline

Sets the ModelMetadata of the feature model.

Calling this function is mandatory.

modelMetadata

The model metadata.

this

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::FeatureModelBuilder::modelMetadata.

◆ NewBuilder()

Luciad.Models.Features.FeatureModelBuilder Luciad.Models.Features.FeatureModelBuilder.NewBuilder ( )
inlinestatic

Returns the builder class for creation of the IFeatureModel.

the builder class for creation of the IFeatureModel.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::FeatureModelBuilder::newBuilder.