00001 #ifndef __OBSTACLE_HPP__ 00002 #define __OBSTACLE_HPP__ 00003 00004 #include <string> 00005 #include <iostream> 00006 #include "vector2D.hpp" 00007 #include "sceneConfig.hpp" 00008 00016 class Obstacle { 00017 protected: 00018 Vector2D _bufSrcPoint; //< punkt odniesienia */ 00019 double _bufSrcOrient; //< orientacja z pktu odniesienia */ 00020 Vector2D _bufRetPoint; //< punkt przeciecia */ 00021 SceneConfig _cfg; //< konfiguracja, parametry symulacji */ 00022 00023 std::string _type; //< rodzaj przeszkody (nazwa fig. geom) */ 00024 public: 00028 Obstacle(); 00029 00034 std::string getType(); 00035 00039 void setConfig(SceneConfig &cfg); 00040 00041 00050 virtual Vector2D getCross(Vector2D &vec, double orient); 00051 00060 virtual double getAngle(Vector2D &vec, double orient); 00061 00062 00063 }; 00064 00065 #endif 00066