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;
52 bool eventFilter(QObject *, QEvent *evt);
56 void widgetPainted(
bool redraw);
59 void keyPressEvent(QKeyEvent *event);
60 void keyReleaseEvent(QKeyEvent *event);
61 void wheelEvent(QGraphicsSceneWheelEvent *event);
62 void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
63 void mousePressEvent(QGraphicsSceneMouseEvent *event);
64 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
65 void hoverMoveEvent(QGraphicsSceneHoverEvent * event);
66 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);
67 void contextMenuEvent(QGraphicsSceneContextMenuEvent * event);
68 void dragEnterEvent(QGraphicsSceneDragDropEvent *event);
69 void dragLeaveEvent(QGraphicsSceneDragDropEvent *event);
70 void dragMoveEvent(QGraphicsSceneDragDropEvent *event);
71 void dropEvent(QGraphicsSceneDragDropEvent *event);
74 void glMainWidgetDraw(GlMainWidget *,
bool);
75 void glMainWidgetRedraw(GlMainWidget *);
86 #endif // GLMAINWIDGETGRAPHICSITEM_H
This widget provide a simple system to visualize data/graph with OpenGL 3D engine.