osgEarth 2.1.1
Public Member Functions | Public Attributes

MoveLayerHandler Struct Reference

Inheritance diagram for MoveLayerHandler:
Collaboration diagram for MoveLayerHandler:

List of all members.

Public Member Functions

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

Public Attributes

ImageLayer_layer
int _newIndex

Detailed Description

Definition at line 147 of file osgearth_toc.cpp.


Constructor & Destructor Documentation

MoveLayerHandler::MoveLayerHandler ( ImageLayer layer,
int  newIndex 
) [inline]

Definition at line 149 of file osgearth_toc.cpp.

: _layer(layer), _newIndex(newIndex) { }

Member Function Documentation

void MoveLayerHandler::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 150 of file osgearth_toc.cpp.

                                                          {
        s_activeMap->moveImageLayer( _layer, _newIndex );
    }

Member Data Documentation

Definition at line 153 of file osgearth_toc.cpp.

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