58 {
G4Exception(
"G4TheMTRayTracer::G4TheMTRayTracer",
"VisRayTracer00100",
104 <<
"> - Trace() ignored. " <<
G4endl;
110 G4cerr <<
"Figure file maker class is not specified - Trace() ignored." <<
G4endl;
121 colorR =
new unsigned char[nPixel];
122 colorG =
new unsigned char[nPixel];
123 colorB =
new unsigned char[nPixel];
127 for(
G4int ii=0;ii<nPixel;++ii)
139 G4cerr <<
"You might set the eye position outside of the world volume" <<
G4endl; }
201 if(!theRun)
return false;
204 auto itr = colMap->
GetMap()->cbegin();
205 for(;itr!=colMap->
GetMap()->cend();++itr)
207 G4int key = itr->first;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cerr
G4double GetGreen() const
virtual void SetUserAction(G4UserRunAction *userAction)
virtual void SetUserInitialization(G4VUserPhysicsList *userPL)
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)
static G4TheMTRayTracer * theInstance
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()