view::ChaseViewpoint Class Reference

Functor attached to a View that computes view matrix for chase-plane view. See Viewpoint class. More...

#include <_src_view_viewpoint_chase.hh>

Inheritance diagram for view::ChaseViewpoint:

view::Viewpoint

List of all members.

Public Types

enum  { AXIS_CHASE_PLANE_HORZ = ZZ, AXIS_CHASE_PLANE_VERT = XX }

Public Member Functions

 ChaseViewpoint (void)
 ~ChaseViewpoint (void)
void Save (void)
void Reset (void)
void SetTarget (shptr< Object > target)
shptr< Object > GetTarget (void)
void SetDistance (const Vector3 &distance)
Vector3 GetDistance (void)
void Move (const fp inc)
void Rotate (const uint axis, const Radian rad)

Protected Member Functions

virtual Matrix ComputeViewMatrix (shptr< View > view)

Private Attributes

State mState
 current orientation of chase view
State mSavedState
 saved orientation of chase view

Classes

struct  State


Detailed Description

Functor attached to a View that computes view matrix for chase-plane view. See Viewpoint class.

Member Enumeration Documentation

anonymous enum

Enumerator:
AXIS_CHASE_PLANE_HORZ 
AXIS_CHASE_PLANE_VERT 


Constructor & Destructor Documentation

view::ChaseViewpoint::ChaseViewpoint ( void   ) 

ctor/dtor.

view::ChaseViewpoint::~ChaseViewpoint ( void   ) 


Member Function Documentation

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

Implements view::Viewpoint.

void view::ChaseViewpoint::Save ( void   ) 

void view::ChaseViewpoint::Reset ( void   ) 

Save state to be restored by ChasePlaneReset().

void view::ChaseViewpoint::SetTarget ( shptr< Object target  ) 

shptr< Object > view::ChaseViewpoint::GetTarget ( void   ) 

void view::ChaseViewpoint::SetDistance ( const Vector3 &  distance_  ) 

Set the distance between the chase-plane and what it looks at.

Parameters:
distance_ Distance in world space.

Vector3 view::ChaseViewpoint::GetDistance ( void   ) 

void view::ChaseViewpoint::Move ( const fp  inc  ) 

Move the chase-plane nearer/further to target.

Parameters:
inc Increment in world space.

void view::ChaseViewpoint::Rotate ( const uint  axis,
const Radian  rad 
)


Member Data Documentation

current orientation of chase view

saved orientation of chase view


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