21 #ifndef GLOVERVIEWGRAPHICSITEM_H
22 #define GLOVERVIEWGRAPHICSITEM_H
24 #include <tulip/tulipconf.h>
25 #include <tulip/Camera.h>
27 #include <QGraphicsPixmapItem>
31 class QGLFramebufferObject;
38 class TLP_QT_SCOPE GlOverviewGraphicsItem :
public QObject,
public QGraphicsRectItem {
44 GlOverviewGraphicsItem(GlMainView *view,GlScene &scene);
45 ~GlOverviewGraphicsItem();
47 void setSize(
unsigned int width,
unsigned int height);
48 inline unsigned int getWidth() {
51 inline unsigned int getHeight() {
55 void setLayerVisible(
const std::string &name,
bool visible);
59 void draw(
bool generatePixmap);
63 void mousePressEvent(QGraphicsSceneMouseEvent* event);
64 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);
65 void mouseMoveEvent(QGraphicsSceneMouseEvent* event);
66 void setScenePosition(QPointF pos);
71 unsigned int width, height;
72 QGLFramebufferObject *glFrameBuffer;
74 QGraphicsPixmapItem overview;
75 QGraphicsLineItem line[4];
76 QGraphicsPolygonItem poly[4];
80 std::set<std::string> _hiddenLayers;
82 static std::map<std::pair<int,int>,QGLFramebufferObject*> framebufferObjects;
84 std::vector<Camera> _oldCameras;
90 #endif // GLOVERVIEWGRAPHICSITEM_H