#include <base.h>
Inherits BackCaller.
Inherited by Simulation.
Public Member Functions | |
Base (const std::string &caption="lpzrobots Simulator Martius, Der, Guettler") | |
virtual void | makePhysicsScene () |
create the ground plane | |
virtual void | makeScene (OsgScene *scene) |
creates the base scene graph with world, sky and floor and shadow and HUD and stores it in scene | |
virtual osg::Node * | makeSky () |
virtual osg::Node * | makeGround () |
virtual osg::Node * | createHUD () |
virtual void | createHUDManager (osg::Geode *geode, osgText::Font *font) |
virtual osg::LightSource * | makeLights (osg::StateSet *stateset) |
virtual osgShadow::ShadowedScene * | createShadowedScene (osg::Node *sceneToShadow, osg::LightSource *lightSource, int shadowType) |
Shadow types: 1 - ShadowVolume 2 - ShadowTextue 3 - ParallelSplitShadowMap 4 - SoftShadowMap 5 - ShadowMap. | |
virtual void | setGroundTexture (const char *filename) |
virtual void | setCaption (const std::string &caption) |
virtual HUDStatisticsManager * | getHUDSM () |
Create HUDStatisticsManager and register it for being called back every step. | |
virtual | ~Base () |
Static Public Member Functions | |
static int | contains (char **list, int len, const char *str) |
returns the index+1 if the list contains the given string or 0 if not | |
Static Public Attributes | |
static const int | PHYSICS_CALLBACKABLE = 1 |
called each ode/physics step | |
static const int | GRAPHICS_CALLBACKABLE = 2 |
called each osg/draw step | |
Protected Member Functions | |
virtual void | setTimeStats (double time, double realtimefactor, double truerealtimefactor, bool pause) |
virtual void | changeShadowTechnique () |
Changes the currently used shadow technique. | |
virtual void | base_close () |
deletes the stuff that is created on makescene and the like | |
Protected Attributes | |
dGeomID | ground |
OsgHandle | osgHandle |
OdeHandle | odeHandle |
std::string | caption |
std::string | groundTexture |
osg::Group * | dummy |
osg::Node * | hud |
osgText::Text * | timestats |
osgText::Text * | captionline |
osgText::Text * | statisticLine |
Primitive * | plane |
HUDStatisticsManager * | hUDStatisticsManager |
this manager provides methods for displaying statistics on the graphical window! | |
std::list< Callbackable * > | graphicsCallbackables |
std::vector< Callbackable * > | physicsCallbackables |
int | ReceivesShadowTraversalMask |
int | CastsShadowTraversalMask |
int | shadowTexSize |
bool | useNVidia |
Base | ( | const std::string & | caption = "lpzrobots Simulator Martius, Der, Guettler" |
) |
~Base | ( | ) | [virtual] |
void base_close | ( | ) | [protected, virtual] |
deletes the stuff that is created on makescene and the like
void changeShadowTechnique | ( | ) | [protected, virtual] |
Changes the currently used shadow technique.
The switch is realized between: 0 - NoShadow 3 - ParallelSplitShadowMap 4 - SoftShadowMap 5 - ShadowMap (simple) Currently not supported by this function: 1 - ShadowVolume 2 - ShadowTextue
int contains | ( | char ** | list, | |
int | len, | |||
const char * | str | |||
) | [static] |
returns the index+1 if the list contains the given string or 0 if not
osg::Node * createHUD | ( | ) | [virtual] |
void createHUDManager | ( | osg::Geode * | geode, | |
osgText::Font * | font | |||
) | [virtual] |
virtual osgShadow::ShadowedScene* createShadowedScene | ( | osg::Node * | sceneToShadow, | |
osg::LightSource * | lightSource, | |||
int | shadowType | |||
) | [virtual] |
Shadow types: 1 - ShadowVolume 2 - ShadowTextue 3 - ParallelSplitShadowMap 4 - SoftShadowMap 5 - ShadowMap.
HUDStatisticsManager * getHUDSM | ( | ) | [virtual] |
Create HUDStatisticsManager and register it for being called back every step.
But do not display if the system is initialised with -nographics.
Node * makeGround | ( | ) | [virtual] |
osg::LightSource * makeLights | ( | osg::StateSet * | stateset | ) | [virtual] |
void makePhysicsScene | ( | ) | [virtual] |
create the ground plane
void makeScene | ( | OsgScene * | scene | ) | [virtual] |
creates the base scene graph with world, sky and floor and shadow and HUD and stores it in scene
Node * makeSky | ( | ) | [virtual] |
void setCaption | ( | const std::string & | caption | ) | [virtual] |
virtual void setGroundTexture | ( | const char * | filename | ) | [inline, virtual] |
void setTimeStats | ( | double | time, | |
double | realtimefactor, | |||
double | truerealtimefactor, | |||
bool | pause | |||
) | [protected, virtual] |
std::string caption [protected] |
osgText::Text* captionline [protected] |
int CastsShadowTraversalMask [protected] |
osg::Group* dummy [protected] |
const int GRAPHICS_CALLBACKABLE = 2 [static] |
called each osg/draw step
std::list<Callbackable*> graphicsCallbackables [protected] |
dGeomID ground [protected] |
std::string groundTexture [protected] |
osg::Node* hud [protected] |
HUDStatisticsManager* hUDStatisticsManager [protected] |
this manager provides methods for displaying statistics on the graphical window!
const int PHYSICS_CALLBACKABLE = 1 [static] |
called each ode/physics step
std::vector<Callbackable*> physicsCallbackables [protected] |
int ReceivesShadowTraversalMask [protected] |
int shadowTexSize [protected] |
osgText::Text* statisticLine [protected] |
osgText::Text* timestats [protected] |
bool useNVidia [protected] |