66 if(!trajectoryContainer)
return;
68 if(!trajectory)
return;
79 for(
int i=nPoint-2;i>=0;i--)
92 const G4RTRun* theLocalRun =
static_cast<const G4RTRun*
>(aLocalRun);
107 if(!preVis&&!postVis)
return transparent;
124 { preCol = transparent; }
136 { postCol = transparent; }
138 if(!preVis)
return postCol;
139 if(!postVis)
return preCol;
151 return G4Colour(red,green,blue,alpha);
159 if(!visible)
return sourceCol;
169 if(stepAlpha > 0.9999999){ stepAlpha = 0.9999999; }
172 G4double KtRed = std::exp((1.0-stepRed)*attenuationFuctor);
173 G4double KtGreen = std::exp((1.0-stepGreen)*attenuationFuctor);
174 G4double KtBlue = std::exp((1.0-stepBlue)*attenuationFuctor);
175 if(KtRed>1.0){KtRed=1.0;}
176 if(KtGreen>1.0){KtGreen=1.0;}
177 if(KtBlue>1.0){KtBlue=1.0;}
virtual void Merge(const G4Run *)
G4THitsMap< G4Colour > * colorMap
G4double GetAlpha() const
virtual void Merge(const G4Run *)
CLHEP::Hep3Vector G4ThreeVector
virtual void RecordEvent(const G4Event *)
const G4VisAttributes * GetPreStepAtt() const
const G4Colour & GetColour() const
G4TrajectoryContainer * GetTrajectoryContainer() const
virtual int GetPointEntries() const
G4Colour GetMixedColour(G4Colour, G4Colour, G4double)
static double normal(HepRandomEngine *eptr)
G4ThreeVector lightDirection
G4ThreeVector lightDirection
G4bool ValidColour(const G4VisAttributes *)
G4double GetGreen() const
G4int add(const G4int &key, T *&aHit) const
G4ThreeVector GetSurfaceNormal() const
G4Colour Attenuate(G4RayTrajectoryPoint *, G4Colour)
const G4VisAttributes * GetPostStepAtt() const
G4Colour backgroundColour
G4RayTrajectoryPoint * GetPointC(G4int i) const
G4bool IsForceDrawingStyle() const
G4double attenuationLength
static G4TheMTRayTracer * theInstance
G4Colour backgroundColour
G4double GetStepLength() const
static const G4double alpha
G4double attenuationLength
ForcedDrawingStyle GetForcedDrawingStyle() const
G4Colour GetSurfaceColour(G4RayTrajectoryPoint *)