PlayBoxGraphics Class Reference

Graphical properties of a play box (abstract class). More...

#include <play_box_graphics.h>

Inheritance diagram for PlayBoxGraphics:

TimeUpdateable GraphicalNode BasicPlayBoxGraphics TunnelPlayBoxGraphics

List of all members.

Public Member Functions

 PlayBoxGraphics ()
 Default constructor.
virtual ~PlayBoxGraphics ()
 Destructor.
virtual void moveWall (float newOffset)
 A method to be called when the wall offset changes.

Protected Attributes

SoTranslation * _wallTranslation
 The translation of the back wall.

Private Member Functions

 PlayBoxGraphics (const PlayBoxGraphics &)
PlayBoxGraphicsoperator= (const PlayBoxGraphics &)
virtual SoGroup * createWalls ()=0
 A virtual method that creates walls.
virtual SoGroup * createBackWall ()=0
 A virtual method that creates the back wall.


Detailed Description

Graphical properties of a play box (abstract class).

Reference object (cannot be copied).


Constructor & Destructor Documentation

PlayBoxGraphics::PlayBoxGraphics ( const PlayBoxGraphics  )  [private]

PlayBoxGraphics::PlayBoxGraphics (  ) 

Default constructor.

virtual PlayBoxGraphics::~PlayBoxGraphics (  )  [virtual]

Destructor.


Member Function Documentation

PlayBoxGraphics& PlayBoxGraphics::operator= ( const PlayBoxGraphics  )  [private]

virtual SoGroup* PlayBoxGraphics::createWalls (  )  [private, pure 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.

Returns:
SoGroup with play box walls

Implemented in BasicPlayBoxGraphics, and TunnelPlayBoxGraphics.

virtual SoGroup* PlayBoxGraphics::createBackWall (  )  [private, pure 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.

Returns:
SoGroup with back wall

Implemented in BasicPlayBoxGraphics, and TunnelPlayBoxGraphics.

virtual void PlayBoxGraphics::moveWall ( float  newOffset  )  [virtual]

A method to be called when the wall offset changes.

This method is to be called from PlayField when the wall offset changes. The argument denotes the new offset of the wall.

Parameters:
[in] newOffset The new offset of the wall


Member Data Documentation

SoTranslation* PlayBoxGraphics::_wallTranslation [protected]

The translation of the back wall.


The documentation for this class was generated from the following file:

Generated on Sat Dec 20 19:21:24 2008 for PGR2008 by  doxygen 1.5.6