LuciadCPillar C# 2023.1.03
|
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. More... | |
void | Paint (Luciad.Models.Features.Feature feature, Luciad.Layers.Features.FeaturePainterContext context, Luciad.Layers.Features.FeatureCanvas canvas) |
Specifies how the given feature is painted. More... | |
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 luciad::FeatureState::selected() and the luciad::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.