osgEarth 2.1.1
|
Public Member Functions | |
virtual void | onMapInfoEstablished (const MapInfo &mapInfo) |
virtual void | onMapModelChanged (const MapModelChange &change) |
virtual void | onImageLayerAdded (ImageLayer *layer, unsigned int index) |
virtual void | onImageLayerRemoved (ImageLayer *layer, unsigned int index) |
virtual void | onImageLayerMoved (ImageLayer *layer, unsigned int oldIndex, unsigned int newIndex) |
virtual void | onElevationLayerAdded (ElevationLayer *layer, unsigned int index) |
virtual void | onElevationLayerRemoved (ElevationLayer *layer, unsigned int index) |
virtual void | onElevationLayerMoved (ElevationLayer *layer, unsigned int oldIndex, unsigned int newIndex) |
virtual void | onModelLayerAdded (ModelLayer *layer, unsigned int index) |
virtual void | onModelLayerRemoved (ModelLayer *layer) |
virtual void | onModelLayerMoved (ModelLayer *layer, unsigned int oldIndex, unsigned int newIndex) |
virtual void | onMaskLayerAdded (MaskLayer *mask) |
virtual void | onMaskLayerRemoved (MaskLayer *mask) |
Callback that the Map object uses to notify listeners of map data model changes.
virtual void osgEarth::MapCallback::onElevationLayerAdded | ( | ElevationLayer * | layer, |
unsigned int | index | ||
) | [inline, virtual] |
virtual void osgEarth::MapCallback::onElevationLayerMoved | ( | ElevationLayer * | layer, |
unsigned int | oldIndex, | ||
unsigned int | newIndex | ||
) | [inline, virtual] |
virtual void osgEarth::MapCallback::onElevationLayerRemoved | ( | ElevationLayer * | layer, |
unsigned int | index | ||
) | [inline, virtual] |
virtual void osgEarth::MapCallback::onImageLayerAdded | ( | ImageLayer * | layer, |
unsigned int | index | ||
) | [inline, virtual] |
virtual void osgEarth::MapCallback::onImageLayerMoved | ( | ImageLayer * | layer, |
unsigned int | oldIndex, | ||
unsigned int | newIndex | ||
) | [inline, virtual] |
virtual void osgEarth::MapCallback::onImageLayerRemoved | ( | ImageLayer * | layer, |
unsigned int | index | ||
) | [inline, virtual] |
virtual void osgEarth::MapCallback::onMapInfoEstablished | ( | const MapInfo & | mapInfo | ) | [inline, virtual] |
Reimplemented in osgEarth::TerrainEngineNodeCallbackProxy, and OSGTerrainEngineNodeMapCallbackProxy.
Definition at line 85 of file Map.
{ }
void MapCallback::onMapModelChanged | ( | const MapModelChange & | change | ) | [virtual] |
Reimplemented in MyMapListener, osgEarth::TerrainEngineNodeCallbackProxy, and OSGTerrainEngineNodeMapCallbackProxy.
Definition at line 33 of file Map.cpp.
{ switch( change.getAction() ) { case MapModelChange::ADD_ELEVATION_LAYER: onElevationLayerAdded( change.getElevationLayer(), change.getFirstIndex() ); break; case MapModelChange::ADD_IMAGE_LAYER: onImageLayerAdded( change.getImageLayer(), change.getFirstIndex() ); break; case MapModelChange::ADD_MASK_LAYER: onMaskLayerAdded( change.getMaskLayer() ); break; case MapModelChange::ADD_MODEL_LAYER: onModelLayerAdded( change.getModelLayer(), change.getFirstIndex() ); break; case MapModelChange::REMOVE_ELEVATION_LAYER: onElevationLayerRemoved( change.getElevationLayer(), change.getFirstIndex() ); break; case MapModelChange::REMOVE_IMAGE_LAYER: onImageLayerRemoved( change.getImageLayer(), change.getFirstIndex() ); break; case MapModelChange::REMOVE_MASK_LAYER: onMaskLayerRemoved( change.getMaskLayer() ); break; case MapModelChange::REMOVE_MODEL_LAYER: onModelLayerRemoved( change.getModelLayer() ); break; case MapModelChange::MOVE_ELEVATION_LAYER: onElevationLayerMoved( change.getElevationLayer(), change.getFirstIndex(), change.getSecondIndex() ); break; case MapModelChange::MOVE_IMAGE_LAYER: onImageLayerMoved( change.getImageLayer(), change.getFirstIndex(), change.getSecondIndex() ); break; case MapModelChange::MOVE_MODEL_LAYER: onModelLayerMoved( change.getModelLayer(), change.getFirstIndex(), change.getSecondIndex() ); break; } }
virtual void osgEarth::MapCallback::onMaskLayerAdded | ( | MaskLayer * | mask | ) | [inline, virtual] |
virtual void osgEarth::MapCallback::onMaskLayerRemoved | ( | MaskLayer * | mask | ) | [inline, virtual] |
virtual void osgEarth::MapCallback::onModelLayerAdded | ( | ModelLayer * | layer, |
unsigned int | index | ||
) | [inline, virtual] |
Reimplemented in anonymous_namespace{MapNode.cpp}::MapNodeMapCallbackProxy.
Definition at line 97 of file Map.
{ }
virtual void osgEarth::MapCallback::onModelLayerMoved | ( | ModelLayer * | layer, |
unsigned int | oldIndex, | ||
unsigned int | newIndex | ||
) | [inline, virtual] |
Reimplemented in anonymous_namespace{MapNode.cpp}::MapNodeMapCallbackProxy.
Definition at line 99 of file Map.
{ }
virtual void osgEarth::MapCallback::onModelLayerRemoved | ( | ModelLayer * | layer | ) | [inline, virtual] |
Reimplemented in anonymous_namespace{MapNode.cpp}::MapNodeMapCallbackProxy.
Definition at line 98 of file Map.
{ }