random_racer::Presenter Class Reference

#include <Presenter.h>

Inheritance diagram for random_racer::Presenter:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Presenter (VRS::SO< VRS::Canvas > canvas)
 Ctor.
virtual ~Presenter ()
 Dtor.
void startPresentation ()
void show ()
void hide ()
void switchSlide ()

Private Member Functions

virtual void timerTick ()
 This is the method the timer calls and which fades out the text periodically.
void resizeEvent (VRS::SO< VRS::ResizeEvent > p_event)
void keyEvent (VRS::SO< VRS::KeyEvent > p_event)
void handleEvents ()
bool isVisible ()
void toggleVisibility ()
void startAnimation ()
void fullscreen ()
void switchTexture (unsigned int image)

Private Attributes

VRS::SO< VRS::SceneThing > m_thing
VRS::SO< VRS::Camera > m_cam
VRS::SO< VRS::Box > m_box
VRS::SO< VRS::Translation > m_translation
VRS::SO< VRS::Scaling > m_scaling
VRS::SO< VRS::Texture2DGL > m_texture
VRS::SO< VRS::Texture2DGL > m_texture2
VRS::SO< VRS::BehaviorCallback > m_eventCallback
VRS::SO< VRS::Canvas > m_canvas
bool m_hide
bool m_start
bool m_show
bool m_switch
bool m_animation
bool m_full
bool m_isFull
bool m_first
unsigned int m_slideCount

Static Private Attributes

static const float c_maxScaling
static const float c_hideTrans
static const float c_startTrans

Detailed Description

Definition at line 27 of file Presenter.h.


Constructor & Destructor Documentation

random_racer::Presenter::Presenter ( VRS::SO< VRS::Canvas >  canvas  ) 

Ctor.

random_racer::Presenter::~Presenter (  )  [virtual]

Dtor.

Definition at line 75 of file Presenter.cpp.


Member Function Documentation

void random_racer::Presenter::timerTick (  )  [private, virtual]

This is the method the timer calls and which fades out the text periodically.

Implements random_utils::TimeableObject.

Definition at line 227 of file Presenter.cpp.

References c_hideTrans, c_maxScaling, c_startTrans, m_animation, m_first, m_full, m_hide, m_isFull, m_scaling, m_show, m_slideCount, m_start, m_switch, m_thing, m_translation, random_utils::TimeableObject::stopTimer(), and switchTexture().

Here is the call graph for this function:

void random_racer::Presenter::resizeEvent ( VRS::SO< VRS::ResizeEvent >  p_event  )  [private]

Referenced by handleEvents().

Here is the caller graph for this function:

void random_racer::Presenter::keyEvent ( VRS::SO< VRS::KeyEvent >  p_event  )  [private]

Referenced by handleEvents().

Here is the caller graph for this function:

void random_racer::Presenter::handleEvents (  )  [private]

Definition at line 127 of file Presenter.cpp.

References keyEvent(), m_canvas, m_eventCallback, and resizeEvent().

Here is the call graph for this function:

bool random_racer::Presenter::isVisible (  )  [private]

Definition at line 121 of file Presenter.cpp.

References m_animation, and m_thing.

Referenced by toggleVisibility().

Here is the caller graph for this function:

void random_racer::Presenter::toggleVisibility (  )  [private]

Definition at line 112 of file Presenter.cpp.

References hide(), isVisible(), and show().

Here is the call graph for this function:

void random_racer::Presenter::startAnimation (  )  [private]

Definition at line 146 of file Presenter.cpp.

References m_animation, and random_utils::TimeableObject::startTimer().

Referenced by fullscreen(), hide(), show(), startPresentation(), and switchSlide().

Here is the call graph for this function:

Here is the caller graph for this function:

void random_racer::Presenter::fullscreen (  )  [private]

Definition at line 201 of file Presenter.cpp.

References m_full, m_isFull, and startAnimation().

Here is the call graph for this function:

void random_racer::Presenter::switchTexture ( unsigned int  image  )  [private]

Definition at line 211 of file Presenter.cpp.

References random_racer::ResourceManager::get(), m_texture, m_texture2, and m_thing.

Referenced by timerTick().

Here is the call graph for this function:

Here is the caller graph for this function:

