45:
G4VViewer(sceneHandler, sceneHandler.IncrementViewCount(), name)
50 G4cerr <<
"G4RayTracerViewer::Initialise: No tracer" <<
G4endl;
73 if(radius<=0.) radius = 1.;
79 const G4double frontHalfAngle = std::atan(frontHalfHeight / nearDistance);
99 static G4bool called =
false;
104 G4double fieldHalfAngle = perMillion;
107 "WARNING: G4RayTracerViewer::DrawView: true orthogonal projection"
108 "\n not yet implemented. Doing a \"long shot\", i.e., a perspective"
109 "\n projection with a half field angle of "
120 std::ostringstream filename;
121 filename <<
"g4RayTracer." <<
fShortName <<
'_'
122 << std::setw(4) << std::setfill(
'0') <<
fFileCount++ <<
".jpeg";
G4GLOB_DLL std::ostream G4cerr
G4GLOB_DLL std::ostream G4cout
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