21 #ifndef GLMAINWIDGETGRAPHICSITEM_H 22 #define GLMAINWIDGETGRAPHICSITEM_H 24 #include <QGraphicsObject> 26 #include <tulip/tulipconf.h> 31 class TLP_QT_SCOPE GlMainWidgetGraphicsItem :
public QGraphicsObject {
35 ~GlMainWidgetGraphicsItem()
override;
37 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget)
override;
39 QRectF boundingRect()
const override;
41 void resize(
int width,
int height);
43 void setRedrawNeeded(
bool redrawNeeded) {
44 this->_redrawNeeded = redrawNeeded;
53 bool eventFilter(QObject *, QEvent *evt)
override;
57 void widgetPainted(
bool redraw);
60 void keyPressEvent(QKeyEvent *event)
override;
61 void keyReleaseEvent(QKeyEvent *event)
override;
62 void wheelEvent(QGraphicsSceneWheelEvent *event)
override;
63 void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
override;
64 void mousePressEvent(QGraphicsSceneMouseEvent *event)
override;
65 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
override;
66 void hoverMoveEvent(QGraphicsSceneHoverEvent *event)
override;
67 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
override;
68 void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
override;
69 void dragEnterEvent(QGraphicsSceneDragDropEvent *event)
override;
70 void dragLeaveEvent(QGraphicsSceneDragDropEvent *event)
override;
71 void dragMoveEvent(QGraphicsSceneDragDropEvent *event)
override;
72 void dropEvent(QGraphicsSceneDragDropEvent *event)
override;
75 void glMainWidgetDraw(GlMainWidget *,
bool);
76 void glMainWidgetRedraw(GlMainWidget *);
86 #endif // GLMAINWIDGETGRAPHICSITEM_H
This widget provide a simple system to visualize data/graph with OpenGL 3D engine.