Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
|
#include <G4UIQt.hh>
Additional Inherited Members | |
Public Types inherited from G4coutDestination | |
using | Transformer = std::function<G4bool(G4String&)> |
Static Public Member Functions inherited from G4UIsession | |
static G4int | InSession () |
Protected Member Functions inherited from G4VBasicShell | |
G4String | ModifyToFullPathCommand (const char *aCommandLine) const |
G4String | GetCurrentWorkingDirectory () const |
G4bool | ChangeDirectory (const char *newDir) |
G4UIcommandTree * | FindDirectory (const char *dirName) const |
G4UIcommand * | FindCommand (const char *commandName) const |
G4String | Complete (const G4String &) |
G4String | FindMatchingPath (G4UIcommandTree *, const G4String &) |
virtual void | ExecuteCommand (const G4String &) |
void | ApplyShellCommand (const G4String &, G4bool &, G4bool &) |
void | ShowCurrent (const G4String &) const |
void | ChangeDirectoryCommand (const G4String &) |
void | ListDirectory (const G4String &) const |
void | TerminalHelp (const G4String &) |
Protected Member Functions inherited from G4VInteractiveSession | |
void | SetStyleUtility (const G4String &destination, const G4String &style) |
Protected Attributes inherited from G4UIsession | |
G4int | ifBatch = 0 |
G4int | lastRC = 0 |
Protected Attributes inherited from G4coutDestination | |
std::vector< Transformer > | transformersDebug |
std::vector< Transformer > | transformersCout |
std::vector< Transformer > | transformersCerr |
Protected Attributes inherited from G4VInteractiveSession | |
std::map< G4String, OutputStyle > | fOutputStyles |
Static Protected Attributes inherited from G4UIsession | |
static G4ICOMS_DLL G4int | inSession = 0 |
Static Protected Attributes inherited from G4coutDestination | |
static G4MTGLOB_DLL G4coutDestination * | masterG4coutDestination = nullptr |
G4UIQt::G4UIQt | ( | G4int | argc, |
char ** | argv ) |
Build a Qt window with a menubar, output area and promt area
+-----------------------+ |exit menu| | | | | +-------------------+ | | | | | | | Output area | | | | | | | +-------------------+ | | | clear | | | +-------------------+ | | | promt history | | | +-------------------+ | | +-------------------+ | | |> promt area | | | +-------------------+ | +-----------------------+
Definition at line 118 of file G4UIQt.cc.
|
override |
|
overridevirtual |
Add a new button to a menu
aMenu | : parent menu |
aLabel | : label to display |
aCommand | : command to execute as a callback |
Reimplemented from G4VInteractiveSession.
Definition at line 2810 of file G4UIQt.cc.
|
overridevirtual |
special case for the "open" icon. It will open a file selector and map the return file to the given command.
Reimplemented from G4VInteractiveSession.
Definition at line 2864 of file G4UIQt.cc.
|
overridevirtual |
Add a new menu to the menu bar
aName | name of menu |
aLabel | label to display |
Reimplemented from G4VInteractiveSession.
Definition at line 2793 of file G4UIQt.cc.
G4bool G4UIQt::AddTabWidget | ( | QWidget * | aWidget, |
QString | name ) |
Add a new tab widget. Create the tab if it was not done
Definition at line 2283 of file G4UIQt.cc.
Referenced by G4OpenInventorQtExaminerViewer::afterRealizeHook(), G4OpenGLQtViewer::CreateMainWindow(), G4VtkQtViewer::CreateMainWindow(), G4UIQt(), G4ToolsSGQtGLESViewer::Initialise(), and G4ToolsSGQtZBViewer::Initialise().
G4bool G4UIQt::AddViewerTab | ( | QWidget * | aWidget, |
std::string | title ) |
G4bool G4UIQt::AddViewerTabFromFile | ( | std::string | fileName, |
std::string | title ) |
Add a new tab in the viewer
Definition at line 2255 of file G4UIQt.cc.
|
overridevirtual |
Reimplemented from G4VInteractiveSession.
Definition at line 3110 of file G4UIQt.cc.
|
overridevirtual |
Reimplemented from G4VInteractiveSession.
Definition at line 287 of file G4UIQt.cc.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 203 of file G4UIQt.hh.
Referenced by G4ToolsSGQtGLESViewer::Initialise(), and G4ToolsSGQtZBViewer::Initialise().
QWidget * G4UIQt::GetPickInfosWidget | ( | ) |
QWidget * G4UIQt::GetSceneTreeWidget | ( | ) |
|
inline |
|
inline |
|
inline |
QWidget * G4UIQt::GetViewerPropertiesWidget | ( | ) |
|
inline |
Definition at line 171 of file G4UIQt.hh.
Referenced by G4OpenInventorQtExaminerViewer::afterRealizeHook(), G4OpenGLQtViewer::CreateMainWindow(), and G4OpenGLQtViewer::isCurrentWidget().
|
inline |
Definition at line 184 of file G4UIQt.hh.
Referenced by G4OpenGLQtViewer::G4MouseMoveEvent(), G4OpenGLQtViewer::G4MousePressEvent(), G4OpenGLQtViewer::G4MouseReleaseEvent(), and G4OpenGLQtViewer::updateToolbarAndMouseContextMenu().
|
inline |
Definition at line 186 of file G4UIQt.hh.
Referenced by G4OpenGLQtViewer::G4MousePressEvent(), and G4OpenGLQtViewer::updateToolbarAndMouseContextMenu().
|
inline |
Definition at line 185 of file G4UIQt.hh.
Referenced by G4OpenGLQtViewer::G4MousePressEvent(), G4OpenGLQtViewer::G4MouseReleaseEvent(), and G4OpenGLQtViewer::updateToolbarAndMouseContextMenu().
|
inline |
Definition at line 187 of file G4UIQt.hh.
Referenced by G4OpenGLQtViewer::G4MousePressEvent(), and G4OpenGLQtViewer::updateToolbarAndMouseContextMenu().
|
inline |
Definition at line 188 of file G4UIQt.hh.
Referenced by G4OpenGLQtViewer::G4MousePressEvent(), and G4OpenGLQtViewer::updateToolbarAndMouseContextMenu().
G4bool G4UIQt::IsSplitterReleased | ( | ) |
|
overridevirtual |
Reimplemented from G4VInteractiveSession.
Definition at line 3102 of file G4UIQt.cc.
|
overridevirtual |
Called by intercoms/src/G4UImanager.cc
Called by visualization/management/src/G4VisCommands.cc with "EndOfEvent" argument
It have to pause the session command terminal.
Call SecondaryLoop to wait for exit event
aState |
Implements G4VBasicShell.
Definition at line 2418 of file G4UIQt.cc.
void G4UIQt::Prompt | ( | G4String | aPrompt | ) |
Display the prompt in the prompt area
aPrompt | : string to display as the promt label |
Definition at line 2396 of file G4UIQt.cc.
Referenced by SessionStart().
Receive a cerr from Geant4. We have to display it in the cout zone
aString | : label to add in the display area |
Reimplemented from G4coutDestination.
Definition at line 2654 of file G4UIQt.cc.
Referenced by ReceiveG4cout().
Receive a cout from Geant4. We have to display it in the cout zone
aString | : label to add in the display area |
Reimplemented from G4coutDestination.
Definition at line 2553 of file G4UIQt.cc.
Receive a debug log message from Geant4. We have to display it in the cout zone
aString | : label to add in the display area |
Reimplemented from G4coutDestination.
Definition at line 2464 of file G4UIQt.cc.
|
overridevirtual |
Start the Qt main loop
Implements G4VBasicShell.
Definition at line 2355 of file G4UIQt.cc.
void G4UIQt::SessionTerminate | ( | ) |
Definition at line 2403 of file G4UIQt.cc.
void G4UIQt::SetIconHLHSRSelected | ( | ) |
Definition at line 5335 of file G4UIQt.cc.
Referenced by AddIcon(), and G4OpenGLQtViewer::updateToolbarAndMouseContextMenu().
void G4UIQt::SetIconHLRSelected | ( | ) |
Definition at line 5308 of file G4UIQt.cc.
Referenced by AddIcon(), and G4OpenGLQtViewer::updateToolbarAndMouseContextMenu().
void G4UIQt::SetIconMoveSelected | ( | ) |
Definition at line 5089 of file G4UIQt.cc.
Referenced by AddIcon().
void G4UIQt::SetIconOrthoSelected | ( | ) |
Definition at line 5384 of file G4UIQt.cc.
Referenced by AddIcon(), and G4OpenGLQtViewer::updateToolbarAndMouseContextMenu().
void G4UIQt::SetIconPerspectiveSelected | ( | ) |
Definition at line 5363 of file G4UIQt.cc.
Referenced by AddIcon(), and G4OpenGLQtViewer::updateToolbarAndMouseContextMenu().
void G4UIQt::SetIconPickSelected | ( | ) |
Definition at line 5149 of file G4UIQt.cc.
Referenced by AddIcon().
void G4UIQt::SetIconRotateSelected | ( | ) |
Definition at line 5119 of file G4UIQt.cc.
Referenced by AddIcon().
void G4UIQt::SetIconSolidSelected | ( | ) |
Definition at line 5254 of file G4UIQt.cc.
Referenced by AddIcon(), and G4OpenGLQtViewer::updateToolbarAndMouseContextMenu().
void G4UIQt::SetIconWireframeSelected | ( | ) |
Definition at line 5281 of file G4UIQt.cc.
Referenced by AddIcon(), and G4OpenGLQtViewer::updateToolbarAndMouseContextMenu().
void G4UIQt::SetIconZoomInSelected | ( | ) |
Definition at line 5184 of file G4UIQt.cc.
Referenced by AddIcon().
void G4UIQt::SetIconZoomOutSelected | ( | ) |
Definition at line 5219 of file G4UIQt.cc.
Referenced by AddIcon().
|
overridevirtual |
Reimplemented from G4VInteractiveSession.
Definition at line 3093 of file G4UIQt.cc.
void G4UIQt::SetStartPage | ( | const std::string & | text | ) |
Definition at line 2311 of file G4UIQt.cc.
|
overridevirtual |
Reimplemented from G4VInteractiveSession.
Definition at line 1510 of file G4UIQt.cc.
Referenced by G4ToolsSGQtGLESViewer::UpdateGUISceneTree(), and G4ToolsSGQtZBViewer::UpdateGUISceneTree().