closedplayground.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef __CLOSEDPLAYGROUND_H
00025 #define __CLOSEDPLAYGROUND_H
00026
00027
00028 #include "playground.h"
00029
00030 namespace lpzrobots {
00031
00032 class ClosedPlayground : public Playground {
00033
00034 protected:
00035 Box* roof;
00036
00037 public:
00038
00039 ClosedPlayground(const OdeHandle& odeHandle, const OsgHandle& osgHandle ,
00040 const osg::Vec3& dimension = osg::Vec3(7.0, 0.2, 0.5) , double factorxy = 1)
00041 : Playground(odeHandle, osgHandle, dimension, factorxy){
00042 };
00043
00044
00045 protected:
00046 virtual void create(){
00047 Playground::create();
00048 roof = new Box(length + 2 * width , (length * factorlength2) + 2 * width , width);
00049 roof->init(odeHandle, 0, osgHandle, Primitive::Geom | Primitive::Draw);
00050
00051 roof->setPosition(getPos() + osg::Vec3(0,0,height+width/2));
00052 obst.push_back(roof);
00053 };
00054
00055
00056 virtual void destroy(){
00057 Playground::destroy();
00058 }
00059 };
00060
00061 }
00062
00063 #endif