|
osgEarth 2.1.1
|
Inheritance diagram for AddLayerHandler:
Collaboration diagram for AddLayerHandler:Public Member Functions | |
| AddLayerHandler (ImageLayer *layer) | |
| void | onClick (Control *control, int mouseButtonMask) |
Public Attributes | |
| osg::ref_ptr< ImageLayer > | _layer |
Definition at line 127 of file osgearth_toc.cpp.
| AddLayerHandler::AddLayerHandler | ( | ImageLayer * | layer | ) | [inline] |
Definition at line 129 of file osgearth_toc.cpp.
: _layer(layer) { }
| void AddLayerHandler::onClick | ( | Control * | control, |
| int | mouseButtonMask | ||
| ) | [inline, virtual] |
Click event with mouse button mask (see osgGA::GUIEventAdapter::MouseButtonMask)
Reimplemented from osgEarth::Util::Controls::ControlEventHandler.
Definition at line 130 of file osgearth_toc.cpp.
{
s_inactiveMap->removeImageLayer( _layer.get() );
s_activeMap->addImageLayer( _layer.get() );
}
| osg::ref_ptr<ImageLayer> AddLayerHandler::_layer |
Definition at line 134 of file osgearth_toc.cpp.
1.7.3