osgEarth 2.1.1
Public Member Functions | Public Attributes

anonymous_namespace{osgearth_manip.cpp}::FlyToViewpointHandler Struct Reference

List of all members.

Public Member Functions

 FlyToViewpointHandler (EarthManipulator *manip)
bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)

Public Attributes

osg::observer_ptr
< EarthManipulator
_manip

Detailed Description

Definition at line 99 of file osgearth_manip.cpp.


Constructor & Destructor Documentation

anonymous_namespace{osgearth_manip.cpp}::FlyToViewpointHandler::FlyToViewpointHandler ( EarthManipulator manip) [inline]

Definition at line 101 of file osgearth_manip.cpp.

: _manip(manip) { }

Member Function Documentation

bool anonymous_namespace{osgearth_manip.cpp}::FlyToViewpointHandler::handle ( const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  aa 
) [inline]

Definition at line 103 of file osgearth_manip.cpp.

        {
            if ( ea.getEventType() == ea.KEYDOWN && ea.getKey() >= '1' && ea.getKey() <= '6' )
            {
                _manip->setViewpoint( VPs[ea.getKey()-'1'], 4.0 );
            }
            return false;
        }

Member Data Documentation

osg::observer_ptr<EarthManipulator> anonymous_namespace{osgearth_manip.cpp}::FlyToViewpointHandler::_manip

Definition at line 112 of file osgearth_manip.cpp.


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