![]() |
LuciadCPillar 2024.1.06
|
FeaturePainterContext provides information for use during feature painting. More...
#include <luciad/layers/features/FeaturePainterContext.h>
Public Member Functions | |
virtual | ~FeaturePainterContext ()=default |
virtual size_t | getDetailLevel () const =0 |
Returns the current detail level for the currently painted Feature. More... | |
virtual LayerId | getLayerId () const =0 |
Returns the layer id of the Feature that is being painted. More... | |
virtual const std::shared_ptr< IFeatureModel > & | getModel () const =0 |
Returns the IFeatureModel of the Feature that is being painted. More... | |
virtual bool | is3D () const =0 |
Returns whether the Map that the Feature is being painted on is 3D. More... | |
virtual bool | isDependentOnFeatureState (const FeatureState &featureState) const =0 |
Returns whether this IFeaturePainter is dependent on the given FeatureState. More... | |
virtual bool | isFeatureStateEnabled (const FeatureState &featureState) const =0 |
Returns if the given FeatureState is enabled for the Feature that is currently being painted. More... | |
FeaturePainterContext provides information for use during feature painting.
IFeaturePainter implementations can use it to find out the applicable detail level, feature state and so on to determine how to paint the current feature.
|
virtualdefault |
|
pure virtual |
Returns the current detail level for the currently painted Feature.
See FeaturePainterMetadata::detailLevelScales on how to define detail levels.
|
pure virtual |
|
pure virtual |
Returns the IFeatureModel of the Feature that is being painted.
|
pure virtual |
|
pure virtual |
Returns whether this IFeaturePainter is dependent on the given FeatureState.
featureState | a given FeatureState |
|
pure virtual |
Returns if the given FeatureState is enabled for the Feature that is currently being painted.
featureState | a given FeatureState |
RuntimeException | if this IFeaturePainter does not depend on the given FeatureState. |