- Main Page
- Modules
- Classes
- Files
- Related Pages

- File List
- File Members

# src/sim/FixedSimulationObject.h

Go to the documentation of this file.

    00001 #ifndef FIXEDSIMULATIONOBJECT_H_
    00002 #define FIXEDSIMULATIONOBJECT_H_
    00003
    00004 #include "../config.h"
    00005 #include <ode/ode.h>
    00006 #include "SimulationObject.h"
    00007 #include "../iface/Visualized.h"
    00008
    00013 class FixedSimulationObject: public SimulationObject, public Visualized {
    00014 public:
    00022     FixedSimulationObject(const dVector3 size, const dVector3 pos, const dReal direction, const dReal weight = dInfinity);
    00023     virtual ~FixedSimulationObject();
    00024
    00029     void setCollisionSpace(dSpaceID space) { dSpaceAdd(space, _geom); };
    00033     void removeCollisionSpace(dSpaceID space) { dSpaceRemove(space, _geom); };
    00034
    00035     virtual void visualize() = 0;
    00036
    00037 protected:
    00041     dGeomID _geom;
    00045     dBodyID _body;
    00049     dVector3 _size;
    00050 };
    00051
    00052 #endif /*FIXEDSIMULATIONOBJECT_H_*/