Geant4  10.02
G4TheMTRayTracer Class Reference

#include <G4TheMTRayTracer.hh>

+ Inheritance diagram for G4TheMTRayTracer:
+ Collaboration diagram for G4TheMTRayTracer:

Public Member Functions

 G4TheMTRayTracer (G4VFigureFileMaker *figMaker=0, G4VRTScanner *scanner=0)
 
virtual ~G4TheMTRayTracer ()
 
virtual void Trace (const G4String &fileName)
 
- Public Member Functions inherited from G4TheRayTracer
 G4TheRayTracer (G4VFigureFileMaker *figMaker=0, G4VRTScanner *scanner=0)
 
virtual ~G4TheRayTracer ()
 
void SetFigureFileMaker (G4VFigureFileMaker *figMaker)
 
G4VFigureFileMakerGetFigureFileMaker ()
 
void SetScanner (G4VRTScanner *scanner)
 
G4VRTScannerGetScanner ()
 
void SetNColumn (G4int val)
 
G4int GetNColumn () const
 
void SetNRow (G4int val)
 
G4int GetNRow () const
 
void SetEyePosition (const G4ThreeVector &val)
 
G4ThreeVector GetEyePosition () const
 
void SetTargetPosition (const G4ThreeVector &val)
 
G4ThreeVector GetTargetPosition () const
 
void SetLightDirection (const G4ThreeVector &val)
 
G4ThreeVector GetLightDirection () const
 
void SetUpVector (const G4ThreeVector &val)
 
G4ThreeVector GetUpVector () const
 
void SetHeadAngle (G4double val)
 
G4double GetHeadAngle () const
 
void SetViewSpan (G4double val)
 
G4double GetViewSpan () const
 
void SetAttenuationLength (G4double val)
 
G4double GetAttenuationLength () const
 
void SetDistortion (G4bool val)
 
G4bool GetDistortion () const
 
void SetBackgroundColour (const G4Colour &val)
 
G4Colour GetBackgroundColour () const
 

Protected Member Functions

virtual G4bool CreateBitMap ()
 
virtual void StoreUserActions ()
 
virtual void RestoreUserActions ()
 
- Protected Member Functions inherited from G4TheRayTracer
void CreateFigureFile (const G4String &fileName)
 
G4bool GenerateColour (G4Event *anEvent)
 
G4Colour GetSurfaceColour (G4RayTrajectoryPoint *point)
 
G4Colour GetMixedColour (const G4Colour &surfCol, const G4Colour &transCol, G4double weight=0.5)
 
G4Colour Attenuate (G4RayTrajectoryPoint *point, const G4Colour &sourceCol)
 
G4bool ValidColour (const G4VisAttributes *visAtt)
 

Protected Attributes

const G4UserWorkerInitializationtheUserWorkerInitialization
 
G4RTWorkerInitializationtheRTWorkerInitialization
 
const G4UserRunActiontheUserRunAction
 
G4RTRunActiontheRTRunAction
 
- Protected Attributes inherited from G4TheRayTracer
G4RayShootertheRayShooter
 
G4VFigureFileMakertheFigMaker
 
G4RTMessengertheMessenger
 
G4VRTScannertheScanner
 
G4EventManagertheEventManager
 
G4UserEventActiontheUserEventAction
 
G4UserStackingActiontheUserStackingAction
 
G4UserTrackingActiontheUserTrackingAction
 
G4UserSteppingActiontheUserSteppingAction
 
G4UserEventActiontheRayTracerEventAction
 
G4UserStackingActiontheRayTracerStackingAction
 
G4RTTrackingActiontheRayTracerTrackingAction
 
G4RTSteppingActiontheRayTracerSteppingAction
 
unsigned char * colorR
 
unsigned char * colorG
 
unsigned char * colorB
 
G4int nColumn
 
G4int nRow
 
G4ThreeVector eyePosition
 
G4ThreeVector targetPosition
 
G4ThreeVector eyeDirection
 
G4ThreeVector lightDirection
 
G4ThreeVector up
 
G4double headAngle
 
G4double viewSpan
 
G4double attenuationLength
 
G4bool distortionOn
 
G4bool antialiasingOn
 
G4Colour rayColour
 
G4Colour backgroundColour
 

Static Private Attributes

static G4TheMTRayTracertheInstance = 0
 

Friends

class G4RTPrimaryGeneratorAction
 
class G4RTRun
 
