osgEarth 2.1.1
|
Public Member Functions | |
ToggleModeHandler (MeasureToolHandler *tool) | |
virtual void | onValueChanged (Control *control, bool value) |
Public Attributes | |
osg::ref_ptr< MeasureToolHandler > | _tool |
Definition at line 71 of file osgearth_measure.cpp.
ToggleModeHandler::ToggleModeHandler | ( | MeasureToolHandler * | tool | ) | [inline] |
Definition at line 73 of file osgearth_measure.cpp.
: _tool( tool ) { }
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); } }
osg::ref_ptr<MeasureToolHandler> ToggleModeHandler::_tool |
Definition at line 88 of file osgearth_measure.cpp.