BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Public Member Functions | Private Attributes
BDSVisManager Class Reference

The BDS Visualisation Manager. More...

#include <BDSVisManager.hh>

Collaboration diagram for BDSVisManager:
Collaboration graph

Public Member Functions

 BDSVisManager (const G4String &visMacroFileNameIn, const G4String &geant4MacroFileNameIn, const BDSDetectorConstruction *realWorldIn=nullptr)
 
void StartSession (int argc, char **argv)
 Start interactive mode. More...
 

Private Attributes

G4VisManager * visManager
 
BDSMessengerbdsMessenger
 
G4String visMacroFileName
 Full macro file path to run for visualisation. More...
 
G4String geant4MacroFileName
 Full macro file path for optional macro to run afterwards. More...
 

Detailed Description

The BDS Visualisation Manager.

This class manages the visualisation. Chosen not to inherit from G4Manager, but instead a wrapper around it.

Definition at line 36 of file BDSVisManager.hh.

Constructor & Destructor Documentation

◆ BDSVisManager()

BDSVisManager::BDSVisManager ( const G4String &  visMacroFileNameIn,
const G4String &  geant4MacroFileNameIn,
const BDSDetectorConstruction realWorldIn = nullptr 
)

Definition at line 50 of file BDSVisManager.cc.

◆ ~BDSVisManager()

BDSVisManager::~BDSVisManager ( )

Definition at line 62 of file BDSVisManager.cc.

Member Function Documentation

◆ StartSession()

void BDSVisManager::StartSession ( int  argc,
char **  argv 
)

Start interactive mode.

Definition at line 68 of file BDSVisManager.cc.

References BDS::FileExists(), geant4MacroFileName, BDS::GetBDSIMExecPath(), BDSColours::Instance(), and visMacroFileName.

Referenced by BDSIM::BeamOn(), and BDSIMLink::BeamOn().

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ bdsMessenger

BDSMessenger* BDSVisManager::bdsMessenger
private

Definition at line 50 of file BDSVisManager.hh.

◆ geant4MacroFileName

G4String BDSVisManager::geant4MacroFileName
private

Full macro file path for optional macro to run afterwards.

Definition at line 52 of file BDSVisManager.hh.

Referenced by StartSession().

◆ visMacroFileName

G4String BDSVisManager::visMacroFileName
private

Full macro file path to run for visualisation.

Definition at line 51 of file BDSVisManager.hh.

Referenced by StartSession().

◆ visManager

G4VisManager* BDSVisManager::visManager
private

Definition at line 49 of file BDSVisManager.hh.


The documentation for this class was generated from the following files: