105 G4cerr <<
"Illegal application state - Trace() ignored." <<
G4endl;
111 G4cerr <<
"Figure file maker class is not specified - Trace() ignored." <<
G4endl;
117 if(storeTrajectory==0) UI->
ApplyCommand(
"/tracking/storeTrajectory 1");
132 G4cerr <<
"You might set the eye position outside of the world volume" <<
G4endl; }
135 if(storeTrajectory==0) UI->
ApplyCommand(
"/tracking/storeTrajectory 0");
193 GetNavigatorForTracking()->GetWorldVolume();
198 for (
G4int j=0; j < pVector->
size(); ++j) {
219 G4int iCoord = iRow * nColumn + iColumn;
222 G4double angleX = -(viewSpanX/2. - (iColumn+dColumn)*stepAngle);
223 G4double angleY = viewSpanY/2. - (iRow+dRow)*stepAngle;
227 rayDirection =
G4ThreeVector(-std::tan(angleX)/std::cos(angleY),std::tan(angleY)/std::cos(angleX),1.0);
231 rayDirection =
G4ThreeVector(-std::tan(angleX),std::tan(angleY),1.0);
242 G4bool interceptable =
true;
250 DistanceToIn(rayPosition,rayDirection);
251 if (outsideDistance != kInfinity) {
256 rayPosition = rayPosition+(outsideDistance+0.001)*rayDirection;
259 interceptable =
false;
280 if(!succeeded)
return false;
298 if(!trajectory)
return false;
301 if(nPoint==0)
return false;
308 for(
int i=nPoint-2;i>=0;i--)
325 return G4Colour(red,green,blue,alpha);
338 if(!preVis&&!postVis)
return transparent;
355 { preCol = transparent; }
367 { postCol = transparent; }
369 if(!preVis)
return postCol;
370 if(!postVis)
return preCol;
381 if(!visible)
return sourceCol;
391 if(stepAlpha > 0.9999999){ stepAlpha = 0.9999999; }
394 G4double KtRed = std::exp((1.0-stepRed)*attenuationFuctor);
395 G4double KtGreen = std::exp((1.0-stepGreen)*attenuationFuctor);
396 G4double KtBlue = std::exp((1.0-stepBlue)*attenuationFuctor);
397 if(KtRed>1.0){KtRed=1.0;}
398 if(KtGreen>1.0){KtGreen=1.0;}
399 if(KtBlue>1.0){KtBlue=1.0;}