osgEarth 2.1.1
Public Member Functions | Public Attributes

ClickViewpointHandler Struct Reference

Inheritance diagram for ClickViewpointHandler:
Collaboration diagram for ClickViewpointHandler:

List of all members.

Public Member Functions

 ClickViewpointHandler (const Viewpoint &vp)
virtual void onClick (class Control *control)

Public Attributes

Viewpoint _vp

Detailed Description

Definition at line 87 of file osgearth_viewer.cpp.


Constructor & Destructor Documentation

ClickViewpointHandler::ClickViewpointHandler ( const Viewpoint vp) [inline]

Definition at line 89 of file osgearth_viewer.cpp.

: _vp(vp) { }

Member Function Documentation

virtual void ClickViewpointHandler::onClick ( class Control control) [inline, virtual]

Click event.

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

Definition at line 92 of file osgearth_viewer.cpp.

    {
        s_manip->setViewpoint( _vp, 4.5 );
    }

Here is the call graph for this function:


Member Data Documentation

Definition at line 90 of file osgearth_viewer.cpp.


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