Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
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>
Public Member Functions | |
IlvDefaultRasterRenderer (const IlvDefaultRasterRenderer &source) | |
Creates a new renderer, copying the specified renderer. | |
IlvDefaultRasterRenderer (IlvDisplay *display, IlvMapColorModel *colorModel, IlBoolean ownerOfModel) | |
Creates an instance of a renderer to render raster geometries. | |
virtual IlvFeatureRenderer * | copy () const |
Copies the object. | |
IlvGraphic * | makeGraphic (const IlvMapFeature &feature, const IlvMapInfo &targetMapInfo, IlvMapsError &status) const |
Translates an IlvMapFeature into a graphic object. | |
virtual void | write (IlvOutputFile &) const |
Writes the renderer to an IlvOutputStream . | |
Static Public Member Functions | |
static IlvMapsError | BitmapError () |
The error returned when bitmaps cannot be created. |
This renderer translates a map feature whose geometry is an IlvMapRaster
into an IlvZoomableIcon
whose colors indicate the value of the raster.
The translation from raster values to colors is performed by an IlvMapColorModel
. Library: ilvmaps
IlvDefaultRasterRenderer::IlvDefaultRasterRenderer | ( | IlvDisplay * | display, | |
IlvMapColorModel * | colorModel, | |||
IlBoolean | ownerOfModel | |||
) |
Creates an instance of a renderer to render raster geometries.
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::IlvDefaultRasterRenderer | ( | const IlvDefaultRasterRenderer & | source | ) |
Creates a new renderer, copying the specified renderer.
source | The object to be copied. |
static IlvMapsError IlvDefaultRasterRenderer::BitmapError | ( | ) | [static] |
The error returned when bitmaps cannot be created.
virtual IlvFeatureRenderer* IlvDefaultRasterRenderer::copy | ( | ) | const [virtual] |
IlvGraphic* IlvDefaultRasterRenderer::makeGraphic | ( | const IlvMapFeature & | feature, | |
const IlvMapInfo & | targetMapInfo, | |||
IlvMapsError & | status | |||
) | const [virtual] |
Translates an IlvMapFeature
into a graphic object.
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). |
IlvGraphic
object or a null pointer if a severe error occurred. Implements IlvFeatureRenderer.
virtual void IlvDefaultRasterRenderer::write | ( | IlvOutputFile & | file | ) | const [virtual] |
Writes the renderer to an IlvOutputStream
.
This function must be reimplemented by the subclasses of IlvFeatureRenderer
, but it should not be called directly by the application. For more information about subclassing an IlvFeatureRenderer
, refer to the User Manual of Rogue Wave Views Maps.
file | The output file. |
Implements IlvFeatureRenderer.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.