BrainTrain
 All Classes Namespaces Files Functions Variables Macros Pages
brtr::ControlRoom Class Reference

Control Room Class, derived from PositionAttitudeTransform, set ups the whole room as its own children. More...

#include <ControlRoom.h>

Inheritance diagram for brtr::ControlRoom:

Public Member Functions

 ControlRoom (double roomSize, int lod, brtr::ToonTexSwitcherCallback &toonCallback, brtr::ProgramSwitcherCallback &programCallback)
 Constructor. More...
 

Protected Member Functions

 ~ControlRoom ()
 

Private Member Functions

osg::ref_ptr< osg::Group > createRoomSurrounding (double roomSize, int lod)
 
osg::ref_ptr< osg::Group > createChessFigures (brtr::ToonTexSwitcherCallback &toonCallback, brtr::ProgramSwitcherCallback &programCallback)
 
osg::ref_ptr< osg::Material > createMaterial (osg::Vec4 diffuse, osg::Vec4 ambient, osg::Vec4 specular=osg::Vec4(0.7, 0.7, 0.7, 1), double shininess=42.0)
 

Detailed Description

Control Room Class, derived from PositionAttitudeTransform, set ups the whole room as its own children.

sets always a light as light0, client should not use this light number any more the chess figures alongside with the provided interactioncallbacks are also set up

Author
Gleb Ostrowski
Version
1.0
Date
2014

Definition at line 18 of file ControlRoom.h.

Constructor & Destructor Documentation

brtr::ControlRoom::ControlRoom ( double  roomSize,
int  lod,
brtr::ToonTexSwitcherCallback toonCallback,
brtr::ProgramSwitcherCallback programCallback 
)

Constructor.

Parameters
roomSizesize of the room, height is roomsize/2
lodlevel of detail, the higher the more triangles are created
toonCallbackToonTexSwitcherCallback, will be attached to first chess figure
programCallbackProgramSwitcherCallback, will be attached to third chess figure

Definition at line 13 of file ControlRoom.cpp.

brtr::ControlRoom::~ControlRoom ( )
inlineprotected

Definition at line 31 of file ControlRoom.h.

Member Function Documentation

ref_ptr< Group > brtr::ControlRoom::createChessFigures ( brtr::ToonTexSwitcherCallback toonCallback,
brtr::ProgramSwitcherCallback programCallback 
)
private

Definition at line 100 of file ControlRoom.cpp.

ref_ptr< Material > brtr::ControlRoom::createMaterial ( osg::Vec4  diffuse,
osg::Vec4  ambient,
osg::Vec4  specular = osg::Vec4(0.7,0.7,0.7,1),
double  shininess = 42.0 
)
private

Definition at line 145 of file ControlRoom.cpp.

ref_ptr< Group > brtr::ControlRoom::createRoomSurrounding ( double  roomSize,
int  lod 
)
private

Definition at line 26 of file ControlRoom.cpp.


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