58 { theInstance =
this; }
60 {
G4Exception(
"G4TheMTRayTracer::G4TheMTRayTracer",
"VisRayTracer00100",
70 if (theInstance)
return theInstance;
106 <<
"> - Trace() ignored. " <<
G4endl;
112 G4warn <<
"Figure file maker class is not specified - Trace() ignored." <<
G4endl;
123 colorR =
new unsigned char[nPixel];
124 colorG =
new unsigned char[nPixel];
125 colorB =
new unsigned char[nPixel];
129 for(
G4int ii=0;ii<nPixel;++ii)
141 G4warn <<
"You might set the eye position outside of the world volume" <<
G4endl; }
203 if(!theRun)
return false;
206 auto itr = colMap->
GetMap()->cbegin();
207 for(;itr!=colMap->
GetMap()->cend();++itr)
209 G4int key = itr->first;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4double GetGreen() const
void SetUserAction(G4UserRunAction *userAction) override
void SetUserInitialization(G4VUserPhysicsList *userPL) override
G4THitsMap< G4Colour > * GetMap() const
static G4MTRunManager * GetMTMasterRunManager()
const G4UserWorkerInitialization * GetUserWorkerInitialization() const
const G4Run * GetCurrentRun() const
const G4UserRunAction * GetUserRunAction() const
G4int GetVerboseLevel() const
const G4ApplicationState & GetCurrentState() const
G4String GetStateString(const G4ApplicationState &aState) const
static G4StateManager * GetStateManager()
G4RTWorkerInitialization * theRTWorkerInitialization
virtual void StoreUserActions()
virtual void Trace(const G4String &fileName)
const G4UserWorkerInitialization * theUserWorkerInitialization
const G4UserRunAction * theUserRunAction
virtual G4bool CreateBitMap()
virtual void RestoreUserActions()
static G4TheMTRayTracer * Instance()
G4RTRunAction * theRTRunAction
virtual ~G4TheMTRayTracer()
G4TheMTRayTracer(G4VFigureFileMaker *figMaker=0, G4VRTScanner *scanner=0)
G4ThreeVector eyeDirection
static G4VRTScanner * theScanner
static G4VFigureFileMaker * theFigMaker
G4Colour backgroundColour
G4ThreeVector targetPosition
void CreateFigureFile(const G4String &fileName)
G4ThreeVector eyePosition
static G4String ConvertToString(G4bool boolVal)
G4int ApplyCommand(const char *aCommand)
G4int GetCurrentIntValue(const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
static G4UImanager * GetUIpointer()
virtual void Initialize(G4int nRow, G4int nColumn)=0
virtual void Draw(unsigned char red, unsigned char green, unsigned char blue)
virtual G4bool Coords(G4int &iRow, G4int &iColumn)=0
virtual void IgnoreStateChanges(G4bool)
static G4VVisManager * GetConcreteInstance()