249 #if defined DEBUG_FR_VIEW
251 G4cout <<
"***** G4DAWNFILEViewer::SendViewParameters() ";
258 const G4double MIN_HALF_ANGLE = 0.01 ;
267 if( half_view_angle > MAX_HALF_ANGLE ) {
268 half_view_angle = MAX_HALF_ANGLE ;
271 if( half_view_angle < MIN_HALF_ANGLE ) {
273 camera_distance = radius * HOW_FAR ;
276 camera_distance = radius / std::sin ( half_view_angle );
280 if ( camera_distance < radius ) {
283 G4cout <<
" Camera cannot enter inside objects" <<
G4endl;
285 camera_distance = radius ;
292 const G4double h_angle = (180.0 /
pi) * camera_direction.phi () ;
297 std::ofstream gui_out (
".DAWN_1.history") ;
302 gui_out << camera_distance <<
G4endl;
303 gui_out << v_angle <<
G4endl ;
304 gui_out << h_angle <<
G4endl ;
305 gui_out <<
"0" <<
G4endl ;
311 gui_out << target_point.
x() <<
G4endl ;
312 gui_out << target_point.
y() <<
G4endl ;
313 gui_out << target_point.
z() <<
G4endl ;
317 if( half_view_angle < MIN_HALF_ANGLE ) {
319 gui_out << zoom_factor <<
G4endl;
322 const G4double FR_HALF_SCREEN_SIZE = 0.5 ;
324 = FR_HALF_SCREEN_SIZE / std::tan( half_view_angle );
325 focal_distance *= zoom_factor ;
327 gui_out <<
"fd" << focal_distance <<
G4endl;
331 gui_out <<
"0.001" <<
G4endl ;
332 gui_out <<
"0" <<
G4endl ;
342 gui_out << 19.0 <<
G4endl;
343 gui_out << 71.0 <<
G4endl;
G4double GetZoomFactor() const
G4double GetDolly() const
BasicVector3D< T > unit() const
const char * GetPSViewer()
const G4Point3D & GetCurrentTargetPoint() const
const char FR_ENV_MULTI_WINDOW[]
G4double GetExtentRadius() const
const G4Vector3D & GetViewpointDirection() const
void SendDrawingStyleToDAWNGUI(std::ostream &out)
G4GLOB_DLL std::ostream G4cout
const G4VisExtent & GetExtent() const
const G4Point3D & GetStandardTargetPoint() const
G4Scene * GetScene() const
static Verbosity GetVerbosity()
static constexpr double pi
G4double GetFieldHalfAngle() const
const char FR_ENV_MULTI_WINDOW2[]