osgEarth 2.1.1
Public Member Functions | Public Attributes

RemoveLayerHandler Struct Reference

Inheritance diagram for RemoveLayerHandler:
Collaboration diagram for RemoveLayerHandler:

List of all members.

Public Member Functions

 RemoveLayerHandler (ImageLayer *layer)
void onClick (Control *control, int mouseButtonMask)

Public Attributes

osg::ref_ptr< ImageLayer_layer

Detailed Description

Definition at line 137 of file osgearth_toc.cpp.


Constructor & Destructor Documentation

RemoveLayerHandler::RemoveLayerHandler ( ImageLayer layer) [inline]

Definition at line 139 of file osgearth_toc.cpp.

: _layer(layer) { }

Member Function Documentation

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() );
    }

Member Data Documentation

Definition at line 144 of file osgearth_toc.cpp.


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