Rogue Wave Views
Maps Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions | Static Public Member Functions
IlvDefaultImageRenderer Class Reference

This renderer translates a map feature whose geometry is an IlvMapImage into an IlvZoomableIcon. More...

#include <ilviews/maps/rendering/imagerdr.h>

Inheritance diagram for IlvDefaultImageRenderer:
IlvFeatureRenderer

Public Member Functions

 IlvDefaultImageRenderer (IlvDisplay *display)
 Initializes a new instance of the renderer. More...
 
 IlvDefaultImageRenderer (const IlvDefaultImageRenderer &source)
 Initializes a new IlvDefaultImageRenderer by copying an existing one. 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 code returned if an error occurred during the bitmap data creation. 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 IlvMapImage into an IlvZoomableIcon.

Library: ilvmaps

Constructor & Destructor Documentation

§ IlvDefaultImageRenderer() [1/2]

IlvDefaultImageRenderer::IlvDefaultImageRenderer ( IlvDisplay display)

Initializes a new instance of the renderer.

Parameters
displayThe display used to create the graphic objects.

§ IlvDefaultImageRenderer() [2/2]

IlvDefaultImageRenderer::IlvDefaultImageRenderer ( const IlvDefaultImageRenderer source)

Initializes a new IlvDefaultImageRenderer by copying an existing one.

Parameters
sourceThe object to be copied.

Member Function Documentation

§ BitmapError()

static IlvMapsError IlvDefaultImageRenderer::BitmapError ( )
static

The error code returned if an error occurred during the bitmap data creation.

Returns
An IlvMapsError returned if an error occurred during the bitmap data creation.
See also
makeGraphic().

§ makeGraphic()

IlvGraphic* IlvDefaultImageRenderer::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 (most of the time, because the renderer does not support the feature geometry, but it can also indicate that a projection error occurred).
Returns
An IlvGraphic object or 0 if a severe error occurred.

Implements IlvFeatureRenderer.


© Copyright 2018, 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.