LuciadCPillar C# 2023.1.03
Luciad.Layers.Features.IFeaturePainter Interface Reference

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...
 

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.

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

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 luciad::FeatureState::selected() and the luciad::FeaturePainterMetadata::painterDependsOnFeature are active by default.

metadata

the metadata to be modified in this method

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

◆ 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.

feature

the feature to painter

context

additional context information

canvas

the canvas on which to submit draw commands.

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