|
LuciadCPillar C# 2026.1.02
|
A feature painter is used to specify how a feature is painted. More...
Public Member Functions | |
| void | ConfigureMetadata (Luciad.Layers.Features.FeaturePainterMetadata metadata) |
This method is called by the layer to determine when the styling defined by this IFeaturePainter changes. | |
| void | Paint (Luciad.Models.Features.Feature feature, Luciad.Layers.Features.FeaturePainterContext context, Luciad.Layers.Features.FeatureCanvas canvas) |
| Specifies how the given feature is painted. | |
A feature painter is used to specify how a feature is painted.
An example of how to implement this interface can be found here.
| void Luciad.Layers.Features.IFeaturePainter.ConfigureMetadata | ( | Luciad.Layers.Features.FeaturePainterMetadata | metadata | ) |
This method is called by the layer to determine when the styling defined by this IFeaturePainter changes.
The layer can use the FeaturePainterMetadata to know when to call the IFeaturePainter.Paint method. The FeatureState.selected() and the FeaturePainterMetadata.PainterDependsOnFeature are active by default.
| metadata | the metadata to be modified in this method |
| void Luciad.Layers.Features.IFeaturePainter.Paint | ( | Luciad.Models.Features.Feature | feature, |
| Luciad.Layers.Features.FeaturePainterContext | context, | ||
| Luciad.Layers.Features.FeatureCanvas | canvas ) |
Specifies how the given feature is painted.
This is done by submitting draw command on the given FeatureCanvas.
An example of how to implement this method can be found here.
| feature | the feature to painter |
| context | additional context information |
| canvas | the canvas on which to submit draw commands. |