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

- File List
- File Members

# src/sim/SimulationObject.h

Go to the documentation of this file.

    00001 #ifndef SIMULATIONOBJECT_H_
    00002 #define SIMULATIONOBJECT_H_
    00003
    00004 #include <string>
    00005
    00006 #include "../config.h"
    00007 #include <ode/ode.h>
    00008
    00013 class SimulationObject {
    00014 public:
    00015     SimulationObject();
    00016     virtual ~SimulationObject();
    00017
    00018     static void setWorldID(dWorldID id);
    00019     static void setSpaceID(dSpaceID id);
    00020
    00021     int getID() const { return _id; };
    00022     dWorldID getWorldID() const { return SimulationObject::_worldID; };
    00023     dSpaceID getSpaceID() const { return SimulationObject::_spaceID; };
    00024     virtual std::string toString() const = 0;
    00025
    00026 private:
    00028     int _id;
    00030     static dWorldID _worldID;
    00032     static dSpaceID _spaceID;
    00034     static int _nextID;
    00035 };
    00036
    00037 #endif /*SIMULATIONOBJECT_H_*/