class G4RayTracerViewer
 

Detailed Description

Definition at line 71 of file G4TheMTRayTracer.hh.

Constructor & Destructor Documentation

G4TheMTRayTracer::G4TheMTRayTracer ( G4VFigureFileMaker figMaker = 0,
G4VRTScanner scanner = 0 
)

Definition at line 51 of file G4TheMTRayTracer.cc.

References FatalException, G4Exception(), theInstance, theRTRunAction, theRTWorkerInitialization, theUserRunAction, and theUserWorkerInitialization.

+ Here is the call graph for this function:

G4TheMTRayTracer::~G4TheMTRayTracer ( )
virtual

Definition at line 66 of file G4TheMTRayTracer.cc.

References theRTRunAction, and theRTWorkerInitialization.

Member Function Documentation

G4bool G4TheMTRayTracer::CreateBitMap ( )
protectedvirtual

Reimplemented from G4TheRayTracer.

Definition at line 152 of file G4TheMTRayTracer.cc.

References G4UImanager::ApplyCommand(), G4TheRayTracer::colorB, G4TheRayTracer::colorG, G4TheRayTracer::colorR, G4UIcommand::ConvertToString(), G4VRTScanner::Coords(), G4VRTScanner::Draw(), G4Colour::GetBlue(), G4VVisManager::GetConcreteInstance(), G4RunManager::GetCurrentRun(), G4Colour::GetGreen(), G4RTRun::GetMap(), G4THitsMap< T >::GetMap(), G4MTRunManager::GetMasterRunManager(), G4Colour::GetRed(), G4UImanager::GetUIpointer(), G4VVisManager::IgnoreStateChanges(), G4VRTScanner::Initialize(), G4TheRayTracer::nColumn, G4TheRayTracer::nRow, RestoreUserActions(), StoreUserActions(), and G4TheRayTracer::theScanner.

Referenced by Trace().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4TheMTRayTracer::RestoreUserActions ( )
protectedvirtual

Reimplemented from G4TheRayTracer.

Definition at line 145 of file G4TheMTRayTracer.cc.

References G4MTRunManager::GetMasterRunManager(), G4MTRunManager::SetUserAction(), G4MTRunManager::SetUserInitialization(), theUserRunAction, and theUserWorkerInitialization.

Referenced by CreateBitMap().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4TheMTRayTracer::StoreUserActions ( )
protectedvirtual

Reimplemented from G4TheRayTracer.

Definition at line 132 of file G4TheMTRayTracer.cc.

References G4MTRunManager::GetMasterRunManager(), G4RunManager::GetUserRunAction(), G4RunManager::GetUserWorkerInitialization(), G4MTRunManager::SetUserAction(), G4MTRunManager::SetUserInitialization(), theRTRunAction, theRTWorkerInitialization, theUserRunAction, and theUserWorkerInitialization.

Referenced by CreateBitMap().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class G4RayTracerViewer
friend

Definition at line 75 of file G4TheMTRayTracer.hh.

friend class G4RTPrimaryGeneratorAction
friend

Definition at line 73 of file G4TheMTRayTracer.hh.

friend class G4RTRun
friend

Definition at line 74 of file G4TheMTRayTracer.hh.

Member Data Documentation

G4TheMTRayTracer * G4TheMTRayTracer::theInstance = 0
staticprivate
G4RTRunAction* G4TheMTRayTracer::theRTRunAction
protected

Definition at line 113 of file G4TheMTRayTracer.hh.

Referenced by G4TheMTRayTracer(), StoreUserActions(), and ~G4TheMTRayTracer().

G4RTWorkerInitialization* G4TheMTRayTracer::theRTWorkerInitialization
protected

Definition at line 111 of file G4TheMTRayTracer.hh.

Referenced by G4TheMTRayTracer(), StoreUserActions(), and ~G4TheMTRayTracer().

const G4UserRunAction* G4TheMTRayTracer::theUserRunAction
protected

Definition at line 112 of file G4TheMTRayTracer.hh.

Referenced by G4TheMTRayTracer(), RestoreUserActions(), and StoreUserActions().

const G4UserWorkerInitialization* G4TheMTRayTracer::theUserWorkerInitialization
protected

Definition at line 110 of file G4TheMTRayTracer.hh.

Referenced by G4TheMTRayTracer(), RestoreUserActions(), and StoreUserActions().


The documentation for this class was generated from the following files: