|
LuciadCPillar 2025.0.07
|
DensitySettings are used on a feature layer to enable and configure density painting.
More...
#include <luciad/layers/features/DensitySettings.h>
Public Member Functions | |
| DensitySettings (ColorMap colorMap) | |
| Constructs density painting settings based on the given color mapping. More... | |
| const ColorMap & | getColorMap () const |
| Returns the color mapping used for density painting. More... | |
DensitySettings are used on a feature layer to enable and configure density painting.
When density painting is active, the color map in the density settings is used to determine the colors of shapes. The IFeaturePainter determines which shapes are drawn. The density level is based on the amount of overlapping features that are drawn by the IFeaturePainter, with the alpha value serving as a weight. The color is derived from the ColorMap using the density level.
For example, a region with two overlapping features, where one has an alpha of 0.75 and the other an alpha of 0.5, has a density level of 1.25. The color of this region is equal to colorMap.retrieveColor(1.25).
Notes:
Labels are still rendered normally. Complex strokes are ignored.
|
explicit |
Constructs density painting settings based on the given color mapping.
| colorMap | the color mapping to be used for density painting. |
| const ColorMap & luciad::DensitySettings::getColorMap | ( | ) | const |
Returns the color mapping used for density painting.