Views
Maps Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions | Static Public Member Functions
IlvDefaultRasterRenderer Class Reference

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>

Inheritance diagram for IlvDefaultRasterRenderer:
IlvFeatureRenderer

Public Member Functions

 IlvDefaultRasterRenderer (const IlvDefaultRasterRenderer &source)
 Initializes a new instance of the renderer as a copy of another one. More...
 
 IlvDefaultRasterRenderer (IlvDisplay *display, IlvMapColorModel *colorModel, IlBoolean ownerOfModel)
 Initializes a new instance of a renderer to render raster geometries. More...
 
IlvGraphicmakeGraphic (const IlvMapFeature &feature, const IlvMapInfo &targetMapInfo, IlvMapsError &status) const
 Translates an IlvMapFeature into a graphic object. More...
 
- Public Member Functions inherited from IlvFeatureRenderer
virtual IlvFeatureRenderercopy () const =0
 Copies the object. More...
 
IlvDisplaygetDisplay () const
 Returns the renderer display. More...
 
IlBoolean isPersistent () const
 Checks if the renderer can be saved. More...
 
void save (IlvOutputFile &file) const
 Saves the object to an IlvOutputFile. More...
 
virtual void write (IlvOutputFile &file) const =0
 Writes the renderer to an IlvOutputStream. More...
 

Static Public Member Functions

static IlvMapsError BitmapError ()
 The error returned when bitmaps cannot be created. More...
 
- Static Public Member Functions inherited from IlvFeatureRenderer
static IlvFeatureRendererLoad (IlvInputFile &file)
 Loads a renderer from an IlvInputFile. More...
 

Additional Inherited Members

- Protected Member Functions inherited from IlvFeatureRenderer
 IlvFeatureRenderer (IlvDisplay *display, IlBoolean persistent=IlTrue)
 Constructor. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ IlvDefaultRasterRenderer() [1/2]

IlvDefaultRasterRenderer::IlvDefaultRasterRenderer ( IlvDisplay display,
IlvMapColorModel colorModel,
IlBoolean  ownerOfModel 
)

Initializes a new instance of a renderer to render raster geometries.

Parameters
displayThe display for which graphics are rendered.
colorModelThe colormodel used to translate raster values into colors.
ownerOfModelIf IlTrue, the new owner of the colormodel is the renderer. The IlvDefaultRasterRenderer instance will delete the colorModel in its destructor.

◆ IlvDefaultRasterRenderer() [2/2]

IlvDefaultRasterRenderer::IlvDefaultRasterRenderer ( const IlvDefaultRasterRenderer source)

Initializes a new instance of the renderer as a copy of another one.

Parameters
sourceThe object to be copied.

Member Function Documentation

◆ BitmapError()

static IlvMapsError IlvDefaultRasterRenderer::BitmapError ( )
static

The error returned when bitmaps cannot be created.

Returns
The error returned when bitmaps cannot be created.

◆ makeGraphic()

IlvGraphic* IlvDefaultRasterRenderer::makeGraphic ( const IlvMapFeature feature,
const IlvMapInfo targetMapInfo,
IlvMapsError &  status 
) const
virtual

Translates an IlvMapFeature into a graphic object.

Warning
This renderer handles projection conversion.
Parameters
featureThe map feature to be translated.
targetMapInfoThe target map info.
statusSet 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.