41#include <qapplication.h>
42#include <qtabwidget.h>
47 G4VViewer (sceneHandler, sceneHandler.IncrementViewCount (), name),
58 G4QGLWidgetType::setAttribute (Qt::WA_NoSystemBackground);
60 setFocusPolicy(Qt::StrongFocus);
79 glDrawBuffer (GL_BACK);
82 if (G4QGLWidgetType::parentWidget()) {
83 auto *parentTab =
dynamic_cast<QTabWidget*
> (G4QGLWidgetType::parentWidget()->parent()) ;
85 parentTab->setCurrentIndex(parentTab->count()-1);
214void G4OpenGLStoredQtViewer::ComputeView () {
232 if (kernelVisitWasNeeded) {
252 if (!kernelVisitWasNeeded) {
286 if ((aWidth > 0) && (aHeight > 0)) {
322 if (!isMaximized() && !isFullScreen()) {
323 sw = normalGeometry().width();
324 sh = normalGeometry().height();
326 sw = frameGeometry().width();
327 sh = frameGeometry().height();
334 glDrawBuffer (GL_BACK);
357#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
QOpenGLWidget G4QGLWidgetType
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()
bool isTouchableVisible(int POindex)
void G4manageContextMenuEvent(QContextMenuEvent *e)
bool fQGLWidgetInitialiseCompleted
void updateToolbarAndMouseContextMenu()
void G4keyReleaseEvent(QKeyEvent *event)
virtual void CreateMainWindow(G4QGLWidgetType *, const QString &)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
G4Colour getColorForPoIndex(int poIndex)
void displaySceneTreeComponent()
void keyReleaseEvent(QKeyEvent *event)
~G4OpenGLStoredQtViewer()
void mouseReleaseEvent(QMouseEvent *event)
G4bool CompareForKernelVisit(G4ViewParameters &)
G4OpenGLStoredQtViewer(G4OpenGLStoredSceneHandler &scene, const G4String &name="")
void mouseDoubleClickEvent(QMouseEvent *event)
G4bool TOSelected(size_t TOListIndex)
void mousePressEvent(QMouseEvent *event)
void keyPressEvent(QKeyEvent *event)
void paintEvent(QPaintEvent *event)
void mouseMoveEvent(QMouseEvent *event)
void wheelEvent(QWheelEvent *event)
void showEvent(QShowEvent *event)
G4bool POSelected(size_t POListIndex)
void DisplayTimePOColourModification(G4Colour &, size_t)
void contextMenuEvent(QContextMenuEvent *e)
void ShowView()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
void resizeGL(int width, int height)
void KernelVisitDecision()
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
const std::vector< G4ModelingParameters::VisAttributesModifier > & GetVisAttributesModifiers() const
G4int GetNoOfSides() const
G4bool IsSpecialMeshRendering() const
CutawayMode GetCutawayMode() const
G4double GetExplodeFactor() const
G4int GetNumberOfCloudPoints() const
G4bool IsMarkerNotHidden() const
G4double GetGlobalLineWidthScale() const
const G4Colour & GetBackgroundColour() const
const G4VisAttributes * GetDefaultTextVisAttributes() const
const std::vector< G4double > & GetCBDParameters() const
G4int GetCBDAlgorithmNumber() const
const std::vector< G4ModelingParameters::PVNameCopyNo > & GetSpecialMeshVolumes() const
G4double GetGlobalMarkerScale() const
G4bool IsCullingInvisible() const
const G4VisAttributes * GetDefaultVisAttributes() const
G4bool IsDensityCulling() const
G4double GetVisibleDensity() const
SMROption GetSpecialMeshRenderingOption() const
G4bool IsCullingCovered() const
const G4Plane3D & GetSectionPlane() const
DrawingStyle GetDrawingStyle() const
G4bool IsAuxEdgeVisible() const
const G4Colour & GetColour() const