Geant4-11
|
#include <G4UImanager.hh>
Public Member Functions | |
void | AddNewCommand (G4UIcommand *newCommand) |
G4int | ApplyCommand (const char *aCommand) |
G4int | ApplyCommand (const G4String &aCommand) |
void | CreateHTML (const char *dir="/") |
void | ExecuteMacroFile (const char *fileName) |
G4UIcommand * | FindCommand (const char *aCommand) |
G4UIcommand * | FindCommand (const G4String &aCommand) |
G4String | FindMacroPath (const G4String &fname) const |
void | Foreach (const char *macroFile, const char *variableName, const char *candidates) |
void | ForeachS (const char *valueList) |
G4UImanager (const G4UImanager &)=delete | |
std::vector< G4String > * | GetCommandStack () |
G4double | GetCurrentDoubleValue (const char *aCommand, const char *aParameterName, G4bool reGet=true) |
G4double | GetCurrentDoubleValue (const char *aCommand, G4int parameterNumber=1, G4bool reGet=true) |
G4int | GetCurrentIntValue (const char *aCommand, const char *aParameterName, G4bool reGet=true) |
G4int | GetCurrentIntValue (const char *aCommand, G4int parameterNumber=1, G4bool reGet=true) |
G4String | GetCurrentStringValue (const char *aCommand, const char *aParameterName, G4bool reGet=true) |
G4String | GetCurrentStringValue (const char *aCommand, G4int parameterNumber=1, G4bool reGet=true) |
G4String | GetCurrentValues (const char *aCommand) |
G4UIsession * | GetG4UIWindow () const |
G4int | GetLastReturnCode () const |
const G4String & | GetMacroSearchPath () const |
G4int | GetMaxHistSize () const |
G4int | GetNumberOfHistory () const |
G4bool | GetPauseAtBeginOfEvent () const |
G4bool | GetPauseAtEndOfEvent () const |
G4String | GetPreviousCommand (G4int i) const |
G4UIsession * | GetSession () const |
G4MTcoutDestination * | GetThreadCout () |
G4int | GetThreadID () const |
G4UIcommandTree * | GetTree () const |
G4int | GetVerboseLevel () const |
bool | IsLastCommandOutputTreated () |
void | ListAlias () |
void | ListCommands (const char *direc) |
void | Loop (const char *macroFile, const char *variableName, G4double initialValue, G4double finalValue, G4double stepSize=1.0) |
void | LoopS (const char *valueList) |
virtual G4bool | Notify (G4ApplicationState requestedState) |
G4bool | operator!= (const G4UImanager &) const =delete |
G4bool | operator!= (const G4VStateDependent &right) const |
const G4UImanager & | operator= (const G4UImanager &)=delete |
G4bool | operator== (const G4UImanager &) const =delete |
G4bool | operator== (const G4VStateDependent &right) const |
void | ParseMacroSearchPath () |
void | RegisterBridge (G4UIbridge *brg) |
void | RemoveAlias (const char *aliasName) |
void | RemoveCommand (G4UIcommand *aCommand) |
void | SetAlias (const char *aliasLine) |
void | SetCerrFileName (const G4String &fileN="G4cerr.txt", G4bool ifAppend=true) |
void | SetCoutDestination (G4UIsession *const value) |
void | SetCoutFileName (const G4String &fileN="G4cout.txt", G4bool ifAppend=true) |
void | SetG4UIWindow (G4UIsession *const value) |
void | SetIgnoreCmdNotFound (G4bool val) |
void | SetLastCommandOutputTreated () |
void | SetMacroSearchPath (const G4String &path) |
void | SetMasterUIManager (G4bool val) |
void | SetMaxHistSize (G4int mx) |
void | SetPauseAtBeginOfEvent (G4bool vl) |
void | SetPauseAtEndOfEvent (G4bool vl) |
void | SetSession (G4UIsession *const value) |
void | SetThreadIgnore (G4int tid=0) |
void | SetThreadIgnoreInit (G4bool flg=true) |
void | SetThreadPrefixString (const G4String &prefix="W") |
void | SetThreadUseBuffer (G4bool flg=true) |
void | SetUpForAThread (G4int tId) |
void | SetUpForSpecialThread (G4String aPrefix) |
void | SetVerboseLevel (G4int val) |
G4String | SolveAlias (const char *aCmd) |
void | StoreHistory (const char *fileName="G4history.macro") |
void | StoreHistory (G4bool historySwitch, const char *fileName="G4history.macro") |
~G4UImanager () | |
Static Public Member Functions | |
static G4bool | DoublePrecisionStr () |
static G4UImanager * | GetMasterUIpointer () |
static G4UImanager * | GetUIpointer () |
static void | UseDoublePrecisionStr (G4bool val) |
Protected Member Functions | |
G4UImanager () | |
Private Member Functions | |
void | AddWorkerCommand (G4UIcommand *newCommand) |
void | CreateMessenger () |
G4UIcommandTree * | FindDirectory (const char *dirName) |
void | PauseSession (const char *msg) |
void | RemoveWorkerCommand (G4UIcommand *aCommand) |
Static Private Member Functions | |
static G4ICOMS_DLL G4UImanager *& | fMasterUImanager () |
static G4ICOMS_DLL G4UImanager *& | fUImanager () |
static G4ICOMS_DLL G4bool & | fUImanagerHasBeenKilled () |
Private Attributes | |
G4UIaliasList * | aliasList = nullptr |
std::vector< G4UIbridge * > * | bridges = nullptr |
std::vector< G4String > * | commandStack = nullptr |
G4LocalThreadCoutMessenger * | CoutMessenger = nullptr |
G4bool | fLastCommandOutputTreated = true |
G4UIsession * | g4UIWindow = nullptr |
std::ofstream | historyFile |
std::vector< G4String > | histVec |
G4bool | ignoreCmdNotFound = false |
G4bool | isMaster = false |
G4int | lastRC = 0 |
G4int | maxHistSize = 20 |
G4bool | pauseAtBeginOfEvent = false |
G4bool | pauseAtEndOfEvent = false |
G4ProfilerMessenger * | ProfileMessenger = nullptr |
G4UIcommand * | savedCommand = nullptr |
G4String | savedParameters |
G4bool | saveHistory = false |
std::vector< G4String > | searchDirs |
G4String | searchPath = "" |
G4UIsession * | session = nullptr |
G4bool | stackCommandsForBroadcast = false |
G4MTcoutDestination * | threadCout = nullptr |
G4int | threadID = -1 |
G4UIcommandTree * | treeTop = nullptr |
G4UIcontrolMessenger * | UImessenger = nullptr |
G4UnitsMessenger * | UnitsMessenger = nullptr |
G4int | verboseLevel = 0 |
Static Private Attributes | |
static G4ICOMS_DLL G4bool | doublePrecisionStr = false |
static G4ICOMS_DLL G4int | igThreadID = -1 |
Definition at line 57 of file G4UImanager.hh.
G4UImanager::~G4UImanager | ( | ) |
Definition at line 116 of file G4UImanager.cc.
References aliasList, bridges, commandStack, CoutMessenger, fUImanager(), fUImanagerHasBeenKilled(), G4iosFinalization(), historyFile, histVec, ProfileMessenger, saveHistory, SetCoutDestination(), threadCout, threadID, treeTop, UImessenger, and UnitsMessenger.
|
delete |
|
protected |
Definition at line 97 of file G4UImanager.cc.
References aliasList, commandStack, SetCoutDestination(), and treeTop.
Referenced by GetUIpointer().
void G4UImanager::AddNewCommand | ( | G4UIcommand * | newCommand | ) |
Definition at line 271 of file G4UImanager.cc.
References G4UIcommandTree::AddNewCommand(), AddWorkerCommand(), fMasterUImanager(), G4Threading::G4GetThreadId(), and treeTop.
Referenced by G4UIcommand::G4UIcommandCommonConstructorCode().
|
private |
Definition at line 281 of file G4UImanager.cc.
References G4UIcommandTree::AddNewCommand(), and treeTop.
Referenced by AddNewCommand().
G4int G4UImanager::ApplyCommand | ( | const char * | aCommand | ) |
Definition at line 485 of file G4UImanager.cc.
References bridges, commandStack, G4UIcommand::DoIt(), fAliasNotFound, fCommandNotFound, fCommandSucceeded, fIllegalApplicationState, G4UIcommandTree::FindPath(), fLastCommandOutputTreated, G4cout, G4endl, G4Exception(), G4UIcommand::GetFailureDescription(), historyFile, histVec, G4UIcommand::IfCommandFailed(), ignoreCmdNotFound, G4UIcommand::IsAvailable(), isMaster, JustWarning, maxHistSize, G4UIcommand::ResetFailure(), saveHistory, SolveAlias(), stackCommandsForBroadcast, G4UIcommand::ToBeBroadcasted(), treeTop, and verboseLevel.
Referenced by G4UIbridge::ApplyCommand(), ApplyCommand(), G4RunManagerKernel::BuildPhysicsTables(), G4UIQt::ChangeCursorAction(), G4UIQt::ChangePerspectiveOrtho(), G4UIQt::ChangeSurfaceStyle(), G4TheMTRayTracer::CreateBitMap(), G4WorkerRunManager::DoWork(), G4UIbatch::ExecCommand(), G4VBasicShell::ExecuteCommand(), G4RunManager::GeometryHasBeenModified(), G4TaskRunManagerKernel::InitializeWorker(), G4VVisCommand::InterpolateViews(), G4VisManager::IsValidView(), G4UIQt::OpenIconCallback(), G4QTabWidget::paintEvent(), G4RunManager::ProcessOneEvent(), G4WorkerRunManager::ProcessOneEvent(), G4WorkerTaskRunManager::ProcessOneEvent(), G4WorkerTaskRunManager::ProcessUI(), G4VVisCommand::RefreshIfRequired(), G4RunManager::ReinitializeGeometry(), G4TaskRunManager::RequestWorkersProcessCommandsStack(), G4RunManager::rndmSaveThisEvent(), G4WorkerRunManager::rndmSaveThisEvent(), G4MTRunManager::rndmSaveThisRun(), G4RunManager::rndmSaveThisRun(), G4WorkerRunManager::rndmSaveThisRun(), G4UIQt::SaveIconCallback(), G4VVisCommandGeometrySet::Set(), G4OpticalParametersMessenger::SetNewValue(), G4OpenGLViewerMessenger::SetNewValue(), G4OpenGLXmViewerMessenger::SetNewValue(), G4EmExtraParametersMessenger::SetNewValue(), G4EmLowEParametersMessenger::SetNewValue(), G4EmParametersMessenger::SetNewValue(), G4UIcontrolMessenger::SetNewValue(), G4VisCommandList::SetNewValue(), G4VisCommandReviewKeptEvents::SetNewValue(), G4VisCommandDrawTree::SetNewValue(), G4VisCommandDrawView::SetNewValue(), G4VisCommandDrawLogicalVolume::SetNewValue(), G4VisCommandDrawVolume::SetNewValue(), G4VisCommandOpen::SetNewValue(), G4VisCommandSpecify::SetNewValue(), G4VisCommandGeometryRestore::SetNewValue(), G4VisCommandSceneAddTrajectories::SetNewValue(), G4VisCommandsTouchable::SetNewValue(), G4VisCommandsTouchableSet::SetNewValue(), G4VisCommandViewerClone::SetNewValue(), G4VisCommandViewerCreate::SetNewValue(), G4VisCommandViewerFlush::SetNewValue(), G4VisCommandViewerInterpolate::SetNewValue(), G4ProcessManagerMessenger::SetNewValue(), G4ProcessTableMessenger::SetNewValue(), G4TrackingMessenger::SetNewValue(), G4VisCommandGeometrySetVisibility::SetNewValueOnLV(), G4ToolsSGSceneHandler::SetPlotterHistograms(), G4VViewer::SetTouchable(), SignalHandler(), G4OpenGLQtViewer::tableWidgetViewerSetItemChanged(), G4OpenGLQtViewer::togglePicking(), G4TheMTRayTracer::Trace(), G4TheRayTracer::Trace(), and G4UIQt::VisParameterCallback().
void G4UImanager::CreateHTML | ( | const char * | dir = "/" | ) |
Definition at line 772 of file G4UImanager.cc.
References G4UIcommandTree::CreateHTML(), FindDirectory(), G4cerr, and G4endl.
Referenced by export_G4UImanager(), and G4UIcontrolMessenger::SetNewValue().
|
private |
Definition at line 107 of file G4UImanager.cc.
References CoutMessenger, ProfileMessenger, UImessenger, and UnitsMessenger.
Referenced by GetUIpointer().
|
static |
Definition at line 158 of file G4UImanager.cc.
References doublePrecisionStr.
Referenced by G4UIcommand::ConvertToString(), and G4UIcontrolMessenger::GetCurrentValue().
void G4UImanager::ExecuteMacroFile | ( | const char * | fileName | ) |
Definition at line 303 of file G4UImanager.cc.
References lastRC, and session.
Referenced by export_G4UImanager(), Foreach(), and G4UIcontrolMessenger::SetNewValue().
G4UIcommand * G4UImanager::FindCommand | ( | const char * | aCommand | ) |
Definition at line 609 of file G4UImanager.cc.
References G4UIcommandTree::FindPath(), SolveAlias(), and treeTop.
Referenced by FindCommand().
G4UIcommand * G4UImanager::FindCommand | ( | const G4String & | aCommand | ) |
Definition at line 603 of file G4UImanager.cc.
References FindCommand().
|
private |
Definition at line 674 of file G4UImanager.cc.
References G4UIcommandTree::GetTree(), G4StrUtil::strip_copy(), and treeTop.
Referenced by CreateHTML(), and ListCommands().
Definition at line 821 of file G4UImanager.cc.
References FileFound(), test::fname, and searchDirs.
Referenced by G4UIQt::AddIcon(), G4UIQt::AddViewerTabFromFile(), Foreach(), and G4UIcontrolMessenger::SetNewValue().
|
staticprivate |
Definition at line 70 of file G4UImanager.cc.
Referenced by AddNewCommand(), GetMasterUIpointer(), RemoveCommand(), and SetMasterUIManager().
void G4UImanager::Foreach | ( | const char * | macroFile, |
const char * | variableName, | ||
const char * | candidates | ||
) |
Definition at line 399 of file G4UImanager.cc.
References cd, anonymous_namespace{G4MTcoutDestination.cc}::empty, ExecuteMacroFile(), FindMacroPath(), G4Exception(), JustWarning, lastRC, and SetAlias().
Referenced by ForeachS(), and Loop().
void G4UImanager::ForeachS | ( | const char * | valueList | ) |
Definition at line 365 of file G4UImanager.cc.
References anonymous_namespace{G4MTcoutDestination.cc}::empty, and Foreach().
Referenced by G4UIcontrolMessenger::SetNewValue().
|
staticprivate |
Definition at line 56 of file G4UImanager.cc.
References G4ThreadLocalStatic.
Referenced by GetUIpointer(), and ~G4UImanager().
|
staticprivate |
Definition at line 63 of file G4UImanager.cc.
References G4ThreadLocalStatic.
Referenced by GetUIpointer(), and ~G4UImanager().
std::vector< G4String > * G4UImanager::GetCommandStack | ( | ) |
Definition at line 838 of file G4UImanager.cc.
References commandStack.
Referenced by G4MTRunManager::PrepareCommandsStack().
G4double G4UImanager::GetCurrentDoubleValue | ( | const char * | aCommand, |
const char * | aParameterName, | ||
G4bool | reGet = true |
||
) |
Definition at line 244 of file G4UImanager.cc.
References GetCurrentStringValue().
G4double G4UImanager::GetCurrentDoubleValue | ( | const char * | aCommand, |
G4int | parameterNumber = 1 , |
||
G4bool | reGet = true |
||
) |
Definition at line 258 of file G4UImanager.cc.
References GetCurrentStringValue().
G4int G4UImanager::GetCurrentIntValue | ( | const char * | aCommand, |
const char * | aParameterName, | ||
G4bool | reGet = true |
||
) |
Definition at line 218 of file G4UImanager.cc.
References GetCurrentStringValue().
G4int G4UImanager::GetCurrentIntValue | ( | const char * | aCommand, |
G4int | parameterNumber = 1 , |
||
G4bool | reGet = true |
||
) |
Definition at line 231 of file G4UImanager.cc.
References GetCurrentStringValue().
Referenced by G4TheMTRayTracer::Trace(), and G4TheRayTracer::Trace().
G4String G4UImanager::GetCurrentStringValue | ( | const char * | aCommand, |
const char * | aParameterName, | ||
G4bool | reGet = true |
||
) |
Definition at line 201 of file G4UImanager.cc.
References GetCurrentStringValue(), GetCurrentValues(), G4UIcommand::GetParameter(), G4UIcommand::GetParameterEntries(), G4UIparameter::GetParameterName(), and savedCommand.
G4String G4UImanager::GetCurrentStringValue | ( | const char * | aCommand, |
G4int | parameterNumber = 1 , |
||
G4bool | reGet = true |
||
) |
Definition at line 177 of file G4UImanager.cc.
References GetCurrentValues(), savedCommand, and savedParameters.
Referenced by GetCurrentDoubleValue(), GetCurrentIntValue(), GetCurrentStringValue(), and G4DecayTableMessenger::SetCurrentParticle().
G4String G4UImanager::GetCurrentValues | ( | const char * | aCommand | ) |
Definition at line 164 of file G4UImanager.cc.
References G4UIcommandTree::FindPath(), G4cerr, G4endl, G4UIcommand::GetCurrentValue(), savedCommand, and treeTop.
Referenced by export_G4UImanager(), GetCurrentStringValue(), G4UIcontrolMessenger::SetNewValue(), G4ToolsSGSceneHandler::SetPlotterHistograms(), and G4VBasicShell::ShowCurrent().
|
inline |
Definition at line 188 of file G4UImanager.hh.
References g4UIWindow.
Referenced by G4OpenGLQtViewer::CreateMainWindow(), G4VtkQtViewer::CreateMainWindow(), and G4ToolsSGQtViewer::Initialise().
|
inline |
Definition at line 254 of file G4UImanager.hh.
References lastRC.
Referenced by G4UIcontrolMessenger::SetNewValue().
|
inline |
Definition at line 215 of file G4UImanager.hh.
References searchPath.
Referenced by export_G4UImanager(), and G4UIcontrolMessenger::GetCurrentValue().
|
static |
Definition at line 91 of file G4UImanager.cc.
References fMasterUImanager().
Referenced by G4UIbridge::G4UIbridge(), and G4UIcommand::G4UIcommandCommonConstructorCode().
|
inline |
Definition at line 212 of file G4UImanager.hh.
References maxHistSize.
Referenced by G4UIcontrolMessenger::GetCurrentValue().
|
inline |
Definition at line 201 of file G4UImanager.hh.
References histVec.
Referenced by G4VBasicShell::ApplyShellCommand().
|
inline |
Definition at line 178 of file G4UImanager.hh.
References pauseAtBeginOfEvent.
Referenced by export_G4UImanager().
|
inline |
Definition at line 180 of file G4UImanager.hh.
References pauseAtEndOfEvent.
Referenced by export_G4UImanager().
Definition at line 202 of file G4UImanager.hh.
References histVec.
Referenced by G4VBasicShell::ApplyShellCommand(), G4UIterminal::GetCommand(), and G4ZMQServer::GetCommand().
|
inline |
Definition at line 187 of file G4UImanager.hh.
References session.
Referenced by G4OpenGLQt::IsUISessionCompatible(), G4OpenGLXm::IsUISessionCompatible(), G4OpenInventor::IsUISessionCompatible(), G4Qt3D::IsUISessionCompatible(), G4VtkQt::IsUISessionCompatible(), and G4VisCommandReviewKeptEvents::SetNewValue().
|
inline |
Definition at line 249 of file G4UImanager.hh.
References threadCout.
Referenced by G4UIQt::GetThreadPrefix().
|
inline |
|
inline |
Definition at line 186 of file G4UImanager.hh.
References treeTop.
Referenced by G4UIQt::AddButton(), G4UIQt::AddIcon(), G4UIQt::ButtonCallback(), G4VBasicShell::Complete(), G4UIQt::CreateCompleterModel(), G4CascadeParamMessenger::CreateDirectory(), G4UImessenger::CreateDirectory(), export_G4UImanager(), G4UIQt::FillHelpTree(), G4VBasicShell::FindCommand(), G4VBasicShell::FindDirectory(), G4VisCommandDrawLogicalVolume::G4VisCommandDrawLogicalVolume(), G4VisCommandDrawVolume::G4VisCommandDrawVolume(), G4VisCommandSceneAddMagneticField::G4VisCommandSceneAddMagneticField(), G4UIWin32::GetHelpTreeToolTips(), G4UIQt::HelpTreeClicCallback(), G4UIWin32::InitHelpTreeItems(), G4UIQt::OpenHelpTreeOnCommand(), G4VBasicShell::TerminalHelp(), G4UIQt::UpdateCommandCompleter(), and G4OpenGLQtViewer::updateViewerPropertiesTableWidget().
|
static |
Definition at line 77 of file G4UImanager.cc.
References CreateMessenger(), fUImanager(), fUImanagerHasBeenKilled(), and G4UImanager().
Referenced by G4UIQt::AddButton(), G4UIQt::AddIcon(), G4UIcommandTree::AddNewCommand(), G4UIQt::AddViewerTabFromFile(), G4OpenInventorQtExaminerViewer::afterRealizeHook(), G4VBasicShell::ApplyShellCommand(), pyG4UImanager::ApplyUICommand_1(), G4RunManagerKernel::BuildPhysicsTables(), G4UIQt::ButtonCallback(), G4UIQt::ChangeCursorAction(), G4UIQt::ChangePerspectiveOrtho(), G4UIQt::ChangeSurfaceStyle(), G4VVisCommand::CheckSceneAndNotifyHandlers(), G4VBasicShell::Complete(), G4TaskRunManager::CreateAndStartWorkers(), G4TheMTRayTracer::CreateBitMap(), G4UIQt::CreateCompleterModel(), G4CascadeParamMessenger::CreateDirectory(), G4UImessenger::CreateDirectory(), G4OpenGLQtViewer::CreateMainWindow(), G4VtkQtViewer::CreateMainWindow(), G4WorkerRunManager::DoWork(), G4UIbatch::ExecCommand(), G4VBasicShell::ExecuteCommand(), export_G4UImanager(), G4UIQt::FillHelpTree(), G4VBasicShell::FindCommand(), G4VBasicShell::FindDirectory(), G4MTRunManager::G4MTRunManager(), G4Qt::G4Qt(), G4TaskRunManager::G4TaskRunManager(), G4UIbatch::G4UIbatch(), G4UIcommand::G4UIcommandCommonConstructorCode(), G4UIQt::G4UIQt(), G4UIterminal::G4UIterminal(), G4UIWin32::G4UIWin32(), G4UIXm::G4UIXm(), G4VisCommandDrawLogicalVolume::G4VisCommandDrawLogicalVolume(), G4VisCommandDrawVolume::G4VisCommandDrawVolume(), G4VisCommandSceneAddMagneticField::G4VisCommandSceneAddMagneticField(), G4WorkerRunManager::G4WorkerRunManager(), G4ZMQServer::G4ZMQServer(), G4RunManager::GeometryHasBeenModified(), G4VisManager::GeometryHasChanged(), G4VUIshell::GetCommandTree(), G4UIcontrolMessenger::GetCurrentValue(), G4UIWin32::GetHelpTreeToolTips(), G4UIQt::GetThreadPrefix(), G4UIQt::HelpTreeClicCallback(), G4UIWin32::InitHelpTreeItems(), G4OpenInventorQtViewer::Initialise(), G4Qt3DViewer::Initialise(), G4ToolsSGQtViewer::Initialise(), G4TaskRunManagerKernel::InitializeWorker(), G4VVisCommand::InterpolateViews(), G4OpenGLQt::IsUISessionCompatible(), G4OpenGLXm::IsUISessionCompatible(), G4OpenInventor::IsUISessionCompatible(), G4Qt3D::IsUISessionCompatible(), G4VtkQt::IsUISessionCompatible(), G4VisManager::IsValidView(), G4VisManager::NotifyHandlers(), G4UIQt::OpenHelpTreeOnCommand(), G4UIQt::OpenIconCallback(), G4QTabWidget::paintEvent(), G4MTRunManager::PrepareCommandsStack(), G4RunManager::ProcessOneEvent(), G4WorkerRunManager::ProcessOneEvent(), G4WorkerTaskRunManager::ProcessOneEvent(), G4WorkerTaskRunManager::ProcessUI(), G4UIQt::ReceiveG4cout(), G4VVisCommand::RefreshIfRequired(), G4RunManager::ReinitializeGeometry(), G4TaskRunManager::RequestWorkersProcessCommandsStack(), pyglobals::ResetG4PyCoutDestination(), G4RunManager::rndmSaveThisEvent(), G4WorkerRunManager::rndmSaveThisEvent(), G4MTRunManager::rndmSaveThisRun(), G4RunManager::rndmSaveThisRun(), G4WorkerRunManager::rndmSaveThisRun(), G4UIQt::SaveIconCallback(), G4UIbatch::SessionStart(), G4VVisCommandGeometrySet::Set(), G4DecayTableMessenger::SetCurrentParticle(), pyglobals::SetG4PyCoutDestination(), G4LocalThreadCoutMessenger::SetNewValue(), G4OpticalParametersMessenger::SetNewValue(), G4OpenGLViewerMessenger::SetNewValue(), G4OpenGLXmViewerMessenger::SetNewValue(), G4EmExtraParametersMessenger::SetNewValue(), G4EmLowEParametersMessenger::SetNewValue(), G4EmParametersMessenger::SetNewValue(), G4UIcontrolMessenger::SetNewValue(), G4VisCommandList::SetNewValue(), G4VisCommandReviewKeptEvents::SetNewValue(), G4VisCommandDrawTree::SetNewValue(), G4VisCommandDrawView::SetNewValue(), G4VisCommandDrawLogicalVolume::SetNewValue(), G4VisCommandDrawVolume::SetNewValue(), G4VisCommandOpen::SetNewValue(), G4VisCommandSpecify::SetNewValue(), G4VisCommandGeometryRestore::SetNewValue(), G4VisCommandSceneAddTrajectories::SetNewValue(), G4VisCommandSceneHandlerCreate::SetNewValue(), G4VisCommandsTouchable::SetNewValue(), G4VisCommandsTouchableSet::SetNewValue(), G4VisCommandViewerClone::SetNewValue(), G4VisCommandViewerCreate::SetNewValue(), G4VisCommandViewerFlush::SetNewValue(), G4VisCommandViewerInterpolate::SetNewValue(), G4ProcessManagerMessenger::SetNewValue(), G4ProcessTableMessenger::SetNewValue(), G4RunMessenger::SetNewValue(), G4TrackingMessenger::SetNewValue(), G4VisCommandGeometrySetVisibility::SetNewValueOnLV(), G4ToolsSGSceneHandler::SetPlotterHistograms(), G4VViewer::SetTouchable(), G4VBasicShell::ShowCurrent(), SignalHandler(), G4MTRunManagerKernel::StartThread(), G4OpenGLQtViewer::tableWidgetViewerSetItemChanged(), G4VBasicShell::TerminalHelp(), G4OpenGLQtViewer::togglePicking(), G4VViewer::TouchableSetColour(), G4VViewer::TouchableSetVisibility(), G4TheMTRayTracer::Trace(), G4TheRayTracer::Trace(), G4UIQt::UpdateCommandCompleter(), G4OpenGLQtViewer::updateViewerPropertiesTableWidget(), G4UIQt::VisParameterCallback(), G4RunManagerKernel::~G4RunManagerKernel(), G4UIcommand::~G4UIcommand(), G4UIQt::~G4UIQt(), G4UIterminal::~G4UIterminal(), G4UIWin32::~G4UIWin32(), G4UIXm::~G4UIXm(), and G4VisManager::~G4VisManager().
|
inline |
Definition at line 200 of file G4UImanager.hh.
References verboseLevel.
Referenced by G4UIQt::AddButton(), G4UIQt::AddIcon(), G4UIcommandTree::AddNewCommand(), export_G4UImanager(), G4Qt::G4Qt(), G4UIQt::G4UIQt(), G4UIcontrolMessenger::GetCurrentValue(), G4VisCommandReviewKeptEvents::SetNewValue(), G4VisCommandDrawTree::SetNewValue(), G4VisCommandDrawView::SetNewValue(), G4VisCommandDrawLogicalVolume::SetNewValue(), G4VisCommandDrawVolume::SetNewValue(), G4VisCommandOpen::SetNewValue(), G4VisCommandSpecify::SetNewValue(), G4VisCommandSceneAddTrajectories::SetNewValue(), G4VisCommandsTouchable::SetNewValue(), G4VisCommandViewerClone::SetNewValue(), G4VisCommandViewerFlush::SetNewValue(), and G4VisCommandViewerInterpolate::SetNewValue().
|
inline |
Definition at line 256 of file G4UImanager.hh.
References fLastCommandOutputTreated.
Referenced by G4UIQt::ReceiveG4cout().
void G4UImanager::ListAlias | ( | ) |
Definition at line 766 of file G4UImanager.cc.
References aliasList, and G4UIaliasList::List().
Referenced by G4UIcontrolMessenger::SetNewValue().
void G4UImanager::ListCommands | ( | const char * | direc | ) |
Definition at line 660 of file G4UImanager.cc.
References FindDirectory(), G4cout, G4endl, and G4UIcommandTree::List().
Referenced by G4UIcontrolMessenger::SetNewValue().
void G4UImanager::Loop | ( | const char * | macroFile, |
const char * | variableName, | ||
G4double | initialValue, | ||
G4double | finalValue, | ||
G4double | stepSize = 1.0 |
||
) |
Definition at line 336 of file G4UImanager.cc.
Referenced by LoopS().
void G4UImanager::LoopS | ( | const char * | valueList | ) |
Definition at line 315 of file G4UImanager.cc.
References d1, d2, and Loop().
Referenced by G4UIcontrolMessenger::SetNewValue().
|
virtual |
Implements G4VStateDependent.
Definition at line 703 of file G4UImanager.cc.
References G4State_EventProc, G4State_GeomClosed, G4StateManager::GetStateManager(), pauseAtBeginOfEvent, pauseAtEndOfEvent, and PauseSession().
|
delete |
|
inherited |
Definition at line 66 of file G4VStateDependent.cc.
|
delete |
|
delete |
|
inherited |
Definition at line 61 of file G4VStateDependent.cc.
void G4UImanager::ParseMacroSearchPath | ( | ) |
Definition at line 786 of file G4UImanager.cc.
References searchDirs, and searchPath.
Referenced by G4UIcontrolMessenger::SetNewValue().
|
private |
Definition at line 653 of file G4UImanager.cc.
Referenced by Notify().
void G4UImanager::RegisterBridge | ( | G4UIbridge * | brg | ) |
Definition at line 846 of file G4UImanager.cc.
References bridges, FatalException, G4Exception(), and G4UIbridge::LocalUI().
Referenced by G4UIbridge::G4UIbridge().
void G4UImanager::RemoveAlias | ( | const char * | aliasName | ) |
Definition at line 758 of file G4UImanager.cc.
References aliasList, G4UIaliasList::RemoveAlias(), and G4StrUtil::strip_copy().
Referenced by G4UIcontrolMessenger::SetNewValue().
void G4UImanager::RemoveCommand | ( | G4UIcommand * | aCommand | ) |
Definition at line 287 of file G4UImanager.cc.
References fMasterUImanager(), G4Threading::G4GetThreadId(), G4UIcommandTree::RemoveCommand(), RemoveWorkerCommand(), and treeTop.
Referenced by G4UIcommand::~G4UIcommand().
|
private |
Definition at line 297 of file G4UImanager.cc.
References G4UIcommandTree::RemoveCommand(), and treeTop.
Referenced by RemoveCommand().
void G4UImanager::SetAlias | ( | const char * | aliasLine | ) |
Definition at line 734 of file G4UImanager.cc.
References aliasList, and G4UIaliasList::ChangeAlias().
Referenced by Foreach(), and G4UIcontrolMessenger::SetNewValue().
Definition at line 899 of file G4UImanager.cc.
References G4MTcoutDestination::SetCerrFileName(), threadCout, and threadID.
Referenced by G4LocalThreadCoutMessenger::SetNewValue().
void G4UImanager::SetCoutDestination | ( | G4UIsession *const | value | ) |
Definition at line 727 of file G4UImanager.cc.
References G4cerrbuf, G4coutbuf, and G4strstreambuf::SetDestination().
Referenced by G4UImanager(), G4UIQt::G4UIQt(), G4UIWin32::G4UIWin32(), G4UIXm::G4UIXm(), ~G4UImanager(), G4UIQt::~G4UIQt(), G4UIWin32::~G4UIWin32(), G4UIXm::~G4UIXm(), and G4VisManager::~G4VisManager().
Definition at line 880 of file G4UImanager.cc.
References G4MTcoutDestination::SetCoutFileName(), threadCout, and threadID.
Referenced by G4LocalThreadCoutMessenger::SetNewValue().
|
inline |
Definition at line 191 of file G4UImanager.hh.
References g4UIWindow.
Referenced by G4UIQt::G4UIQt(), G4UIWin32::G4UIWin32(), G4UIQt::~G4UIQt(), and G4UIWin32::~G4UIWin32().
|
inline |
Definition at line 229 of file G4UImanager.hh.
References ignoreCmdNotFound.
Referenced by G4WorkerRunManager::G4WorkerRunManager().
|
inline |
Definition at line 257 of file G4UImanager.hh.
References fLastCommandOutputTreated.
Referenced by G4UIQt::ReceiveG4cout().
|
inline |
Definition at line 214 of file G4UImanager.hh.
References searchPath.
Referenced by export_G4UImanager(), and G4UIcontrolMessenger::SetNewValue().
|
inline |
Definition at line 219 of file G4UImanager.hh.
References bridges, fMasterUImanager(), isMaster, and stackCommandsForBroadcast.
Referenced by G4MTRunManager::G4MTRunManager(), and G4TaskRunManager::G4TaskRunManager().
|
inline |
Definition at line 211 of file G4UImanager.hh.
References maxHistSize.
Referenced by G4UIcontrolMessenger::SetNewValue().
|
inline |
Definition at line 177 of file G4UImanager.hh.
References pauseAtBeginOfEvent.
Referenced by export_G4UImanager(), and G4RunMessenger::SetNewValue().
|
inline |
Definition at line 179 of file G4UImanager.hh.
References pauseAtEndOfEvent.
Referenced by export_G4UImanager(), and G4RunMessenger::SetNewValue().
|
inline |
Definition at line 190 of file G4UImanager.hh.
Referenced by G4UIbatch::G4UIbatch(), G4UIQt::G4UIQt(), G4UIWin32::G4UIWin32(), G4UIXm::G4UIXm(), G4UIQt::~G4UIQt(), G4UIWin32::~G4UIWin32(), and G4UIXm::~G4UIXm().
void G4UImanager::SetThreadIgnore | ( | G4int | tid = 0 | ) |
Definition at line 936 of file G4UImanager.cc.
References igThreadID, G4MTcoutDestination::SetIgnoreCout(), threadCout, and threadID.
Referenced by G4LocalThreadCoutMessenger::SetNewValue().
void G4UImanager::SetThreadIgnoreInit | ( | G4bool | flg = true | ) |
Definition at line 948 of file G4UImanager.cc.
References G4MTcoutDestination::SetIgnoreInit(), threadCout, and threadID.
Referenced by G4LocalThreadCoutMessenger::SetNewValue().
void G4UImanager::SetThreadPrefixString | ( | const G4String & | prefix = "W" | ) |
Definition at line 918 of file G4UImanager.cc.
References s, G4MTcoutDestination::SetPrefixString(), threadCout, and threadID.
Referenced by G4LocalThreadCoutMessenger::SetNewValue().
void G4UImanager::SetThreadUseBuffer | ( | G4bool | flg = true | ) |
Definition at line 927 of file G4UImanager.cc.
References G4MTcoutDestination::EnableBuffering(), threadCout, and threadID.
Referenced by G4LocalThreadCoutMessenger::SetNewValue().
void G4UImanager::SetUpForAThread | ( | G4int | tId | ) |
Definition at line 860 of file G4UImanager.cc.
References G4iosInitialization(), igThreadID, G4MTcoutDestination::SetIgnoreCout(), threadCout, and threadID.
Referenced by G4TaskRunManagerKernel::InitializeWorker(), and G4MTRunManagerKernel::StartThread().
void G4UImanager::SetUpForSpecialThread | ( | G4String | aPrefix | ) |
Definition at line 869 of file G4UImanager.cc.
References G4iosInitialization(), G4Threading::G4SetThreadId(), G4Threading::GENERICTHREAD_ID, igThreadID, G4MTcoutDestination::SetIgnoreCout(), G4MTcoutDestination::SetPrefixString(), threadCout, and threadID.
|
inline |
Definition at line 199 of file G4UImanager.hh.
References verboseLevel.
Referenced by export_G4UImanager(), G4UIcontrolMessenger::SetNewValue(), G4VisCommandReviewKeptEvents::SetNewValue(), G4VisCommandDrawTree::SetNewValue(), G4VisCommandDrawView::SetNewValue(), G4VisCommandDrawLogicalVolume::SetNewValue(), G4VisCommandDrawVolume::SetNewValue(), G4VisCommandOpen::SetNewValue(), G4VisCommandSpecify::SetNewValue(), G4VisCommandSceneAddTrajectories::SetNewValue(), G4VisCommandsTouchable::SetNewValue(), G4VisCommandViewerClone::SetNewValue(), G4VisCommandViewerFlush::SetNewValue(), and G4VisCommandViewerInterpolate::SetNewValue().
G4String G4UImanager::SolveAlias | ( | const char * | aCmd | ) |
Definition at line 424 of file G4UImanager.cc.
References aliasList, G4UIaliasList::FindAlias(), G4cerr, G4endl, and ps.
Referenced by ApplyCommand(), G4UIterminal::ExecuteCommand(), FindCommand(), and G4UIcontrolMessenger::SetNewValue().
void G4UImanager::StoreHistory | ( | const char * | fileName = "G4history.macro" | ) |
Definition at line 627 of file G4UImanager.cc.
References StoreHistory().
Referenced by G4UIcontrolMessenger::SetNewValue(), and StoreHistory().
void G4UImanager::StoreHistory | ( | G4bool | historySwitch, |
const char * | fileName = "G4history.macro" |
||
) |
Definition at line 633 of file G4UImanager.cc.
References historyFile, and saveHistory.
|
static |
Definition at line 152 of file G4UImanager.cc.
References doublePrecisionStr.
Referenced by G4UIcontrolMessenger::SetNewValue().
|
private |
Definition at line 290 of file G4UImanager.hh.
Referenced by G4UImanager(), ListAlias(), RemoveAlias(), SetAlias(), SolveAlias(), and ~G4UImanager().
|
private |
Definition at line 298 of file G4UImanager.hh.
Referenced by ApplyCommand(), RegisterBridge(), SetMasterUIManager(), and ~G4UImanager().
|
private |
Definition at line 301 of file G4UImanager.hh.
Referenced by ApplyCommand(), G4UImanager(), GetCommandStack(), and ~G4UImanager().
|
private |
Definition at line 282 of file G4UImanager.hh.
Referenced by CreateMessenger(), and ~G4UImanager().
|
staticprivate |
Definition at line 307 of file G4UImanager.hh.
Referenced by DoublePrecisionStr(), and UseDoublePrecisionStr().
|
private |
Definition at line 311 of file G4UImanager.hh.
Referenced by ApplyCommand(), IsLastCommandOutputTreated(), and SetLastCommandOutputTreated().
|
private |
Definition at line 279 of file G4UImanager.hh.
Referenced by GetG4UIWindow(), and SetG4UIWindow().
|
private |
Definition at line 287 of file G4UImanager.hh.
Referenced by ApplyCommand(), StoreHistory(), and ~G4UImanager().
|
private |
Definition at line 289 of file G4UImanager.hh.
Referenced by ApplyCommand(), GetNumberOfHistory(), GetPreviousCommand(), and ~G4UImanager().
|
private |
Definition at line 299 of file G4UImanager.hh.
Referenced by ApplyCommand(), and SetIgnoreCmdNotFound().
|
staticprivate |
Definition at line 305 of file G4UImanager.hh.
Referenced by SetThreadIgnore(), SetUpForAThread(), and SetUpForSpecialThread().
|
private |
Definition at line 297 of file G4UImanager.hh.
Referenced by ApplyCommand(), and SetMasterUIManager().
|
private |
Definition at line 309 of file G4UImanager.hh.
Referenced by ExecuteMacroFile(), Foreach(), and GetLastReturnCode().
|
private |
Definition at line 291 of file G4UImanager.hh.
Referenced by ApplyCommand(), GetMaxHistSize(), and SetMaxHistSize().
|
private |
Definition at line 292 of file G4UImanager.hh.
Referenced by GetPauseAtBeginOfEvent(), Notify(), and SetPauseAtBeginOfEvent().
|
private |
Definition at line 293 of file G4UImanager.hh.
Referenced by GetPauseAtEndOfEvent(), Notify(), and SetPauseAtEndOfEvent().
|
private |
Definition at line 283 of file G4UImanager.hh.
Referenced by CreateMessenger(), and ~G4UImanager().
|
private |
Definition at line 285 of file G4UImanager.hh.
Referenced by GetCurrentStringValue(), and GetCurrentValues().
|
private |
Definition at line 284 of file G4UImanager.hh.
Referenced by GetCurrentStringValue().
|
private |
Definition at line 288 of file G4UImanager.hh.
Referenced by ApplyCommand(), StoreHistory(), and ~G4UImanager().
|
private |
Definition at line 295 of file G4UImanager.hh.
Referenced by FindMacroPath(), and ParseMacroSearchPath().
|
private |
Definition at line 294 of file G4UImanager.hh.
Referenced by GetMacroSearchPath(), ParseMacroSearchPath(), and SetMacroSearchPath().
|
private |
Definition at line 278 of file G4UImanager.hh.
Referenced by ExecuteMacroFile(), and GetSession().
|
private |
Definition at line 300 of file G4UImanager.hh.
Referenced by ApplyCommand(), and SetMasterUIManager().
|
private |
Definition at line 304 of file G4UImanager.hh.
Referenced by GetThreadCout(), SetCerrFileName(), SetCoutFileName(), SetThreadIgnore(), SetThreadIgnoreInit(), SetThreadPrefixString(), SetThreadUseBuffer(), SetUpForAThread(), SetUpForSpecialThread(), and ~G4UImanager().
|
private |
Definition at line 303 of file G4UImanager.hh.
Referenced by GetThreadID(), SetCerrFileName(), SetCoutFileName(), SetThreadIgnore(), SetThreadIgnoreInit(), SetThreadPrefixString(), SetThreadUseBuffer(), SetUpForAThread(), SetUpForSpecialThread(), and ~G4UImanager().
|
private |
Definition at line 277 of file G4UImanager.hh.
Referenced by AddNewCommand(), AddWorkerCommand(), ApplyCommand(), FindCommand(), FindDirectory(), G4UImanager(), GetCurrentValues(), GetTree(), RemoveCommand(), RemoveWorkerCommand(), and ~G4UImanager().
|
private |
Definition at line 280 of file G4UImanager.hh.
Referenced by CreateMessenger(), and ~G4UImanager().
|
private |
Definition at line 281 of file G4UImanager.hh.
Referenced by CreateMessenger(), and ~G4UImanager().
|
private |
Definition at line 286 of file G4UImanager.hh.
Referenced by ApplyCommand(), GetVerboseLevel(), and SetVerboseLevel().