LuciadCPillar C# 2026.1.02
Loading...
Searching...
No Matches
Luciad.Layers.Features.IFeaturePainter Interface Reference

A feature painter is used to specify how a feature is painted. More...

Inheritance diagram for Luciad.Layers.Features.IFeaturePainter:
Luciad.Layers.Features.IParameterizedFeaturePainter

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.

Detailed Description

A feature painter is used to specify how a feature is painted.

An example of how to implement this interface can be found here.

Member Function Documentation

◆ ConfigureMetadata()

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.

Parameters
metadatathe metadata to be modified in this method

◆ Paint()

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.

Parameters
featurethe feature to painter
contextadditional context information
canvasthe canvas on which to submit draw commands.