The base abstract class for tile loaders specialized in loading map formats.
More...
#include <ilviews/maps/format/maptloader.h>
The base abstract class for tile loaders specialized in loading map formats.
Library: ilvmaps
This default implementation of an IlvTileLoader
can load data from any data set on which IlvMapFeatureIterator
can be constructed for a given tile.
This default implementation can also take advantage of classes implementing IlvLookAheadFeatureIterator
.
IlvMapTileLoader::IlvMapTileLoader |
( |
| ) |
|
|
protected |
Constructor.
This class can only be instantiated by subclasses.
Returns the default feature renderer used for the rendering of map features of the current tile.
This default feature renderer is used when the user does not set a feature renderer.
- Parameters
-
- Returns
- The default feature renderer.
Implemented in IlvShapeFileTileLoader, IlvImageTileLoader, and IlvGeoTIFFTileLoader.
Returns the renderer to use with this tile loader.
- Returns
- The renderer to use with this tile loader.
IlvMapsError IlvMapTileLoader::getInitStatus |
( |
| ) |
const |
Checks the initialization status of this tile loader.
- Returns
IlvMaps::NoError()
if the initialization of this tile loader is successful, or an error code if an error occurred during the initalization.
virtual IlvMapInfo* IlvMapTileLoader::getMapInfo |
( |
| ) |
|
|
pure virtual |
virtual IlBoolean IlvMapTileLoader::isAttachingAttributes |
( |
| ) |
const |
|
virtual |
Test if this tile loader is attaching attributes.
- Returns
IlTrue
if this tile loader is attaching attributes to the graphic objects it loads, when these are available, and IlFalse
otherwise. The default is IlTrue
.
IlBoolean IlvMapTileLoader::isOwnerOfRenderer |
( |
| ) |
const |
virtual IlBoolean IlvMapTileLoader::isPersistent |
( |
| ) |
const |
|
pure virtual |
virtual IlvMapsError IlvMapTileLoader::load |
( |
IlvTile * |
tile | ) |
|
|
virtual |
Method called when a tile has to be loaded.
The default implementation gets the feature iterator for the tile to load by using getFeatureIterator()
, and then adds all the objects to the tile using the feature renderer of this tile loader.
If getFeatureIterator()
returns 0
, the specified tile is assumed to be inexistent and tile->loadComplete()
is called.
- Parameters
-
- Returns
- An IlvMapsError if an error occurs when loading objects from the specified tile.
Implements IlvTileLoader.
virtual void IlvMapTileLoader::release |
( |
IlvTile * |
tile | ) |
|
|
virtual |
Releases the specified tile.
The default implementation calls tile->deleteAll()
- Parameters
-
Implements IlvTileLoader.
virtual void IlvMapTileLoader::setAttachingAttributes |
( |
IlBoolean |
set | ) |
|
|
virtual |
Specifies whether this tile loader is attaching attributes to the graphic objects it loads.
- Parameters
-
set | If IlTrue , attributes are attached. |
Sets the renderer to use with this tile loader.
- Parameters
-
renderer | The feature renderer. |
owner | If this parameter is set to IlTrue , then the tile loader destructor will delete the renderer passed as first argument. |
void IlvMapTileLoader::setInitStatus |
( |
IlvMapsError |
status | ) |
|
|
protected |
Sets the error status of the tile loader.
- Parameters
-
status | The initialization error code. |
© 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.