osgEarth 2.1.1
Public Member Functions | Public Attributes

ToggleModeHandler Struct Reference

Inheritance diagram for ToggleModeHandler:
Collaboration diagram for ToggleModeHandler:

List of all members.

Public Member Functions

 ToggleModeHandler (MeasureToolHandler *tool)
virtual void onValueChanged (Control *control, bool value)

Public Attributes

osg::ref_ptr< MeasureToolHandler_tool

Detailed Description

Definition at line 71 of file osgearth_measure.cpp.


Constructor & Destructor Documentation

ToggleModeHandler::ToggleModeHandler ( MeasureToolHandler tool) [inline]

Definition at line 73 of file osgearth_measure.cpp.

                                                 :
    _tool( tool )
    { }

Member Function Documentation

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

Value events

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

Definition at line 77 of file osgearth_measure.cpp.

                                                              {
        if (_tool->getGeoInterpolation() == GEOINTERP_GREAT_CIRCLE)
        {
            _tool->setGeoInterpolation( GEOINTERP_RHUMB_LINE);
        }
        else
        {
            _tool->setGeoInterpolation( GEOINTERP_GREAT_CIRCLE);
        }        
    }

Member Data Documentation

Definition at line 88 of file osgearth_measure.cpp.


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