00001 #ifndef PLAYGROUNDSCENE_H
00002 #define PLAYGROUNDSCENE_H
00003
00004 #include <QGraphicsScene>
00005
00009 class PlaygroundScene : public QGraphicsScene
00010 {
00011 Q_OBJECT
00012 public:
00013 PlaygroundScene(QObject *parent = 0);
00014
00015 ~PlaygroundScene();
00016 virtual void mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent);
00017 static QPointF scene2world(QPointF scenePos);
00018 static QPointF world2scene(QPointF worldPos);
00019
00020 signals:
00021 void obstacleChanged(QPointF pos);
00022 private:
00023 QGraphicsEllipseItem *obstacle;
00024 public slots:
00025 void showObstacle(int val);
00026 };
00027
00028 #endif