#include <BLVisManager.hh>
Public Member Functions | |
BLVisManager () | |
Default Constructor. | |
BLVisManager (G4String _viewer) | |
Constructor given the name of a viewer. | |
void | init () |
init() will init the graphics system, and execute the "init:" commands of the selected viewer. | |
void | readSection (G4String section) |
readSection() reads 1 section from VISUAL_DEF_FILENAME | |
void | BeginOfRunAction (const G4Run *run) |
BeginOfRunAction() from BLManager::RunAction. Executes the "beginRun:" commands of the selected viewer. | |
void | EndOfRunAction (const G4Run *run) |
EndOfRunAction() from BLManager::RunAction. Executes the "endRun:" commands of the selected viewer. | |
Static Public Member Functions | |
static BLVisManager * | getObject () |
get pointer to the singleton object | |
Private Member Functions | |
void | RegisterGraphicsSystems () |
Private Attributes | |
G4String | viewer |
G4UImanager * | UI |
std::vector< G4String > | initCommands |
std::vector< G4String > | beginRunCommands |
std::vector< G4String > | endRunCommands |
Static Private Attributes | |
static BLVisManager * | manager |
BLVisManager::BLVisManager | ( | ) | [inline] |
Default Constructor.
00044 : G4VisManager(), BLManager::RunAction() { 00045 viewer = ""; UI = 0; 00046 }
BLVisManager::BLVisManager | ( | G4String | _viewer | ) |
Constructor given the name of a viewer.
void BLVisManager::RegisterGraphicsSystems | ( | ) | [private] |
static BLVisManager* BLVisManager::getObject | ( | ) | [inline, static] |
get pointer to the singleton object
References manager.
Referenced by BLCMDfieldlines::callback().
00052 { return manager; }
void BLVisManager::init | ( | ) |
init() will init the graphics system, and execute the "init:" commands of the selected viewer.
Referenced by BLManager::displayVisual().
void BLVisManager::readSection | ( | G4String | section | ) |
readSection() reads 1 section from VISUAL_DEF_FILENAME
void BLVisManager::BeginOfRunAction | ( | const G4Run * | run | ) | [virtual] |
BeginOfRunAction() from BLManager::RunAction. Executes the "beginRun:" commands of the selected viewer.
Implements BLManager::RunAction.
void BLVisManager::EndOfRunAction | ( | const G4Run * | run | ) | [virtual] |
EndOfRunAction() from BLManager::RunAction. Executes the "endRun:" commands of the selected viewer.
Implements BLManager::RunAction.
G4String BLVisManager::viewer [private] |
Referenced by BLVisManager().
G4UImanager* BLVisManager::UI [private] |
Referenced by BLVisManager().
std::vector<G4String> BLVisManager::initCommands [private] |
std::vector<G4String> BLVisManager::beginRunCommands [private] |
std::vector<G4String> BLVisManager::endRunCommands [private] |
BLVisManager* BLVisManager::manager [static, private] |
Referenced by getObject().