|
osgEarth 2.1.1
|
Classes | |
| class | SwitchHandler |
| struct | FlyToViewpointHandler |
| struct | LockAzimuthHandler |
Functions | |
| osg::Node * | createHelp (osgViewer::View *view) |
Variables | |
| static Viewpoint | VPs [] |
| osg::Node* anonymous_namespace{osgearth_manip.cpp}::createHelp | ( | osgViewer::View * | view | ) |
Definition at line 63 of file osgearth_manip.cpp.
{
static char s_help[] =
"left mouse: pan \n"
"middle mouse: tilt/slew \n"
"right mouse: zoom in/out continuous \n"
"double-click: zoom in \n"
"scroll wheel: zoom in/out \n"
"arrows: pan\n"
"1-6 : fly to preset viewpoints \n"
"shift-right-mouse: locked panning\n"
"u : toggle azimuth locking\n"
"h : toggle this help\n";
VBox* v = new VBox();
v->addControl( new LabelControl( "EarthManipulator", osg::Vec4f(1,1,0,1) ) );
v->addControl( new LabelControl( s_help ) );
ControlCanvas* canvas = ControlCanvas::get( view );
canvas->addControl( v );
canvas->setEventCallback(new SwitchHandler('h'));
return canvas;
}
Here is the call graph for this function:
Here is the caller graph for this function: {
Viewpoint( "Africa", osg::Vec3d( 0.0, 0.0, 0.0 ), 0.0, -90.0, 10e6 ),
Viewpoint( "California", osg::Vec3d( -121.0, 34.0, 0.0 ), 0.0, -90.0, 6e6 ),
Viewpoint( "Europe", osg::Vec3d( 0.0, 45.0, 0.0 ), 0.0, -90.0, 4e6 ),
Viewpoint( "Washington DC", osg::Vec3d( -77.0, 38.0, 0.0 ), 0.0, -90.0, 1e6 ),
Viewpoint( "Australia", osg::Vec3d( 135.0, -20.0, 0.0 ), 0.0, -90.0, 2e6 ),
Viewpoint( "Boston", osg::Vec3d( -71.096936, 42.332771, 0 ), 0.0, -90, 1e5 )
}
Definition at line 88 of file osgearth_manip.cpp.
1.7.3