20 #ifndef Tulip_GLMAINVIEW_H 21 #define Tulip_GLMAINVIEW_H 23 #include <tulip/ViewWidget.h> 25 class QGraphicsProxyWidget;
31 class GlOverviewGraphicsItem;
32 class SceneConfigWidget;
33 class SceneLayersConfigWidget;
67 tlp::GlOverviewGraphicsItem* _overviewItem;
69 QAction *_centerViewAction;
70 QAction *_forceRedrawAction;
71 QAction* _advAntiAliasingAction;
72 QAction* _snapshotAction;
74 QPushButton *_showOvButton, *_showQabButton;
78 bool needQuickAccessBar;
79 QGraphicsProxyWidget* _quickAccessBarItem;
80 tlp::QuickAccessBar* _quickAccessBar;
81 tlp::SceneConfigWidget* _sceneConfigurationWidget;
82 tlp::SceneLayersConfigWidget* _sceneLayersConfigurationWidget;
86 enum OverviewPosition {OVERVIEW_TOP_LEFT, OVERVIEW_TOP_RIGHT, OVERVIEW_BOTTOM_LEFT, OVERVIEW_BOTTOM_RIGHT};
91 virtual QList<QWidget*> configurationWidgets()
const;
92 bool overviewVisible()
const;
93 QPixmap snapshot(
const QSize &outputSize=QSize())
const;
95 void setOverviewPosition(
const OverviewPosition &position);
96 OverviewPosition overviewPosition()
const;
98 void setUpdateOverview(
bool updateOverview);
99 bool updateOverview()
const;
118 virtual void refresh();
123 virtual void drawOverview(
bool generatePixmap=
true);
128 virtual void centerView(
bool graphChanged =
false);
133 void setOverviewVisible(
bool);
138 void setViewOrtho(
bool);
143 void applySettings();
148 void openSnapshotDialog();
152 void setAntiAliasing(
bool);
154 void setAdvancedAntiAliasing(
bool);
158 virtual void glMainViewDrawn(
bool graphChanged);
159 virtual void sceneRectChanged(
const QRectF&);
160 void setQuickAccessBarVisible(
bool);
161 void fillContextMenu(QMenu *menu,
const QPointF &);
162 void delayedCenterView();
166 virtual void setupWidget();
167 bool quickAccessBarVisible()
const;
168 void assignNewGlMainWidget(
GlMainWidget *glMainWidget,
bool deleteOldGlMainWidget=
true);
169 bool eventFilter(QObject* obj, QEvent* event);
171 tlp::GlOverviewGraphicsItem* overviewItem()
const;
172 void updateShowOverviewButton();
173 void updateShowQuickAccessBarButton();
174 virtual QuickAccessBar* getQuickAccessBarImpl();
176 OverviewPosition _overviewPosition;
178 bool _updateOverview;
An abstract view that displays a GlMainWidget as its central widget.
A container that can store data from any type.
This widget provide a simple system to visualize data/graph with OpenGL 3D engine.