21 #ifndef GLOVERVIEWGRAPHICSITEM_H
22 #define GLOVERVIEWGRAPHICSITEM_H
25 #include <QtGui/QGraphicsPixmapItem>
26 #include <QtOpenGL/QGLFramebufferObject>
27 #include <tulip/GlScene.h>
33 class GlOverviewGraphicsItem :
public QObject,
public QGraphicsRectItem {
39 GlOverviewGraphicsItem(GlMainView *view,GlScene &scene);
40 ~GlOverviewGraphicsItem();
42 void setSize(
unsigned int width,
unsigned int height);
44 void setLayerVisible(
const std::string &name,
bool visible);
48 void draw(
bool generatePixmap);
52 void mousePressEvent(QGraphicsSceneMouseEvent* event);
53 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);
54 void mouseMoveEvent(QGraphicsSceneMouseEvent* event);
55 void setScenePosition(QPointF pos);
60 unsigned int width, height;
61 QGLFramebufferObject *glFrameBuffer;
63 QGraphicsPixmapItem overview;
64 QGraphicsLineItem line[4];
65 QGraphicsPolygonItem poly[4];
69 std::set<std::string> _hiddenLayers;
71 static std::map<std::pair<int,int>,QGLFramebufferObject*> framebufferObjects;
73 std::vector<Camera> _oldCameras;
79 #endif // GLOVERVIEWGRAPHICSITEM_H