void random_racer::Presenter::startPresentation (  ) 

Definition at line 154 of file Presenter.cpp.

References random_racer::Console::get(), m_canvas, m_eventCallback, m_start, m_thing, and startAnimation().

Here is the call graph for this function:

void random_racer::Presenter::show (  ) 

Definition at line 170 of file Presenter.cpp.

References m_show, m_thing, and startAnimation().

Referenced by toggleVisibility().

Here is the call graph for this function:

Here is the caller graph for this function:

void random_racer::Presenter::hide (  ) 

Definition at line 181 of file Presenter.cpp.

References m_hide, and startAnimation().

Referenced by toggleVisibility().

Here is the call graph for this function:

Here is the caller graph for this function:

void random_racer::Presenter::switchSlide (  ) 

Definition at line 189 of file Presenter.cpp.

References m_slideCount, m_switch, and startAnimation().

Here is the call graph for this function:


Member Data Documentation

VRS::SO<VRS::SceneThing> random_racer::Presenter::m_thing [private]

Definition at line 30 of file Presenter.h.

Referenced by isVisible(), show(), startPresentation(), switchTexture(), and timerTick().

VRS::SO<VRS::Camera> random_racer::Presenter::m_cam [private]

Definition at line 31 of file Presenter.h.

VRS::SO<VRS::Box> random_racer::Presenter::m_box [private]

Definition at line 32 of file Presenter.h.

VRS::SO<VRS::Translation> random_racer::Presenter::m_translation [private]

Definition at line 33 of file Presenter.h.

Referenced by timerTick().

VRS::SO<VRS::Scaling> random_racer::Presenter::m_scaling [private]

Definition at line 34 of file Presenter.h.

Referenced by timerTick().

VRS::SO<VRS::Texture2DGL> random_racer::Presenter::m_texture [private]

Definition at line 35 of file Presenter.h.

Referenced by switchTexture().

VRS::SO<VRS::Texture2DGL> random_racer::Presenter::m_texture2 [private]

Definition at line 36 of file Presenter.h.

Referenced by switchTexture().

VRS::SO<VRS::BehaviorCallback> random_racer::Presenter::m_eventCallback [private]

Definition at line 37 of file Presenter.h.

Referenced by handleEvents(), and startPresentation().

VRS::SO<VRS::Canvas> random_racer::Presenter::m_canvas [private]

Definition at line 38 of file Presenter.h.

Referenced by handleEvents(), and startPresentation().

bool random_racer::Presenter::m_hide [private]

Definition at line 41 of file Presenter.h.

Referenced by hide(), and timerTick().

bool random_racer::Presenter::m_start [private]

Definition at line 41 of file Presenter.h.

Referenced by startPresentation(), and timerTick().

bool random_racer::Presenter::m_show [private]

Definition at line 41 of file Presenter.h.

Referenced by show(), and timerTick().

bool random_racer::Presenter::m_switch [private]

Definition at line 41 of file Presenter.h.

Referenced by switchSlide(), and timerTick().

bool random_racer::Presenter::m_animation [private]

Definition at line 41 of file Presenter.h.

Referenced by isVisible(), startAnimation(), and timerTick().

bool random_racer::Presenter::m_full [private]

Definition at line 41 of file Presenter.h.

Referenced by fullscreen(), and timerTick().

bool random_racer::Presenter::m_isFull [private]

Definition at line 41 of file Presenter.h.

Referenced by fullscreen(), and timerTick().

bool random_racer::Presenter::m_first [private]

Definition at line 41 of file Presenter.h.

Referenced by timerTick().

const float random_racer::Presenter::c_maxScaling [static, private]

Definition at line 43 of file Presenter.h.

Referenced by timerTick().

const float random_racer::Presenter::c_hideTrans [static, private]

Definition at line 43 of file Presenter.h.

Referenced by timerTick().

const float random_racer::Presenter::c_startTrans [static, private]

Definition at line 43 of file Presenter.h.

Referenced by timerTick().

unsigned int random_racer::Presenter::m_slideCount [private]

Definition at line 45 of file Presenter.h.

Referenced by switchSlide(), and timerTick().


The documentation for this class was generated from the following files:
Generated on Fri May 11 21:02:12 2007 for Random Racer by  doxygen 1.5.1