osgEarth 2.1.1
Public Types | Public Member Functions | Private Attributes

osgEarth::MapModelChange Struct Reference

Collaboration diagram for osgEarth::MapModelChange:

List of all members.

Public Types

enum  ActionType {
  ADD_IMAGE_LAYER, REMOVE_IMAGE_LAYER, MOVE_IMAGE_LAYER, ADD_ELEVATION_LAYER,
  REMOVE_ELEVATION_LAYER, MOVE_ELEVATION_LAYER, ADD_MODEL_LAYER, REMOVE_MODEL_LAYER,
  MOVE_MODEL_LAYER, ADD_MASK_LAYER, REMOVE_MASK_LAYER, UNSPECIFIED
}

Public Member Functions

 MapModelChange (ActionType action, Revision mapModeRev, Layer *layer, int firstIndex=-1, int secondIndex=-1)
const ActionTypegetAction () const
const RevisiongetRevision () const
int getFirstIndex () const
int getSecondIndex () const
LayergetLayer () const
ImageLayergetImageLayer () const
ElevationLayergetElevationLayer () const
ModelLayergetModelLayer () const
MaskLayergetMaskLayer () const

Private Attributes

ActionType _action
osg::ref_ptr< Layer_layer
Revision _modelRevision
int _firstIndex
int _secondIndex

Detailed Description

Conveys atomic change actions to the map data model.

Definition at line 43 of file Map.


Member Enumeration Documentation

Enumerator:
ADD_IMAGE_LAYER 
REMOVE_IMAGE_LAYER 
MOVE_IMAGE_LAYER 
ADD_ELEVATION_LAYER 
REMOVE_ELEVATION_LAYER 
MOVE_ELEVATION_LAYER 
ADD_MODEL_LAYER 
REMOVE_MODEL_LAYER 
MOVE_MODEL_LAYER 
ADD_MASK_LAYER 
REMOVE_MASK_LAYER 
UNSPECIFIED 

Definition at line 45 of file Map.


Constructor & Destructor Documentation

osgEarth::MapModelChange::MapModelChange ( ActionType  action,
Revision  mapModeRev,
Layer layer,
int  firstIndex = -1,
int  secondIndex = -1 
) [inline]

Definition at line 60 of file Map.

            : _action(action), _layer(layer), _modelRevision(mapModeRev), _firstIndex(firstIndex), _secondIndex(secondIndex) { }

Member Function Documentation

const ActionType& osgEarth::MapModelChange::getAction ( ) const [inline]

Definition at line 63 of file Map.

{ return _action; }

Here is the caller graph for this function:

ElevationLayer* osgEarth::MapModelChange::getElevationLayer ( ) const [inline]

Definition at line 69 of file Map.

{ return static_cast<ElevationLayer*>(_layer.get()); }

Here is the caller graph for this function:

int osgEarth::MapModelChange::getFirstIndex ( ) const [inline]

Definition at line 65 of file Map.

{ return _firstIndex; }

Here is the caller graph for this function:

ImageLayer* osgEarth::MapModelChange::getImageLayer ( ) const [inline]

Definition at line 68 of file Map.

{ return static_cast<ImageLayer*>(_layer.get()); }

Here is the caller graph for this function:

Layer* osgEarth::MapModelChange::getLayer ( ) const [inline]

Definition at line 67 of file Map.

{ return _layer.get(); }

Here is the caller graph for this function:

MaskLayer* osgEarth::MapModelChange::getMaskLayer ( ) const [inline]

Definition at line 71 of file Map.

{ return static_cast<MaskLayer*>(_layer.get()); }

Here is the caller graph for this function:

ModelLayer* osgEarth::MapModelChange::getModelLayer ( ) const [inline]

Definition at line 70 of file Map.

{ return static_cast<ModelLayer*>(_layer.get()); }

Here is the caller graph for this function:

const Revision& osgEarth::MapModelChange::getRevision ( ) const [inline]

Definition at line 64 of file Map.

{ return _modelRevision; }
int osgEarth::MapModelChange::getSecondIndex ( ) const [inline]

Definition at line 66 of file Map.

{ return _secondIndex; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 74 of file Map.

Definition at line 77 of file Map.

osg::ref_ptr<Layer> osgEarth::MapModelChange::_layer [private]

Definition at line 75 of file Map.

Definition at line 76 of file Map.

Definition at line 77 of file Map.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines