51 G4cerr <<
"G4RayTracerViewer::Initialise: No tracer" <<
G4endl;
74 if(radius<=0.) radius = 1.;
80 const G4double frontHalfAngle = std::atan(frontHalfHeight / nearDistance);
100 static G4bool called =
false;
108 "WARNING: G4RayTracerViewer::DrawView: true orthogonal projection"
109 "\n not yet implemented. Doing a \"long shot\", i.e., a perspective"
110 "\n projection with a half field angle of "
121 std::ostringstream filename;
122 filename <<
"g4RayTracer." <<
fShortName <<
'_'
123 << std::setw(4) << std::setfill(
'0') <<
fFileCount++ <<
".jpeg";
G4Vector3D & GetActualLightpointDirection()
void SetFieldHalfAngle(G4double fieldHalfAngle)
void SetTargetPosition(const G4ThreeVector &val)
unsigned int GetWindowSizeHintY() const
G4TheRayTracer * theTracer
const G4Point3D & GetCurrentTargetPoint() const
BasicVector3D< T > unit() const
G4double GetFrontHalfHeight(G4double nearDistance, G4double radius) const
void SetEyePosition(const G4ThreeVector &val)
const G4Vector3D & GetUpVector() const
static constexpr double perMillion
G4double GetCameraDistance(G4double radius) const
const G4Vector3D & GetViewpointDirection() const
virtual void Trace(const G4String &fileName)
void SetBackgroundColour(const G4Colour &val)
virtual ~G4RayTracerViewer()
G4double GetFieldHalfAngle() const
G4int IncrementViewCount()
G4GLOB_DLL std::ostream G4cerr
void SetNColumn(G4int val)
G4RayTracerViewer(G4VSceneHandler &, const G4String &name, G4TheRayTracer *=0)
G4double GetExtentRadius() const
const G4Colour & GetBackgroundColour() const
G4VSceneHandler & fSceneHandler
void SetLightDirection(const G4ThreeVector &val)
G4GLOB_DLL std::ostream G4cout
const G4VisExtent & GetExtent() const
G4double GetNearDistance(G4double cameraDistance, G4double radius) const
const G4Point3D & GetStandardTargetPoint() const
void SetUpVector(const G4ThreeVector &val)
unsigned int GetWindowSizeHintX() const
G4Scene * GetScene() const