21 #ifndef GLOVERVIEWGRAPHICSITEM_H 
   22 #define GLOVERVIEWGRAPHICSITEM_H 
   24 #include <tulip/tulipconf.h> 
   25 #include <tulip/Camera.h> 
   26 #include <tulip/Color.h> 
   28 #include <QGraphicsPixmapItem> 
   29 #include <QGraphicsPathItem> 
   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 setFrameColor(
const Color &color) {
 
   59   void setFrameWidth(
int width) {
 
   63   void setLayerVisible(
const std::string &name,
bool visible);
 
   67   void draw(
bool generatePixmap);
 
   71   void mousePressEvent(QGraphicsSceneMouseEvent* event);
 
   72   void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);
 
   73   void mouseMoveEvent(QGraphicsSceneMouseEvent* event);
 
   74   void setScenePosition(QPointF pos);
 
   78   unsigned int width, height;
 
   80   QGraphicsPixmapItem overview;
 
   81   QGraphicsPathItem overviewBorder;
 
   82   QGraphicsLineItem line[8];
 
   83   QGraphicsPolygonItem poly[4];
 
   87   std::set<std::string> _hiddenLayers;
 
   89   std::vector<Camera> _oldCameras;
 
   98 #endif // GLOVERVIEWGRAPHICSITEM_H