This renderer translates a map feature whose geometry is an IlvMapRaster
into an IlvZoomableIcon
whose colors indicate the value of the raster.
More...
#include <ilviews/maps/rendering/rastrdr.h>
This renderer translates a map feature whose geometry is an IlvMapRaster
into an IlvZoomableIcon
whose colors indicate the value of the raster.
Library: ilvmaps
The translation from raster values to colors is performed by an IlvMapColorModel
.
◆ IlvDefaultRasterRenderer() [1/2]
Initializes a new instance of a renderer to render raster geometries.
- Parameters
-
display | The display for which graphics are rendered. |
colorModel | The colormodel used to translate raster values into colors. |
ownerOfModel | If IlTrue , the new owner of the colormodel is the renderer. The IlvDefaultRasterRenderer instance will delete the colorModel in its destructor. |
◆ IlvDefaultRasterRenderer() [2/2]
Initializes a new instance of the renderer as a copy of another one.
- Parameters
-
source | The object to be copied. |
◆ BitmapError()
static IlvMapsError IlvDefaultRasterRenderer::BitmapError |
( |
| ) |
|
|
static |
The error returned when bitmaps cannot be created.
- Returns
- The error returned when bitmaps cannot be created.
◆ makeGraphic()
Translates an IlvMapFeature
into a graphic object.
- Warning
- This renderer handles projection conversion.
- Parameters
-
feature | The map feature to be translated. |
targetMapInfo | The target map info. |
status | Set to an error code if the renderer cannot process the map feature (often because the renderer does not support the feature geometry, but it can also indicate that a projection error occurred). |
- Returns
- The
IlvGraphic
object or 0
if a severe error occurred.
Implements IlvFeatureRenderer.