Rogue Wave Views Maps Package API Reference Guide |
Rogue Wave Views Documentation Home |
This class represents the elementary element used by the load-on-demand process. More...
#include <ilviews/maps/tiling/tile.h>
Public Member Functions | |
void | addObject (IlvGraphic *g, IlvMapFeatureId *id=0) |
Adds a graphic object to an IlvTiledLayer . More... | |
void | boundingBox (IlvRect &rect) const |
Returns the bounding box of the tile in the manager coordinate system. More... | |
void | deleteAll () |
Empties the tile except for the objects that are shared by another non empty tile. More... | |
IlInt | getColumn () const |
Returns the column of the tile. More... | |
IlvTileController * | getController () const |
Returns the controller of the tile. More... | |
IlvDisplay * | getDisplay () const |
Returns the display of controller manager. More... | |
IlvGraphic * | getObject (IlvMapFeatureId *id) const |
Returns the object of the specified ID if it is already loaded in the layer. More... | |
IlInt | getRow () const |
Returns the row of the tile. More... | |
IlvTileStatus | getStatus () const |
Returns the status of the tile. More... | |
IlBoolean | isLoadComplete () const |
Returns IlTrue if the tile is fully loaded. More... | |
IlBoolean | isObjectShared (IlvGraphic *graphic) const |
Returns IlTrue if the object graphic is shared by other tiles. More... | |
void | loadComplete () |
Notifies the tile that it has been fully loaded, thus, the method must be called by the tile loaders. More... | |
void | reDraw () const |
Redraws a tile. More... | |
This class represents the elementary element used by the load-on-demand process.
Library: ilvmaps
A tile represents an elementary rectangular area that is loaded or released when needed by the application. Tiles are managed by an IlvTileController
.
In most cases, the tile controller will be associated with an IlvTiledLayer
. This means that the tiles represent areas that must be filled with graphic objects when they become visible due to the user of the application scrolling or zooming on a view.
More sophisticated applications can use a tile controller without attaching it to a layer, for example, to load data that is needed to process an area that becomes visible.
void IlvTile::addObject | ( | IlvGraphic * | g, |
IlvMapFeatureId * | id = 0 |
||
) |
Adds a graphic object to an IlvTiledLayer
.
When implementing an IlvTileLoader
, objects should not be added to a manager using IlvManager::addObject
. This method must be called only if the tile controller is attached to a layer.
g | The graphic object to be added. |
id | The ID of the object. This parameter can be set to 0 . The ID is owned by the tile and will be deleted when the tile will be released. |
getObject()
, IlvTileLoader
. void IlvTile::boundingBox | ( | IlvRect & | rect | ) | const |
Returns the bounding box of the tile in the manager coordinate system.
rect | The returned IlvRect object containing the bounding box. |
void IlvTile::deleteAll | ( | ) |
Empties the tile except for the objects that are shared by another non empty tile.
This method must be called only if the tile controller is attached to a layer.
IlInt IlvTile::getColumn | ( | ) | const |
Returns the column of the tile.
IlvTileController* IlvTile::getController | ( | ) | const |
Returns the controller of the tile.
IlvTileController
object that controls this tile. IlvDisplay* IlvTile::getDisplay | ( | ) | const |
Returns the display of controller manager.
IlvGraphic* IlvTile::getObject | ( | IlvMapFeatureId * | id | ) | const |
Returns the object of the specified ID if it is already loaded in the layer.
This method must be called only if the tile is attached to a layer.
id | The ID of the object. |
addObject()
. IlInt IlvTile::getRow | ( | ) | const |
Returns the row of the tile.
IlvTileStatus IlvTile::getStatus | ( | ) | const |
IlBoolean IlvTile::isLoadComplete | ( | ) | const |
Returns IlTrue
if the tile is fully loaded.
IlTrue
if the load is complete and IlFalse
otherwise. loadComplete()
. IlBoolean IlvTile::isObjectShared | ( | IlvGraphic * | graphic | ) | const |
Returns IlTrue
if the object graphic is shared by other tiles.
This method must be called only if the tile controller is attached to a layer. This method only tests objects against currently locked or cached tiles.
graphic | The graphic object. |
IlTrue
if the object is shared and IlFalse
otherwise. void IlvTile::loadComplete | ( | ) |
Notifies the tile that it has been fully loaded, thus, the method must be called by the tile loaders.
IlvTileLoader
. void IlvTile::reDraw | ( | ) | const |
Redraws a tile.
Should be called only if the tile is attached to a layer.
© Copyright 2017, 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.