53:
G4VViewer(sceneHandler, sceneHandler.IncrementViewCount(), name)
56#include
"G4TheMTRayTracer.hh"
63 G4warn <<
"G4RayTracerViewer::Initialise: No tracer" <<
G4endl;
86 if(radius<=0.) radius = 1.;
92 const G4double frontHalfAngle = std::atan(frontHalfHeight / nearDistance);
112 static G4bool called =
false;
117 G4double fieldHalfAngle = perMillion;
120 "WARNING: G4RayTracerViewer::DrawView: true orthogonal projection"
121 "\n not yet implemented. Doing a \"long shot\", i.e., a perspective"
122 "\n projection with a half field angle of "
133 std::ostringstream filename;
134 filename <<
"g4RayTracer." <<
fShortName <<
'_'
135 << std::setw(4) << std::setfill(
'0') <<
fFileCount++ <<
".jpeg";
G4RayTracerViewer(G4VSceneHandler &, const G4String &name, G4TheRayTracer *=0)
G4TheRayTracer * theTracer
virtual ~G4RayTracerViewer()
const G4VisExtent & GetExtent() const
const G4Point3D & GetStandardTargetPoint() const
void SetTargetPosition(const G4ThreeVector &val)
void SetUpVector(const G4ThreeVector &val)
virtual void Trace(const G4String &fileName)
void SetNColumn(G4int val)
void SetLightDirection(const G4ThreeVector &val)
void SetBackgroundColour(const G4Colour &val)
void SetEyePosition(const G4ThreeVector &val)
G4Scene * GetScene() const
G4VSceneHandler & fSceneHandler
G4double GetCameraDistance(G4double radius) const
unsigned int GetWindowSizeHintX() const
G4Vector3D & GetActualLightpointDirection()
const G4Colour & GetBackgroundColour() const
void SetFieldHalfAngle(G4double fieldHalfAngle)
const G4Vector3D & GetViewpointDirection() const
const G4Point3D & GetCurrentTargetPoint() const
G4double GetFieldHalfAngle() const
G4double GetFrontHalfHeight(G4double nearDistance, G4double radius) const
const G4Vector3D & GetUpVector() const
unsigned int GetWindowSizeHintY() const
G4double GetNearDistance(G4double cameraDistance, G4double radius) const
G4double GetExtentRadius() const
BasicVector3D< T > unit() const