#include <G4RayTracerViewer.hh>
Definition at line 37 of file G4RayTracerViewer.hh.
◆ G4RayTracerViewer()
Definition at line 41 of file G4RayTracerViewer.cc.
48{
50 G4cerr <<
"G4RayTracerViewer::Initialise: No tracer" <<
G4endl;
52 return;
53 }
54}
G4GLOB_DLL std::ostream G4cerr
G4TheRayTracer * theTracer
G4int IncrementViewCount()
◆ ~G4RayTracerViewer()
G4RayTracerViewer::~G4RayTracerViewer |
( |
| ) |
|
|
virtual |
◆ ClearView()
void G4RayTracerViewer::ClearView |
( |
void |
| ) |
|
|
virtual |
◆ DrawView()
void G4RayTracerViewer::DrawView |
( |
| ) |
|
|
virtual |
Implements G4VViewer.
Definition at line 96 of file G4RayTracerViewer.cc.
97{
98
99 static G4bool called =
false;
100 if (called) return;
101 called = true;
102
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 "
110 << fieldHalfAngle <<
111 " radians."
116 }
117 else {
119 }
120 std::ostringstream filename;
121 filename <<
"g4RayTracer." <<
fShortName <<
'_'
122 << std::setw(4) << std::setfill(
'0') <<
fFileCount++ <<
".jpeg";
124
125
126 called = false;
127}
G4GLOB_DLL std::ostream G4cout
virtual void Trace(const G4String &fileName)
void SetFieldHalfAngle(G4double fieldHalfAngle)
G4double GetFieldHalfAngle() const
◆ GetTracer()
◆ Initialise()
void G4RayTracerViewer::Initialise |
( |
| ) |
|
|
virtual |
Reimplemented from G4VViewer.
Definition at line 58 of file G4RayTracerViewer.cc.
59{
62}
void SetNColumn(G4int val)
unsigned int GetWindowSizeHintX() const
unsigned int GetWindowSizeHintY() const
◆ SetView()
void G4RayTracerViewer::SetView |
( |
| ) |
|
|
virtual |
Implements G4VViewer.
Definition at line 64 of file G4RayTracerViewer.cc.
65{
66
67
73 if(radius<=0.) radius = 1.;
79 const G4double frontHalfAngle = std::atan(frontHalfHeight / nearDistance);
80
81
91}
const G4VisExtent & GetExtent() const
const G4Point3D & GetStandardTargetPoint() const
void SetTargetPosition(const G4ThreeVector &val)
void SetUpVector(const G4ThreeVector &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
G4Vector3D & GetActualLightpointDirection()
const G4Colour & GetBackgroundColour() const
const G4Vector3D & GetViewpointDirection() const
const G4Point3D & GetCurrentTargetPoint() const
G4double GetFrontHalfHeight(G4double nearDistance, G4double radius) const
const G4Vector3D & GetUpVector() const
G4double GetNearDistance(G4double cameraDistance, G4double radius) const
G4double GetExtentRadius() const
BasicVector3D< T > unit() const
Referenced by DrawView().
◆ fFileCount
G4int G4RayTracerViewer::fFileCount |
|
protected |
◆ theTracer
The documentation for this class was generated from the following files: