#include <Presenter.h>
Inheritance diagram for random_racer::Presenter:

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 |
Definition at line 27 of file Presenter.h.
| random_racer::Presenter::Presenter | ( | VRS::SO< VRS::Canvas > | canvas | ) |
Ctor.
| random_racer::Presenter::~Presenter | ( | ) | [virtual] |
| 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] |
| void random_racer::Presenter::keyEvent | ( | VRS::SO< VRS::KeyEvent > | p_event | ) | [private] |
| 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:

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] |
VRS::SO<VRS::Scaling> random_racer::Presenter::m_scaling [private] |
VRS::SO<VRS::Texture2DGL> random_racer::Presenter::m_texture [private] |
VRS::SO<VRS::Texture2DGL> random_racer::Presenter::m_texture2 [private] |
VRS::SO<VRS::BehaviorCallback> random_racer::Presenter::m_eventCallback [private] |
VRS::SO<VRS::Canvas> random_racer::Presenter::m_canvas [private] |
bool random_racer::Presenter::m_hide [private] |
bool random_racer::Presenter::m_start [private] |
bool random_racer::Presenter::m_show [private] |
bool random_racer::Presenter::m_switch [private] |
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] |
bool random_racer::Presenter::m_isFull [private] |
bool random_racer::Presenter::m_first [private] |
const float random_racer::Presenter::c_maxScaling [static, private] |
const float random_racer::Presenter::c_hideTrans [static, private] |
const float random_racer::Presenter::c_startTrans [static, private] |
unsigned int random_racer::Presenter::m_slideCount [private] |
1.5.1