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; }
170 if(!theRun)
return false;
173 std::map<G4int,G4Colour*>::iterator itr = colMap->
GetMap()->begin();
174 for(;itr!=colMap->
GetMap()->end();itr++)
176 G4int key = itr->first;
187 G4int iCoord = iRow * nColumn + iColumn;
virtual ~G4TheMTRayTracer()
G4ThreeVector targetPosition
static G4VVisManager * GetConcreteInstance()
G4TheMTRayTracer(G4VFigureFileMaker *figMaker=0, G4VRTScanner *scanner=0)
virtual void Trace(const G4String &fileName)
G4RTRunAction * theRTRunAction
static G4String ConvertToString(G4bool boolVal)
virtual G4bool Coords(G4int &iRow, G4int &iColumn)=0
void CreateFigureFile(const G4String &fileName)
const G4UserWorkerInitialization * GetUserWorkerInitialization() const
G4VRTScanner * theScanner
G4ThreeVector eyeDirection
virtual void SetUserAction(G4UserRunAction *userAction)
const G4Run * GetCurrentRun() const
static G4UImanager * GetUIpointer()
static G4StateManager * GetStateManager()
virtual void Draw(unsigned char red, unsigned char green, unsigned char blue)
virtual void IgnoreStateChanges(G4bool)
virtual void Initialize(G4int nRow, G4int nColumn)=0
G4double GetGreen() const
static G4MTRunManager * GetMasterRunManager()
G4THitsMap< G4Colour > * GetMap() const
virtual void SetUserInitialization(G4VUserPhysicsList *userPL)
virtual void StoreUserActions()
G4ApplicationState GetCurrentState() const
G4int GetCurrentIntValue(const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
const G4UserWorkerInitialization * theUserWorkerInitialization
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4UserRunAction * theUserRunAction
G4RTWorkerInitialization * theRTWorkerInitialization
G4VFigureFileMaker * theFigMaker
virtual G4bool CreateBitMap()
std::map< G4int, T * > * GetMap() const
virtual void RestoreUserActions()
const G4UserRunAction * GetUserRunAction() const
G4Colour backgroundColour
G4ThreeVector eyePosition
G4int ApplyCommand(const char *aCommand)
G4GLOB_DLL std::ostream G4cerr
G4String GetStateString(G4ApplicationState aState) const