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