#include <tunnel_play_box_graphics.h>
Public Member Functions | |
TunnelPlayBoxGraphics () | |
Default constructor. | |
virtual | ~TunnelPlayBoxGraphics () |
Destructor. | |
virtual void | timeUpdate (float dt) |
Timer value change event occured. | |
Private Member Functions | |
TunnelPlayBoxGraphics (const TunnelPlayBoxGraphics &) | |
TunnelPlayBoxGraphics & | operator= (const TunnelPlayBoxGraphics &) |
virtual SoGroup * | createWalls () |
A virtual method that creates walls. | |
virtual SoGroup * | createBackWall () |
A virtual method that creates the back wall. | |
Private Attributes | |
SoTextureCoordinate2 * | _textureCoord |
The coordinates of the wall texture. | |
float | _textureOffset |
Offset of the wall texture. | |
Static Private Attributes | |
static const SbColor4f | TUNNEL_COLOUR_START |
The start colour of the tunnel wall. | |
static const SbColor4f | TUNNEL_COLOUR_END |
The end colour of the tunnel wall. |
The graphics representation of the play box that resembles tunnel. Reference object (cannot be copied).
TunnelPlayBoxGraphics::TunnelPlayBoxGraphics | ( | const TunnelPlayBoxGraphics & | ) | [private] |
TunnelPlayBoxGraphics::TunnelPlayBoxGraphics | ( | ) |
Default constructor.
virtual TunnelPlayBoxGraphics::~TunnelPlayBoxGraphics | ( | ) | [virtual] |
Destructor.
TunnelPlayBoxGraphics& TunnelPlayBoxGraphics::operator= | ( | const TunnelPlayBoxGraphics & | ) | [private] |
virtual SoGroup* TunnelPlayBoxGraphics::createWalls | ( | ) | [private, virtual] |
A virtual method that creates walls.
This methods creates the four PlayBoxGraphics side walls. It is to be overriden by each descendant of this abstract class.
Implements PlayBoxGraphics.
virtual SoGroup* TunnelPlayBoxGraphics::createBackWall | ( | ) | [private, virtual] |
A virtual method that creates the back wall.
This methods creates the back wall of the PlayBoxGraphics. It is to be overriden by each descendant of this abstract class.
Implements PlayBoxGraphics.
virtual void TunnelPlayBoxGraphics::timeUpdate | ( | float | dt | ) | [virtual] |
Timer value change event occured.
This method is called on each timer value change.
[in] | dt | Time difference between the last call (delta). |
Implements TimeUpdateable.
const SbColor4f TunnelPlayBoxGraphics::TUNNEL_COLOUR_START [static, private] |
The start colour of the tunnel wall.
const SbColor4f TunnelPlayBoxGraphics::TUNNEL_COLOUR_END [static, private] |
The end colour of the tunnel wall.
SoTextureCoordinate2* TunnelPlayBoxGraphics::_textureCoord [private] |
The coordinates of the wall texture.
float TunnelPlayBoxGraphics::_textureOffset [private] |
Offset of the wall texture.