39#include <qapplication.h>
40#include <qtabwidget.h>
46 G4VViewer (sceneHandler, sceneHandler.IncrementViewCount (), name),
53 setFocusPolicy(Qt::StrongFocus);
71 glDrawBuffer (GL_BACK);
74 if (G4QGLWidgetType::parentWidget()) {
75 auto *parentTab =
dynamic_cast<QTabWidget*
> (G4QGLWidgetType::parentWidget()->parent()) ;
77 parentTab->setCurrentIndex(parentTab->count()-1);
109#ifdef G4MULTITHREADED
119void G4OpenGLImmediateQtViewer::ComputeView () {
156 if ((aWidth > 0) && (aHeight > 0)) {
184 if (!isMaximized() && !isFullScreen()) {
185 sw = normalGeometry().width();
186 sh = normalGeometry().height();
188 sw = frameGeometry().width();
189 sh = frameGeometry().height();
194 }
else if ((sw == 0) && (sh == 0)) {
271#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
void G4MouseReleaseEvent(QMouseEvent *evnt)
void G4MouseMoveEvent(QMouseEvent *event)
void G4keyPressEvent(QKeyEvent *event)
void updateViewerPropertiesTableWidget()
void G4MousePressEvent(QMouseEvent *event)
void G4wheelEvent(QWheelEvent *event)
void G4MouseDoubleClickEvent()
void updateSceneTreeWidget()
void G4manageContextMenuEvent(QContextMenuEvent *e)
bool fQGLWidgetInitialiseCompleted
void updateToolbarAndMouseContextMenu()
void G4keyReleaseEvent(QKeyEvent *event)
virtual void CreateMainWindow(G4QGLWidgetType *, const QString &)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
bool setExportImageFormat(std::string format, bool quiet=false)
unsigned int getWinHeight() const
void ResizeWindow(unsigned int, unsigned int)
unsigned int getWinWidth() const
G4bool isFramebufferReady()
G4Scene * GetScene() const
const G4String & GetName() const
const G4ViewParameters & GetViewParameters() const
G4VSceneHandler & fSceneHandler
DrawingStyle GetDrawingStyle() const