ExampleFrameListener Class Reference

#include <ExampleFrameListener.h>

Inheritance diagram for ExampleFrameListener:

GuiFrameListener List of all members.

Public Member Functions

 ExampleFrameListener (RenderWindow *win, Camera *cam, bool useBufferedInputKeys=false, bool useBufferedInputMouse=false)
virtual ~ExampleFrameListener ()
virtual bool processUnbufferedKeyInput (const FrameEvent &evt)
bool processUnbufferedMouseInput (const FrameEvent &evt)
void moveCamera ()
bool frameStarted (const FrameEvent &evt)
 Override frameStarted event to process that (don't care about frameEnded).
bool frameEnded (const FrameEvent &evt)
void switchMouseMode ()
void switchKeyMode ()
void keyClicked (KeyEvent *e)
void keyPressed (KeyEvent *e)
void keyReleased (KeyEvent *e)

Protected Attributes

int mSceneDetailIndex
Real mMoveSpeed
Degree mRotateSpeed
EventProcessor * mEventProcessor
InputReader * mInputDevice
Camera * mCamera
Vector3 mTranslateVector
RenderWindow * mWindow
bool mStatsOn
bool mUseBufferedInputKeys
bool mUseBufferedInputMouse
bool mInputTypeSwitchingOn
unsigned int mNumScreenShots
float mMoveScale
Degree mRotScale
Real mTimeUntilNextToggle
Radian mRotX
Radian mRotY
TextureFilterOptions mFiltering
int mAniso

Detailed Description

Defines an example frame listener which responds to frame events. This frame listener just moves a specified camera around based on keyboard and mouse movements. Mouse: Freelook W or Up: Forward S or Down:Backward A: Step left D: Step right PgUp: Move upwards PgDown: Move downwards F: Toggle frame rate stats on/off R: Render mode T: Cycle texture filtering Bilinear, Trilinear, Anisotropic(8) P: Toggle on/off display of camera position / orientation


Constructor & Destructor Documentation

ExampleFrameListener::ExampleFrameListener RenderWindow *  win,
Camera *  cam,
bool  useBufferedInputKeys = false,
bool  useBufferedInputMouse = false
[inline]
 

virtual ExampleFrameListener::~ExampleFrameListener  )  [inline, virtual]
 


Member Function Documentation

bool ExampleFrameListener::frameEnded const FrameEvent &  evt  )  [inline]
 

Reimplemented in GuiFrameListener.

bool ExampleFrameListener::frameStarted const FrameEvent &  evt  )  [inline]
 

Override frameStarted event to process that (don't care about frameEnded).

void ExampleFrameListener::keyClicked KeyEvent *  e  )  [inline]
 

Reimplemented in GuiFrameListener.

void ExampleFrameListener::keyPressed KeyEvent *  e  )  [inline]
 

Reimplemented in GuiFrameListener.

void ExampleFrameListener::keyReleased KeyEvent *  e  )  [inline]
 

Reimplemented in GuiFrameListener.

void ExampleFrameListener::moveCamera  )  [inline]
 

virtual bool ExampleFrameListener::processUnbufferedKeyInput const FrameEvent &  evt  )  [inline, virtual]
 

bool ExampleFrameListener::processUnbufferedMouseInput const FrameEvent &  evt  )  [inline]
 

void ExampleFrameListener::switchKeyMode  )  [inline]
 

void ExampleFrameListener::switchMouseMode  )  [inline]
 


Member Data Documentation

int ExampleFrameListener::mAniso [protected]
 

Camera* ExampleFrameListener::mCamera [protected]
 

EventProcessor* ExampleFrameListener::mEventProcessor [protected]
 

TextureFilterOptions ExampleFrameListener::mFiltering [protected]
 

InputReader* ExampleFrameListener::mInputDevice [protected]
 

bool ExampleFrameListener::mInputTypeSwitchingOn [protected]
 

float ExampleFrameListener::mMoveScale [protected]
 

Real ExampleFrameListener::mMoveSpeed [protected]
 

unsigned int ExampleFrameListener::mNumScreenShots [protected]
 

Degree ExampleFrameListener::mRotateSpeed [protected]
 

Degree ExampleFrameListener::mRotScale [protected]
 

Radian ExampleFrameListener::mRotX [protected]
 

Radian ExampleFrameListener::mRotY [protected]
 

int ExampleFrameListener::mSceneDetailIndex [protected]
 

bool ExampleFrameListener::mStatsOn [protected]
 

Real ExampleFrameListener::mTimeUntilNextToggle [protected]
 

Vector3 ExampleFrameListener::mTranslateVector [protected]
 

bool ExampleFrameListener::mUseBufferedInputKeys [protected]
 

bool ExampleFrameListener::mUseBufferedInputMouse [protected]
 

RenderWindow* ExampleFrameListener::mWindow [protected]
 


The documentation for this class was generated from the following file:
Generated on Mon May 29 01:10:34 2006 for Papagan by  doxygen 1.4.6-NO