Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
|
#include <G4UImanager.hh>
Public Member Functions | |
~G4UImanager () | |
G4UImanager (const G4UImanager &)=delete | |
const G4UImanager & | operator= (const G4UImanager &)=delete |
G4bool | operator== (const G4UImanager &) const =delete |
G4bool | operator!= (const G4UImanager &) const =delete |
G4String | GetCurrentValues (const char *aCommand) |
void | AddNewCommand (G4UIcommand *newCommand) |
void | RemoveCommand (G4UIcommand *aCommand) |
void | ExecuteMacroFile (const char *fileName) |
void | Loop (const char *macroFile, const char *variableName, G4double initialValue, G4double finalValue, G4double stepSize=1.0) |
void | Foreach (const char *macroFile, const char *variableName, const char *candidates) |
G4int | ApplyCommand (const char *aCommand) |
G4int | ApplyCommand (const G4String &aCommand) |
void | StoreHistory (const char *fileName="G4history.macro") |
void | StoreHistory (G4bool historySwitch, const char *fileName="G4history.macro") |
void | ListCommands (const char *direc) |
void | SetAlias (const char *aliasLine) |
void | RemoveAlias (const char *aliasName) |
void | ListAlias () |
G4String | SolveAlias (const char *aCmd) |
void | CreateHTML (const char *dir="/") |
void | LoopS (const char *valueList) |
void | ForeachS (const char *valueList) |
virtual G4bool | Notify (G4ApplicationState requestedState) |
G4String | GetCurrentStringValue (const char *aCommand, G4int parameterNumber=1, G4bool reGet=true) |
G4int | GetCurrentIntValue (const char *aCommand, G4int parameterNumber=1, G4bool reGet=true) |
G4double | GetCurrentDoubleValue (const char *aCommand, G4int parameterNumber=1, G4bool reGet=true) |
G4String | GetCurrentStringValue (const char *aCommand, const char *aParameterName, G4bool reGet=true) |
G4int | GetCurrentIntValue (const char *aCommand, const char *aParameterName, G4bool reGet=true) |
G4double | GetCurrentDoubleValue (const char *aCommand, const char *aParameterName, G4bool reGet=true) |
void | SetPauseAtBeginOfEvent (G4bool vl) |
G4bool | GetPauseAtBeginOfEvent () const |
void | SetPauseAtEndOfEvent (G4bool vl) |
G4bool | GetPauseAtEndOfEvent () const |
G4UIcommandTree * | GetTree () const |
G4UIsession * | GetSession () const |
G4UIsession * | GetG4UIWindow () const |
void | SetSession (G4UIsession *const value) |
void | SetG4UIWindow (G4UIsession *const value) |
void | SetCoutDestination (G4UIsession *const value) |
void | SetVerboseLevel (G4int val) |
G4int | GetVerboseLevel () const |
G4int | GetNumberOfHistory () const |
G4String | GetPreviousCommand (G4int i) const |
void | SetMaxHistSize (G4int mx) |
G4int | GetMaxHistSize () const |
void | SetMacroSearchPath (const G4String &path) |
const G4String & | GetMacroSearchPath () const |
void | ParseMacroSearchPath () |
G4String | FindMacroPath (const G4String &fname) const |
void | SetMasterUIManager (G4bool val) |
void | SetIgnoreCmdNotFound (G4bool val) |
std::vector< G4String > * | GetCommandStack () |
void | RegisterBridge (G4UIbridge *brg) |
void | SetUpForAThread (G4int tId) |
void | SetUpForSpecialThread (G4String aPrefix) |
G4int | GetThreadID () const |
void | SetCoutFileName (const G4String &fileN="G4cout.txt", G4bool ifAppend=true) |
void | SetCerrFileName (const G4String &fileN="G4cerr.txt", G4bool ifAppend=true) |
void | SetThreadPrefixString (const G4String &s="W") |
void | SetThreadUseBuffer (G4bool flg=true) |
void | SetThreadIgnore (G4int tid=0) |
void | SetThreadIgnoreInit (G4bool flg=true) |
G4MTcoutDestination * | GetThreadCout () |
G4int | GetLastReturnCode () const |
Public Member Functions inherited from G4VStateDependent | |
G4VStateDependent (G4bool bottom=false) | |
virtual | ~G4VStateDependent () |
G4bool | operator== (const G4VStateDependent &right) const |
G4bool | operator!= (const G4VStateDependent &right) const |
virtual G4bool | Notify (G4ApplicationState requestedState)=0 |
Static Public Member Functions | |
static G4UImanager * | GetUIpointer () |
static G4UImanager * | GetMasterUIpointer () |
static void | UseDoublePrecisionStr (G4bool val) |
static G4bool | DoublePrecisionStr () |
Protected Member Functions | |
G4UImanager () | |
Definition at line 57 of file G4UImanager.hh.
G4UImanager::~G4UImanager | ( | ) |
Definition at line 116 of file G4UImanager.cc.
|
delete |
|
protected |
Definition at line 97 of file G4UImanager.cc.
Referenced by GetUIpointer().
void G4UImanager::AddNewCommand | ( | G4UIcommand * | newCommand | ) |
Definition at line 271 of file G4UImanager.cc.
G4int G4UImanager::ApplyCommand | ( | const char * | aCommand | ) |
Definition at line 485 of file G4UImanager.cc.
Referenced by G4UIbridge::ApplyCommand(), ApplyCommand(), G4RunManagerKernel::BuildPhysicsTables(), G4TheMTRayTracer::CreateBitMap(), G4WorkerRunManager::DoWork(), G4VBasicShell::ExecuteCommand(), G4RunManager::GeometryHasBeenModified(), G4TaskRunManagerKernel::InitializeWorker(), G4VVisCommand::InterpolateViews(), G4RunManager::ProcessOneEvent(), G4WorkerRunManager::ProcessOneEvent(), G4WorkerTaskRunManager::ProcessOneEvent(), G4WorkerTaskRunManager::ProcessUI(), G4VVisCommand::RefreshIfRequired(), G4RunManager::ReinitializeGeometry(), G4TaskRunManager::RequestWorkersProcessCommandsStack(), G4RunManager::rndmSaveThisEvent(), G4WorkerRunManager::rndmSaveThisEvent(), G4MTRunManager::rndmSaveThisRun(), G4RunManager::rndmSaveThisRun(), G4WorkerRunManager::rndmSaveThisRun(), G4VVisCommandGeometrySet::Set(), G4OpticalParametersMessenger::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(), G4VViewer::SetTouchable(), G4TheMTRayTracer::Trace(), and G4TheRayTracer::Trace().
Definition at line 479 of file G4UImanager.cc.
void G4UImanager::CreateHTML | ( | const char * | dir = "/" | ) |
Definition at line 744 of file G4UImanager.cc.
Referenced by G4UIcontrolMessenger::SetNewValue().
|
static |
Definition at line 158 of file G4UImanager.cc.
Referenced by G4UIcommand::ConvertToString(), and G4UIcontrolMessenger::GetCurrentValue().
void G4UImanager::ExecuteMacroFile | ( | const char * | fileName | ) |
Definition at line 303 of file G4UImanager.cc.
Referenced by Foreach(), and G4UIcontrolMessenger::SetNewValue().
Definition at line 793 of file G4UImanager.cc.
Referenced by Foreach(), and G4UIcontrolMessenger::SetNewValue().
void G4UImanager::Foreach | ( | const char * | macroFile, |
const char * | variableName, | ||
const char * | candidates | ||
) |
Definition at line 399 of file G4UImanager.cc.
Referenced by ForeachS(), and Loop().
void G4UImanager::ForeachS | ( | const char * | valueList | ) |
Definition at line 365 of file G4UImanager.cc.
Referenced by G4UIcontrolMessenger::SetNewValue().
std::vector< G4String > * G4UImanager::GetCommandStack | ( | ) |
Definition at line 810 of file G4UImanager.cc.
Referenced by G4MTRunManager::PrepareCommandsStack().
G4double G4UImanager::GetCurrentDoubleValue | ( | const char * | aCommand, |
const char * | aParameterName, | ||
G4bool | reGet = true |
||
) |
Definition at line 244 of file G4UImanager.cc.
G4double G4UImanager::GetCurrentDoubleValue | ( | const char * | aCommand, |
G4int | parameterNumber = 1 , |
||
G4bool | reGet = true |
||
) |
Definition at line 258 of file G4UImanager.cc.
G4int G4UImanager::GetCurrentIntValue | ( | const char * | aCommand, |
const char * | aParameterName, | ||
G4bool | reGet = true |
||
) |
Definition at line 218 of file G4UImanager.cc.
G4int G4UImanager::GetCurrentIntValue | ( | const char * | aCommand, |
G4int | parameterNumber = 1 , |
||
G4bool | reGet = true |
||
) |
Definition at line 231 of file G4UImanager.cc.
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.
G4String G4UImanager::GetCurrentStringValue | ( | const char * | aCommand, |
G4int | parameterNumber = 1 , |
||
G4bool | reGet = true |
||
) |
Definition at line 177 of file G4UImanager.cc.
Referenced by GetCurrentDoubleValue(), GetCurrentIntValue(), and GetCurrentStringValue().
G4String G4UImanager::GetCurrentValues | ( | const char * | aCommand | ) |
Definition at line 164 of file G4UImanager.cc.
Referenced by GetCurrentStringValue(), G4UIcontrolMessenger::SetNewValue(), and G4VBasicShell::ShowCurrent().
|
inline |
Definition at line 181 of file G4UImanager.hh.
|
inline |
Definition at line 247 of file G4UImanager.hh.
Referenced by G4UIcontrolMessenger::SetNewValue().
|
inline |
Definition at line 208 of file G4UImanager.hh.
Referenced by G4UIcontrolMessenger::GetCurrentValue().
|
static |
Definition at line 91 of file G4UImanager.cc.
Referenced by G4UIbridge::G4UIbridge().
|
inline |
Definition at line 205 of file G4UImanager.hh.
Referenced by G4UIcontrolMessenger::GetCurrentValue().
|
inline |
Definition at line 194 of file G4UImanager.hh.
Referenced by G4VBasicShell::ApplyShellCommand(), G4UIGAG::GetCommand(), and G4UIGainServer::GetCommand().
|
inline |
Definition at line 171 of file G4UImanager.hh.
|
inline |
Definition at line 173 of file G4UImanager.hh.
Definition at line 195 of file G4UImanager.hh.
Referenced by G4VBasicShell::ApplyShellCommand(), G4UIGAG::GetCommand(), and G4UIGainServer::GetCommand().
|
inline |
Definition at line 180 of file G4UImanager.hh.
Referenced by G4VisCommandReviewKeptEvents::SetNewValue().
|
inline |
Definition at line 242 of file G4UImanager.hh.
|
inline |
Definition at line 232 of file G4UImanager.hh.
|
inline |
Definition at line 179 of file G4UImanager.hh.
Referenced by G4VBasicShell::Complete(), G4CascadeParamMessenger::CreateDirectory(), G4UImessenger::CreateDirectory(), G4VBasicShell::FindCommand(), G4VBasicShell::FindDirectory(), G4UIGAG::G4UIGAG(), G4UIGainServer::G4UIGainServer(), G4VisCommandDrawLogicalVolume::G4VisCommandDrawLogicalVolume(), G4VisCommandDrawVolume::G4VisCommandDrawVolume(), G4VisCommandSceneAddMagneticField::G4VisCommandSceneAddMagneticField(), G4UIGAG::GetCommand(), G4UIGainServer::GetCommand(), and G4VBasicShell::TerminalHelp().
|
static |
Definition at line 77 of file G4UImanager.cc.
Referenced by G4VBasicShell::ApplyShellCommand(), G4RunManagerKernel::BuildPhysicsTables(), G4VVisCommand::CheckSceneAndNotifyHandlers(), G4VBasicShell::Complete(), G4TaskRunManager::CreateAndStartWorkers(), G4TheMTRayTracer::CreateBitMap(), G4CascadeParamMessenger::CreateDirectory(), G4UImessenger::CreateDirectory(), G4WorkerRunManager::DoWork(), G4VBasicShell::ExecuteCommand(), G4VBasicShell::FindCommand(), G4VBasicShell::FindDirectory(), G4MTRunManager::G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), G4UIbatch::G4UIbatch(), G4UIGAG::G4UIGAG(), G4UIGainServer::G4UIGainServer(), G4UIterminal::G4UIterminal(), G4VisCommandDrawLogicalVolume::G4VisCommandDrawLogicalVolume(), G4VisCommandDrawVolume::G4VisCommandDrawVolume(), G4VisCommandSceneAddMagneticField::G4VisCommandSceneAddMagneticField(), G4WorkerRunManager::G4WorkerRunManager(), G4RunManager::GeometryHasBeenModified(), G4VisManager::GeometryHasChanged(), G4VUIshell::GetCommandTree(), G4UIcontrolMessenger::GetCurrentValue(), G4TaskRunManagerKernel::InitializeWorker(), G4VVisCommand::InterpolateViews(), G4VisManager::NotifyHandlers(), G4MTRunManager::PrepareCommandsStack(), G4RunManager::ProcessOneEvent(), G4WorkerRunManager::ProcessOneEvent(), G4WorkerTaskRunManager::ProcessOneEvent(), G4WorkerTaskRunManager::ProcessUI(), G4VVisCommand::RefreshIfRequired(), G4RunManager::ReinitializeGeometry(), G4TaskRunManager::RequestWorkersProcessCommandsStack(), G4RunManager::rndmSaveThisEvent(), G4WorkerRunManager::rndmSaveThisEvent(), G4MTRunManager::rndmSaveThisRun(), G4RunManager::rndmSaveThisRun(), G4WorkerRunManager::rndmSaveThisRun(), G4UIbatch::SessionStart(), G4VVisCommandGeometrySet::Set(), G4LocalThreadCoutMessenger::SetNewValue(), G4OpticalParametersMessenger::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(), G4VViewer::SetTouchable(), G4VBasicShell::ShowCurrent(), G4MTRunManagerKernel::StartThread(), G4VBasicShell::TerminalHelp(), G4VViewer::TouchableSetColour(), G4VViewer::TouchableSetVisibility(), G4TheMTRayTracer::Trace(), G4TheRayTracer::Trace(), G4RunManagerKernel::~G4RunManagerKernel(), G4UIcommand::~G4UIcommand(), G4UIGAG::~G4UIGAG(), G4UIGainServer::~G4UIGainServer(), and G4UIterminal::~G4UIterminal().
|
inline |
Definition at line 193 of file G4UImanager.hh.
Referenced by 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().
void G4UImanager::ListAlias | ( | ) |
Definition at line 738 of file G4UImanager.cc.
Referenced by G4UIcontrolMessenger::SetNewValue().
void G4UImanager::ListCommands | ( | const char * | direc | ) |
Definition at line 632 of file G4UImanager.cc.
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.
Referenced by G4UIcontrolMessenger::SetNewValue().
|
virtual |
Implements G4VStateDependent.
Definition at line 675 of file G4UImanager.cc.
|
delete |
|
delete |
|
delete |
void G4UImanager::ParseMacroSearchPath | ( | ) |
Definition at line 758 of file G4UImanager.cc.
Referenced by G4UIcontrolMessenger::SetNewValue().
void G4UImanager::RegisterBridge | ( | G4UIbridge * | brg | ) |
Definition at line 818 of file G4UImanager.cc.
Referenced by G4UIbridge::G4UIbridge().
void G4UImanager::RemoveAlias | ( | const char * | aliasName | ) |
Definition at line 730 of file G4UImanager.cc.
Referenced by G4UIcontrolMessenger::SetNewValue().
void G4UImanager::RemoveCommand | ( | G4UIcommand * | aCommand | ) |
Definition at line 287 of file G4UImanager.cc.
Referenced by G4UIcommand::~G4UIcommand().
void G4UImanager::SetAlias | ( | const char * | aliasLine | ) |
Definition at line 706 of file G4UImanager.cc.
Referenced by Foreach(), and G4UIcontrolMessenger::SetNewValue().
Definition at line 871 of file G4UImanager.cc.
Referenced by G4LocalThreadCoutMessenger::SetNewValue().
void G4UImanager::SetCoutDestination | ( | G4UIsession *const | value | ) |
Definition at line 699 of file G4UImanager.cc.
Referenced by G4UIGAG::G4UIGAG(), G4UImanager(), G4UIGAG::~G4UIGAG(), G4UIGainServer::~G4UIGainServer(), and ~G4UImanager().
Definition at line 852 of file G4UImanager.cc.
Referenced by G4LocalThreadCoutMessenger::SetNewValue().
|
inline |
Definition at line 184 of file G4UImanager.hh.
|
inline |
Definition at line 222 of file G4UImanager.hh.
Referenced by G4WorkerRunManager::G4WorkerRunManager().
|
inline |
Definition at line 207 of file G4UImanager.hh.
Referenced by G4UIcontrolMessenger::SetNewValue().
|
inline |
Definition at line 212 of file G4UImanager.hh.
Referenced by G4MTRunManager::G4MTRunManager(), and G4TaskRunManager::G4TaskRunManager().
|
inline |
Definition at line 204 of file G4UImanager.hh.
Referenced by G4UIcontrolMessenger::SetNewValue().
|
inline |
Definition at line 170 of file G4UImanager.hh.
Referenced by G4RunMessenger::SetNewValue().
|
inline |
Definition at line 172 of file G4UImanager.hh.
Referenced by G4RunMessenger::SetNewValue().
|
inline |
Definition at line 183 of file G4UImanager.hh.
Referenced by G4UIbatch::G4UIbatch(), G4UIGAG::G4UIGAG(), G4UIGAG::~G4UIGAG(), and G4UIGainServer::~G4UIGainServer().
void G4UImanager::SetThreadIgnore | ( | G4int | tid = 0 | ) |
Definition at line 908 of file G4UImanager.cc.
Referenced by G4LocalThreadCoutMessenger::SetNewValue().
void G4UImanager::SetThreadIgnoreInit | ( | G4bool | flg = true | ) |
Definition at line 920 of file G4UImanager.cc.
Referenced by G4LocalThreadCoutMessenger::SetNewValue().
void G4UImanager::SetThreadPrefixString | ( | const G4String & | s = "W" | ) |
Definition at line 890 of file G4UImanager.cc.
Referenced by G4LocalThreadCoutMessenger::SetNewValue().
void G4UImanager::SetThreadUseBuffer | ( | G4bool | flg = true | ) |
Definition at line 899 of file G4UImanager.cc.
Referenced by G4LocalThreadCoutMessenger::SetNewValue().
void G4UImanager::SetUpForAThread | ( | G4int | tId | ) |
Definition at line 832 of file G4UImanager.cc.
Referenced by G4TaskRunManagerKernel::InitializeWorker(), and G4MTRunManagerKernel::StartThread().
void G4UImanager::SetUpForSpecialThread | ( | G4String | aPrefix | ) |
Definition at line 841 of file G4UImanager.cc.
|
inline |
Definition at line 192 of file G4UImanager.hh.
Referenced by 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.
Referenced by ApplyCommand(), and G4UIcontrolMessenger::SetNewValue().
void G4UImanager::StoreHistory | ( | const char * | fileName = "G4history.macro" | ) |
Definition at line 599 of file G4UImanager.cc.
Referenced by G4UIcontrolMessenger::SetNewValue(), and StoreHistory().
void G4UImanager::StoreHistory | ( | G4bool | historySwitch, |
const char * | fileName = "G4history.macro" |
||
) |
Definition at line 605 of file G4UImanager.cc.
|
static |
Definition at line 152 of file G4UImanager.cc.
Referenced by G4UIcontrolMessenger::SetNewValue().