LuciadCPillar  2020.0.04
luciad::IFeaturePainter Class Referenceabstract

Public Member Functions

virtual ~IFeaturePainter ()=default
 
virtual void configureMetadata (FeaturePainterMetadata &metadata) const =0
 This method is called by the layer to determine when the styling defined by this IFeaturePainter changes. More...
 
virtual void paint (const Feature &feature, const FeaturePainterContext &context, FeatureCanvas &canvas) const =0
 

Constructor & Destructor Documentation

◆ ~IFeaturePainter()

virtual luciad::IFeaturePainter::~IFeaturePainter ( )
virtualdefault

Member Function Documentation

◆ configureMetadata()

virtual void luciad::IFeaturePainter::configureMetadata ( FeaturePainterMetadata metadata) const
pure virtual

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.

Parameters
metadatathe metadata to be modified in this method

◆ paint()

virtual void luciad::IFeaturePainter::paint ( const Feature feature,
const FeaturePainterContext context,
FeatureCanvas canvas 
) const
pure virtual