00001
00002
00003
00004
00005
00006
00007 #ifndef GHOSTS_H
00008 #define GHOSTS_H
00009
00010 #include "GhostEllipse.h"
00011 #include "GhostPath.h"
00012 #include "GhostPolygon.h"
00013 #include <QList>
00014 #include <QPainterPath>
00015 #include <QPolygonF>
00016 #include <QRectF>
00017
00018 class QGraphicsScene;
00019
00026 class Ghosts
00027 {
00028 public:
00030 Ghosts(unsigned int coordSystemIndexToBeRestored);
00031 ~Ghosts();
00032
00034 unsigned int coordSystemIndexToBeRestored() const;
00035
00037 void captureGraphicsItems (QGraphicsScene &scene);
00038
00040 void createGhosts (QGraphicsScene &scene);
00041
00043 void destroyGhosts (QGraphicsScene &scene);
00044
00045 private:
00046 Ghosts();
00047
00048 unsigned int m_coordSystemIndexToBeRestored;
00049
00050 QList<GhostEllipse> m_ellipses;
00051 QList<GhostPath> m_paths;
00052 QList<GhostPolygon> m_polygons;
00053 };
00054
00055 #endif // GHOSTS_H