view::Viewpoint Class Reference

Functor that computes view matrix every frame. More...

#include <_src_view_viewpoint.hh>

Inheritance diagram for view::Viewpoint:

view::ChaseViewpoint view::ManipulatorViewpoint view::OtwViewpoint

List of all members.

Public Member Functions

 Viewpoint (void)
virtual ~Viewpoint ()

Protected Member Functions

virtual Matrix ComputeViewMatrix (shptr< View > view)=0

Friends

class View


Detailed Description

Functor that computes view matrix every frame.

Logical views are composed with a View and a Viewpoint object. Viewpoint is a functor containing an algorithm to compute the view matrix which is called before rendering a new frame. This composition can be changed dynamically using View::SetViewpoint() to allow switching to different view modes (first-person, chase-plane, etc). Despite the view appearing to change, View keeps the same underlying osg::Camera object.

Viewpoint is capable of controlling first-person and chase-plane views by converting the player's matrix into an eye matrix. View/Viewpoint supercedes EyeCraft and ChasePlane of old versions.


Constructor & Destructor Documentation

view::Viewpoint::Viewpoint ( void   )  [inline]

virtual view::Viewpoint::~Viewpoint (  )  [inline, virtual]


Member Function Documentation

virtual Matrix view::Viewpoint::ComputeViewMatrix ( shptr< View view  )  [protected, pure virtual]


Friends And Related Function Documentation

friend class View [friend]


The documentation for this class was generated from the following file:
Palomino Flight Simulator documents generated by doxygen 1.5.6 on Tue Sep 28 11:37:50 2010