osgEarth 2.1.1
|
Public Member Functions | |
RemoveLayerHandler (ImageLayer *layer) | |
void | onClick (Control *control, int mouseButtonMask) |
Public Attributes | |
osg::ref_ptr< ImageLayer > | _layer |
Definition at line 137 of file osgearth_toc.cpp.
RemoveLayerHandler::RemoveLayerHandler | ( | ImageLayer * | layer | ) | [inline] |
Definition at line 139 of file osgearth_toc.cpp.
: _layer(layer) { }
void RemoveLayerHandler::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 140 of file osgearth_toc.cpp.
{ s_inactiveMap->addImageLayer( _layer.get() ); s_activeMap->removeImageLayer( _layer.get() ); }
osg::ref_ptr<ImageLayer> RemoveLayerHandler::_layer |
Definition at line 144 of file osgearth_toc.cpp.