osgEarth 2.1.1
Public Member Functions | Public Attributes

AddLayerHandler Struct Reference

Inheritance diagram for AddLayerHandler:
Collaboration diagram for AddLayerHandler:

List of all members.

Public Member Functions

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

Public Attributes

osg::ref_ptr< ImageLayer_layer

Detailed Description

Definition at line 127 of file osgearth_toc.cpp.


Constructor & Destructor Documentation

AddLayerHandler::AddLayerHandler ( ImageLayer layer) [inline]

Definition at line 129 of file osgearth_toc.cpp.

: _layer(layer) { }

Member Function Documentation

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

Member Data Documentation

Definition at line 134 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