56 { theInstance =
this; }
58 {
G4Exception(
"G4TheMTRayTracer::G4TheMTRayTracer",
"VisRayTracer00100",
87 <<
"> - Trace() ignored. " <<
G4endl;
93 G4cerr <<
"Figure file maker class is not specified - Trace() ignored." <<
G4endl;
104 colorR =
new unsigned char[nPixel];
105 colorG =
new unsigned char[nPixel];
106 colorB =
new unsigned char[nPixel];
110 for(
G4int ii=0;ii<nPixel;++ii)
122 G4cerr <<
"You might set the eye position outside of the world volume" <<
G4endl; }
184 if(!theRun)
return false;
187 auto itr = colMap->
GetMap()->cbegin();
188 for(;itr!=colMap->
GetMap()->cend();++itr)
190 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()
G4RTRunAction * theRTRunAction
virtual ~G4TheMTRayTracer()
G4TheMTRayTracer(G4VFigureFileMaker *figMaker=0, G4VRTScanner *scanner=0)
G4ThreeVector eyeDirection
G4Colour backgroundColour
G4ThreeVector targetPosition
void CreateFigureFile(const G4String &fileName)
G4VFigureFileMaker * theFigMaker
G4VRTScanner * theScanner
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()