20 #ifndef Tulip_GLMAINVIEW_H
21 #define Tulip_GLMAINVIEW_H
23 #include <tulip/ViewWidget.h>
25 class QGraphicsProxyWidget;
30 class GlOverviewGraphicsItem;
31 class SceneConfigWidget;
32 class SceneLayersConfigWidget;
66 tlp::GlOverviewGraphicsItem* _overviewItem;
67 bool isOverviewVisible;
68 QGraphicsProxyWidget* _quickAccessBarItem;
70 QAction *_centerViewAction;
71 QAction *_forceRedrawAction;
72 QAction* _advAntiAliasingAction;
73 QAction* _snapshotAction;
77 tlp::QuickAccessBar* _quickAccessBar;
78 tlp::SceneConfigWidget* _sceneConfigurationWidget;
79 tlp::SceneLayersConfigWidget* _sceneLayersConfigurationWidget;
83 enum OverviewPosition {OVERVIEW_TOP_LEFT, OVERVIEW_TOP_RIGHT, OVERVIEW_BOTTOM_LEFT, OVERVIEW_BOTTOM_RIGHT};
88 virtual QList<QWidget*> configurationWidgets()
const;
89 bool overviewVisible()
const;
90 QPixmap snapshot(
const QSize &outputSize=QSize())
const;
92 void setOverviewPosition(
const OverviewPosition &position);
93 OverviewPosition overviewPosition()
const;
95 void setUpdateOverview(
bool updateOverview);
96 bool updateOverview()
const;
112 virtual void refresh();
117 virtual void drawOverview(
bool generatePixmap=
true);
122 virtual void centerView(
bool graphChanged =
false);
127 void setOverviewVisible(
bool);
132 void setViewOrtho(
bool);
137 void applySettings();
142 void openSnapshotDialog();
146 void setAntiAliasing(
bool);
148 void setAdvancedAntiAliasing(
bool);
152 virtual void glMainViewDrawn(
bool graphChanged);
153 virtual void sceneRectChanged(
const QRectF&);
154 void setQuickAccessBarVisible(
bool);
155 void fillContextMenu(QMenu *menu,
const QPointF &);
156 void delayedCenterView();
160 virtual void setupWidget();
161 bool quickAccessBarVisible()
const;
162 void assignNewGlMainWidget(
GlMainWidget *glMainWidget,
bool deleteOldGlMainWidget=
true);
163 bool eventFilter(QObject* obj, QEvent* event);
165 tlp::GlOverviewGraphicsItem* overviewItem()
const;
167 OverviewPosition _overviewPosition;
169 bool _updateOverview;
An abstract view that displays a GlMainWidget as its central widget.
This widget provide a simple system to visualize data/graph with OpenGL 3D engine.