osgEarth 2.1.1
Public Member Functions | Public Attributes

LayerEnabledHandler Struct Reference

Inheritance diagram for LayerEnabledHandler:
Collaboration diagram for LayerEnabledHandler:

List of all members.

Public Member Functions

 LayerEnabledHandler (ImageLayer *layer)
void onValueChanged (Control *control, bool value)

Public Attributes

ImageLayer_layer

Detailed Description

Definition at line 109 of file osgearth_toc.cpp.


Constructor & Destructor Documentation

LayerEnabledHandler::LayerEnabledHandler ( ImageLayer layer) [inline]

Definition at line 111 of file osgearth_toc.cpp.

: _layer(layer) { }

Member Function Documentation

void LayerEnabledHandler::onValueChanged ( Control control,
bool  value 
) [inline, virtual]

Value events

Reimplemented from osgEarth::Util::Controls::ControlEventHandler.

Definition at line 112 of file osgearth_toc.cpp.

                                                        {
        _layer->setEnabled( value );
    }

Member Data Documentation

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