osgEarth 2.1.1
Public Member Functions | Public Attributes

LayerOpacityHandler Struct Reference

Inheritance diagram for LayerOpacityHandler:
Collaboration diagram for LayerOpacityHandler:

List of all members.

Public Member Functions

 LayerOpacityHandler (ImageLayer *layer)
void onValueChanged (Control *control, float value)

Public Attributes

ImageLayer_layer

Detailed Description

Definition at line 118 of file osgearth_toc.cpp.


Constructor & Destructor Documentation

LayerOpacityHandler::LayerOpacityHandler ( ImageLayer layer) [inline]

Definition at line 120 of file osgearth_toc.cpp.

: _layer(layer) { }

Member Function Documentation

void LayerOpacityHandler::onValueChanged ( Control control,
float  value 
) [inline, virtual]

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

Definition at line 121 of file osgearth_toc.cpp.

                                                         {
        _layer->setOpacity( value );
    }

Member Data Documentation

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