27 #include <ode-dbl/ode.h>
28 #include <osg/Transform>
29 #include <osgText/Text>
35 #include <selforg/configurable.h>
57 :fontSizeTime(fontSizeTime), fontSizeText(fontSizeText), fontColor(fontColor) {
67 Base(
const std::string&
caption=
"LpzRobots Simulator (Martius et al)");
94 virtual osgShadow::ShadowedScene*
createShadowedScene(osg::Node* sceneToShadow, osg::LightSource* lightSource,
int shadowType);
125 virtual void setTimeStats(
double time,
double realtimefactor,
126 double truerealtimefactor,
bool pause);
179 static int contains(
char **list,
int len,
const char *str);
Data structure for accessing the ODE.
Definition: odehandle.h:44
osgText::Text * timestats
Definition: base.h:157
Physical substance definition, used for collision detection/treatment What we need is mu...
Definition: substance.h:103
virtual void setGroundTexture(const char *filename)
Definition: base.h:96
virtual void makeLights(osg::Group *node, const OsgConfig &config)
adds light to the node
Definition: base.cpp:749
virtual void makeScene(OsgScene *scene, const OsgConfig &config)
creates the base scene graph with world, sky and floor and shadow and HUD and stores it in scene ...
Definition: base.cpp:451
std::string fontColor
Definition: base.h:61
Matrixd Matrix
Definition: osgforwarddecl.h:47
virtual void setCaption(const std::string &caption)
sets the cpation that is printed at the right of the status line
Definition: base.cpp:437
virtual HUDStatisticsManager * getHUDSM()
Create HUDStatisticsManager and register it for being called back every step.
Definition: base.cpp:403
virtual ~Base()
Definition: base.cpp:115
osg::Node * hud
Definition: base.h:156
osg::Group * dummy
Definition: base.h:154
virtual osg::Node * makeSky(const OsgConfig &config)
Definition: base.cpp:538
StatLineProperties(int fontSizeTime, int fontSizeText, const std::string &fontColor)
Definition: base.h:56
int CastsShadowTraversalMask
Definition: base.h:168
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
virtual void setTimeStats(double time, double realtimefactor, double truerealtimefactor, bool pause)
Definition: base.cpp:415
manages all the stuff displaying statistics on the graphics window.
Definition: hudstatistics.h:60
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
Definition: base.cpp:893
std::string title
Definition: base.h:151
int shadowTexSize
Definition: base.h:172
virtual osgShadow::ShadowedScene * createShadowedScene(osg::Node *sceneToShadow, osg::LightSource *lightSource, int shadowType)
Shadow types: 1 - ShadowVolume 2 - ShadowTextue 3 - ParallelSplitShadowMap 4 - SoftShadowMap 5 - Shad...
Definition: base.cpp:132
virtual osg::Node * createHUD(OsgScene *scene, const OsgConfig &config)
creates hud and is supposed to return the camera to it and adds the geode of the hud to the scene ...
Definition: base.cpp:280
virtual void makePhysicsScene()
create the ground plane
Definition: base.cpp:642
int fontSizeTime
Definition: base.h:59
Interface class for primitives represented in the physical and graphical world.
Definition: primitive.h:80
osgText::Text * titleline
Definition: base.h:159
Abstact class for configurable objects.
Definition: configurable.h:81
bool useNVidia
Definition: base.h:173
virtual void setStatLineProperties(const StatLineProperties &statlineprop)
sets the properties of the status line, do it before the scene is initialized
Definition: base.h:111
StatLineProperties statlineprop
Definition: base.h:160
virtual void changeShadowTechnique()
Changes the currently used shadow technique.
Definition: base.cpp:835
Base(const std::string &caption="LpzRobots Simulator (Martius et al)")
Definition: base.cpp:103
int fontSizeText
Definition: base.h:60
std::string groundTexture
Definition: base.h:152
virtual Substance getGroundSubstance()
Definition: base.cpp:653
HUDStatisticsManager * hUDStatisticsManager
this manager provides methods for displaying statistics on the graphical window!
Definition: base.h:165
virtual void setTitle(const std::string &title)
sets the title that is printed in the center of the status line
Definition: base.cpp:444
virtual StatLineProperties getStatLineProperties()
Definition: base.h:109
virtual osg::Node * makeGround(const OsgConfig &config)
Definition: base.cpp:663
static const int PHYSICS_CALLBACKABLE
called each ode/physics step
Definition: base.h:69
OdeHandle odeHandle
Definition: base.h:149
virtual void base_close()
deletes the stuff that is created on makescene and the like
Definition: base.cpp:118
virtual void createHUDManager(osg::Geode *geode, osgText::Font *font)
Definition: base.cpp:395
dGeomID ground
Definition: base.h:144
OsgHandle osgHandle
Definition: base.h:147
int ReceivesShadowTraversalMask
Definition: base.h:167
Data structure containing some configuration variables for OSG.
Definition: osghandle.h:41
Data structure containing the scene notes (e.g.
Definition: osghandle.h:53
static const int GRAPHICS_CALLBACKABLE
called each osg/draw step
Definition: base.h:70
Primitive * plane
Definition: base.h:162
std::string caption
Definition: base.h:150
osgText::Text * captionline
Definition: base.h:158
virtual void setGroundSubstance(const Substance &substance)
Definition: base.cpp:658