24 #ifndef __ABSTRACTGROUND_H
25 #define __ABSTRACTGROUND_H
29 #include <selforg/position.h>
52 virtual void changeGeometry(
double length,
double width,
double height,
double factorxy);
virtual void setGroundTexture(const std::string &filename)
assigns the texture to the object
Definition: abstractground.cpp:84
Data structure for accessing the ODE.
Definition: odehandle.h:44
OsgHandle osgHandle
Definition: abstractobstacle.h:174
Physical substance definition, used for collision detection/treatment What we need is mu...
Definition: substance.h:103
virtual ~AbstractGround()
Definition: abstractground.cpp:51
std::string groundTextureFileName
Definition: abstractground.h:101
Abstract class (interface) for obstacles.
Definition: abstractobstacle.h:46
Matrixd Matrix
Definition: osgforwarddecl.h:47
virtual void setGroundThickness(double thickness)
Definition: abstractground.cpp:118
Substance groundSubstance
Definition: abstractground.h:99
OdeHandle odeHandle
Definition: abstractobstacle.h:173
virtual double getGroundWidth()
size in y dimension
Definition: abstractground.h:85
virtual void create()=0
overload this function to create the obstactle. All primitives should go into the list "obst" ...
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
virtual void createGround()
Definition: abstractground.cpp:123
virtual void changeGeometry(double length, double width, double height, double factorxy)
Definition: abstractground.cpp:73
virtual void setPose(const osg::Matrix &pose)
sets position of the obstacle and creates/recreates obstacle if necessary
Definition: abstractground.cpp:55
double groundLength
Definition: abstractground.h:95
double groundWidth
Definition: abstractground.h:96
Interface class for primitives represented in the physical and graphical world.
Definition: primitive.h:80
virtual void setGroundSubstance(const Substance &substance)
sets the substance of the ground.
Definition: abstractground.cpp:111
virtual void setGroundColor(const Color &color)
sets the ground color should be called before setPosition()
Definition: abstractground.cpp:100
osg::Matrix pose
Definition: abstractobstacle.h:170
virtual double getGroundLength()
size in x dimension
Definition: abstractground.h:83
virtual Primitive * getMainPrimitive() const
return the "main" primitive of the obtactle. The meaning of "main" is arbitrary
Definition: abstractground.cpp:78
bool creategroundPlane
Definition: abstractground.h:94
AbstractGround(const OdeHandle &odeHandle, const OsgHandle &osgHandle, bool createGround, double groundLength, double groundWidth, double wallThickness)
Definition: abstractground.cpp:36
virtual void printContours(FILE *f)
prints the contour of the boxes into the file
Definition: abstractground.cpp:160
virtual std::list< Position > getCornerPointsXY()
returns the corner points of the groundplane
Definition: abstractground.cpp:171
Color groundColor
Definition: abstractground.h:100
Definition: abstractground.h:36
double groundThickness
Definition: abstractground.h:98
double wallThickness
Definition: abstractground.h:97
virtual double getGroundThickness()
Definition: abstractground.h:87
Primitive * groundPlane
Definition: abstractground.h:93