rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

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

List of all members.

Public Member Functions

 IlvDefaultImageRenderer (const IlvDefaultImageRenderer &source)
 Creates a renderer by copying an existing one.
 IlvDefaultImageRenderer (IlvDisplay *display)
 Creates an instance of the renderer.
virtual IlvFeatureRenderercopy () const
 Copies the object.
IlvGraphicmakeGraphic (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 code returned if an error occurred during the bitmap data creation.

Detailed Description

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

Library: ilvmaps


Constructor & Destructor Documentation

IlvDefaultImageRenderer::IlvDefaultImageRenderer ( IlvDisplay display  ) 

Creates an instance of the renderer.

Parameters:
display The display used to create the graphic objects.
IlvDefaultImageRenderer::IlvDefaultImageRenderer ( const IlvDefaultImageRenderer source  ) 

Creates a renderer by copying an existing one.

Parameters:
source The object to be copied.

Member Function Documentation

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
virtual IlvFeatureRenderer* IlvDefaultImageRenderer::copy (  )  const [virtual]

Copies the object.

Returns:
A copy of this IlvFeatureRenderer.

Implements IlvFeatureRenderer.

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:
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 (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 a null pointer if a severe error occurred.

Implements IlvFeatureRenderer.

virtual void IlvDefaultImageRenderer::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.

Parameters:
file The output file.
See also:
save

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.