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 {
43 GlOverviewGraphicsItem(GlMainView *view, GlScene &scene);
44 ~GlOverviewGraphicsItem()
override;
46 void setSize(
unsigned int width,
unsigned int height);
47 inline unsigned int getWidth() {
50 inline unsigned int getHeight() {
54 void setFrameColor(
const Color &color) {
58 void setFrameWidth(
int width) {
62 void setLayerVisible(
const std::string &name,
bool visible);
66 void draw(
bool generatePixmap);
69 void mousePressEvent(QGraphicsSceneMouseEvent *event)
override;
70 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
override;
71 void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
override;
72 void setScenePosition(QPointF pos);
76 unsigned int width, height;
78 QGraphicsPixmapItem overview;
79 QGraphicsPathItem overviewBorder;
80 QGraphicsLineItem line[8];
81 QGraphicsPolygonItem poly[4];
85 std::set<std::string> _hiddenLayers;
87 std::vector<Camera> _oldCameras;
94 #endif // GLOVERVIEWGRAPHICSITEM_H