Enviro application
Public Member Functions | Protected Attributes | List of all members
GrabFlyer Class Reference
Inheritance diagram for GrabFlyer:
Inheritance graph
[legend]

Public Member Functions

 GrabFlyer (float fSpeed)
 
void Eval ()
 
void OnMouse (vtMouseEvent &event)
 
void SetTerrainPicker (TerrainPicker *pTP)
 
- Public Member Functions inherited from vtTerrainFlyer
void SetHeightField (const vtHeightField3d *pHF)
 
- Public Member Functions inherited from vtFlyer
void SetSpeed (float fSpeed)
 
float GetSpeed ()
 
float GetCurrentSpeed ()
 
- Public Member Functions inherited from vtLastMouse
void GetNormalizedMouseCoords (float &mx, float &my)
 
- Public Member Functions inherited from vtEngine
osg::Referenced * GetTarget (uint which=0)
 
void AddTarget (osg::Referenced *ptr)
 
void RemoveTarget (osg::Referenced *ptr)
 
uint NumTargets ()
 
virtual void OnKey (int key, int flags)
 
virtual void OnWindowSize (int width, int height)
 

Protected Attributes

bool m_bDrag
 
bool m_bPivot
 
bool m_bZoom
 
IPoint2 m_startpos
 
TerrainPickerm_pTP
 
FPoint3 m_start_wp
 
FMatrix4 m_start_eye
 
float m_fHeight
 

Additional Inherited Members

- Public Attributes inherited from vtLastMouse
int m_buttons
 
IPoint2 m_pos
 
int m_flags
 

Detailed Description

Grab-pivot navigation. Grab the ground to move horizontally, orbit (pivot) the camera around a point on the ground to turn.

Constructor & Destructor Documentation

GrabFlyer::GrabFlyer ( float  fSpeed)

Member Function Documentation

void GrabFlyer::Eval ( )
virtual

Reimplemented from vtTerrainFlyer.

void GrabFlyer::OnMouse ( vtMouseEvent event)
virtual

Reimplemented from vtFlyer.

void GrabFlyer::SetTerrainPicker ( TerrainPicker pTP)
inline

Member Data Documentation

bool GrabFlyer::m_bDrag
protected
bool GrabFlyer::m_bPivot
protected
bool GrabFlyer::m_bZoom
protected
float GrabFlyer::m_fHeight
protected
TerrainPicker* GrabFlyer::m_pTP
protected
FMatrix4 GrabFlyer::m_start_eye
protected
FPoint3 GrabFlyer::m_start_wp
protected
IPoint2 GrabFlyer::m_startpos
protected