Import Geant4 5.0.0 source tree
This commit is contained in:
@@ -0,0 +1,261 @@
|
||||
###########################################
|
||||
## Environmental variables to CUSTOMIZE ##
|
||||
## Geant4 DAWNFILE visualization driver ##
|
||||
###########################################
|
||||
|
||||
Sept. 1, 2002
|
||||
Satoshi Tanaka
|
||||
stanaka@cs.ritsumei.ac.jp
|
||||
|
||||
#----- << G4DAWNFILE_DEST_DIR >> -----
|
||||
# Set a directory where g4_XX.prim and g4_XX.eps files
|
||||
# are generated.
|
||||
# Do not forget to add the file separator
|
||||
# "/" (Unix/Linux) or "\" (Windows) at the end.
|
||||
# The default directory is the current directory.
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv G4DAWNFILE_DEST_DIR "/home/username/tmp/"
|
||||
|
||||
|
||||
#----- << G4DAWNFILE_MAX_FILE_NUM >> -----
|
||||
# Set a maximal number of generated g4_XX.prim files.
|
||||
# Upto this number "XX" is automatically incremented,
|
||||
# starting from "00".
|
||||
# The default number is 100.
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv G4DAWNFILE_MAX_FILE_NUM 100
|
||||
|
||||
|
||||
#----- << G4DAWNFILE_MULTI_WINDOW >> -----
|
||||
# Boolean flag to set on/off multi-window mode.
|
||||
# If this variable is set and its value is non-zero,
|
||||
# Geant4 invokes Renderer DAWN with the multi-X-window mode.
|
||||
# Otherwise DAWN is invoked with the EPS mode, in which
|
||||
# EPS files are generated and viewed with a PS viewer.
|
||||
# The default value is "0".
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv G4DAWNFILE_MULTI_WINDOW "0"
|
||||
# setenv G4DAWNFILE_MULTI_WINDOW "1"
|
||||
|
||||
|
||||
#----- << G4DAWNFILE_PRECISION >> -----
|
||||
# Set precision of double numbers in g4_XX.prim files.
|
||||
# The number is used as
|
||||
# sprintf( string, "%*.*g", (precision+8), precision, value).
|
||||
# See G4DAWNFILESceneHandler::G4DAWNFILESceneHandler()
|
||||
# for more details.
|
||||
# The default precision is "9".
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv G4DAWNFILE_PRECISION 9
|
||||
|
||||
|
||||
#----- << G4DAWNFILE_PS_VIEWER >> -----
|
||||
# Set a name of the PostScript viewer to visualize
|
||||
# generated g4_XX.eps files.
|
||||
# The default viewer name is "gv".
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv G4DAWNFILE_PS_VIEWER gv
|
||||
|
||||
|
||||
#----- << G4DAWNFILE_VIEWER >> -----
|
||||
# Set a name of the renderer to visualize
|
||||
# generated g4_XX.prim files.
|
||||
# The default renderer name is "dawn".
|
||||
# Set this variable to "david" to execute
|
||||
# volume-overlapping detection.
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv G4DAWNFILE_VIEWER dawn
|
||||
# setenv G4DAWNFILE_VIEWER david
|
||||
|
||||
###########################################
|
||||
## Environmental variables to CUSTOMIZE ##
|
||||
## Renderer DAWN ##
|
||||
###########################################
|
||||
|
||||
#----- << DAWN_BATCH >> -----
|
||||
# Set on/off the batch mode.
|
||||
#
|
||||
# If this variable is set to "1",
|
||||
# the DAWN GUI panel does not invoked.
|
||||
# Visualization is not performed, either.
|
||||
# But an EPS file is generated.
|
||||
#
|
||||
# If this variable is set to "a",
|
||||
# the effects are the same as "1" except that
|
||||
# every generated EPS data is appended to one file.
|
||||
# In the on-line use of Renderer DAWN connected
|
||||
# with the Geant4 DAWNFILE driver,
|
||||
# you should also set as
|
||||
#
|
||||
# setenv G4DAWNFILE_MAX_FILENUM 1
|
||||
#
|
||||
# The dafault value is "0", i.e., the batch mode is off.
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv DAWN_BATCH "0"
|
||||
# setenv DAWN_BATCH "1"
|
||||
# setenv DAWN_BATCH "a"
|
||||
|
||||
|
||||
#----- << DAWN_BFC_MODE >> -----
|
||||
# Set on/off the back-face-culling mode.
|
||||
# If this mode is set on, analytical hidden-surface removal
|
||||
# is skipped, and only back-face culling is performed.
|
||||
# This mode is fast, but inaccurate.
|
||||
# "1": on
|
||||
# "0": off
|
||||
# The default value of "0".
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv DAWN_BFC_MODE "0"
|
||||
# setenv DAWN_BFC_MODE "1"
|
||||
|
||||
|
||||
#----- << DAWN_DEVICE >> -----
|
||||
# Set the default viewing device
|
||||
# 1: PS: 2: XWIN, 3: PS2, 4: XWIN2, 5: OPEN_GL
|
||||
#
|
||||
# Note: This variable is effective only in the
|
||||
# off-line use of Renderer DAWN.
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv DAWN_DEVICE "1"
|
||||
# setenv DAWN_DEVICE "2"
|
||||
# setenv DAWN_DEVICE "3"
|
||||
# setenv DAWN_DEVICE "4"
|
||||
# setenv DAWN_DEVICE "5"
|
||||
|
||||
|
||||
#----- << DAWN_HIDLINE_REMOVAL >> -----
|
||||
# Set on/off the hidden-line-removal mode
|
||||
# If this mode is on, hidden-line removal is performed.
|
||||
# "1": on
|
||||
# "0": off
|
||||
# The default value is "1".
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv DAWN_HIDLINE_REMOVAL "0"
|
||||
# setenv DAWN_HIDLINE_REMOVAL "1"
|
||||
|
||||
|
||||
#----- << DAWN_PS_PREVIEWER >> -----
|
||||
# Set a name of the PostScript viewer.
|
||||
# The default value is "gv".
|
||||
# "NONE" to skip viewing.
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv DAWN_PS_PREVIEWER "gv"
|
||||
|
||||
|
||||
#----- << DAWN_UP_DIRECTION >> -----
|
||||
# Set viewing-upward direction.
|
||||
# Select "Y" or "Z".
|
||||
# The default is "Y", i.e., (0,1,0)-direction
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv DAWN_UP_DIRECTION "Y"
|
||||
# setenv DAWN_UP_DIRECTION "Z"
|
||||
|
||||
|
||||
#----- << DAWN_USE_STENCIL >> -----
|
||||
# Set on/off use of the stencil buffer in the OpenGL mode.
|
||||
# If this mode is on, edges are drawn.
|
||||
# "1": on
|
||||
# "0": off
|
||||
# The default value of "0".
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv DAWN_USE_STENCIL "0"
|
||||
# setenv DAWN_USE_STENCIL "1"
|
||||
|
||||
|
||||
###############################################
|
||||
## Environmental variables to CUSTOMIZE ##
|
||||
## Geant4 DAWN-Network visualization driver ##
|
||||
## ##
|
||||
## Note: This driver should be used only ##
|
||||
## for remote visualizaton.) ##
|
||||
###############################################
|
||||
|
||||
#----- << G4DAWN_GUI_ALWAYS >>
|
||||
# Boolean flag to control GUI invokation.
|
||||
# If this variable is set and the value is non-zero,
|
||||
# DAWN connected with GEANT4 always pops up GUI menu.
|
||||
# The default is "0", i.e., no GUI.
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv G4DAWN_GUI_ALWAYS "0"
|
||||
# setenv G4DAWN_GUI_ALWAYS "1"
|
||||
|
||||
|
||||
#----- << G4DAWN_HOST_NAME >>
|
||||
# Set a host where Renderer DAWN is running with
|
||||
# the INET mode, i.e., invoked as "dawn -G".
|
||||
# If the environmental variable G4DAWN_NAMED_PIPE
|
||||
# is set to "1", this host setting is ignored.
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv G4DAWN_HOST_NAME cernsp.cern.ch
|
||||
|
||||
|
||||
#----- << G4DAWN_MULTI_WINDOW >>
|
||||
# Boolean flag to set on/off multi-window mode.
|
||||
# If this variable is set and its value is non-zero,
|
||||
# Geant4 invokes Renderer DAWN with the multi-X-window mode.
|
||||
# Otherwise DAWN is invoked with the EPS mode, in which
|
||||
# EPS files are generated and viewed with a PS viewer.
|
||||
# The default value is "0".
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv G4DAWN_MULTI_WINDOW "0"
|
||||
# setenv G4DAWN_MULTI_WINDOW "1"
|
||||
|
||||
|
||||
#----- << G4DAWN_NAMED_PIPE >> -----
|
||||
# Boolean flag to set on/off BSD-type Unix-domain connection.
|
||||
# If this variable is set and the value is non-zero,
|
||||
# Renderer DAWN connected with GEANT4 in the BSD-type Unix domain,
|
||||
# i.e. through named pipe.
|
||||
# The default is "0", i.e., do no use this type of connection.
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv G4DAWN_NAMED_PIPE "0"
|
||||
# setenv G4DAWN_NAMED_PIPE "1"
|
||||
|
||||
|
||||
#----- << G4DAWN_PRECISION >> -----
|
||||
# Set precision of double numbers in g4_XX.prim files.
|
||||
# The number is used as
|
||||
# sprintf( string, "%*.*g", (precision+8), precision, value).
|
||||
# See G4DAWNFILESceneHandler::G4DAWNFILESceneHandler()
|
||||
# for more details.
|
||||
# The default precision is "9".
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# setenv G4DAWN_PRECISION 9
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
DAWN-V04-01-01 Satoshi TANAKA Sept 01, 2002
|
||||
- Precision control with "setenv G4DAWNFILE_PRECISION number".
|
||||
|
||||
DAWN-V03-02-01 Satoshi TANAKA Sept 18, 2001
|
||||
- Maximal number of g4.prim file is changed from 99 to 100.
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4DAWNFILE.hh,v 1.8 2001/07/27 22:32:55 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Satoshi TANAKA
|
||||
// DAWNFILE driver factory.
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4DAWNFILESceneHandler.hh,v 1.10 2001/09/17 07:40:32 stanaka Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4DAWNFILESceneHandler.hh,v 1.12 2002/12/11 15:58:02 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Satoshi TANAKA
|
||||
|
||||
@@ -86,6 +86,12 @@ public:
|
||||
G4VSceneHandler::AddThis (polyhedra);
|
||||
}
|
||||
void AddThis ( const G4VSolid& solid );
|
||||
void AddThis ( const G4VTrajectory& traj) {
|
||||
G4VSceneHandler::AddThis(traj);
|
||||
}
|
||||
void AddThis ( const G4VHit& hit) {
|
||||
G4VSceneHandler::AddThis(hit);
|
||||
}
|
||||
|
||||
void ClearTransientStore(); // Used for triggering detector re-drawing.
|
||||
|
||||
@@ -229,6 +235,8 @@ private:
|
||||
char fG4PrimDestDir [256] ;
|
||||
char fG4PrimFileName[256] ;
|
||||
G4int fMaxFileNum ;
|
||||
|
||||
G4int fPrec, fPrec2 ;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4DAWNFILEViewer.hh,v 1.8 2001/07/27 22:32:57 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Satoshi TANAKA
|
||||
// DAWNFILE viewer - opens window, hard copy, etc.
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4FRClientServer.hh,v 1.6 2001/07/11 10:08:44 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Satoshi TANAKA, Wed Jul 3 14:13:52 JST 1996
|
||||
////////////////////////////////
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4FRConst.hh,v 1.6 2001/07/11 10:08:44 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Satoshi TANAKA, Tue Jul 2 15:30:49 JST 1996
|
||||
///////////////////////////////////
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4FRFeatures.hh,v 1.5 2001/07/11 10:08:44 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
#if !defined G4_FR_FEATURES_HH
|
||||
#define G4_FR_FEATURES_HH
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4FRSceneFunc.icc,v 1.1 2001/12/01 20:59:59 stanaka Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4FRSceneFunc.icc,v 1.2 2002/09/02 04:39:10 stanaka Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
|
||||
|
||||
@@ -1094,7 +1094,9 @@ void G4FRSCENEHANDLER::SendStrDouble( const char* char_string ,
|
||||
G4int num_char ;
|
||||
char* command = new char [ COMMAND_BUF_SIZE ];
|
||||
|
||||
num_char = sprintf( command, "%s %g", char_string , dval ) ;
|
||||
num_char = sprintf( command, "%s %*.*g", \
|
||||
char_string , \
|
||||
fPrec2, fPrec, dval ) ;
|
||||
if( num_char < 0 ) {
|
||||
G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble(), 1\n" ;
|
||||
}
|
||||
@@ -1114,7 +1116,9 @@ G4FRSCENEHANDLER::SendStrDouble2( const char* char_string ,
|
||||
G4int num_char ;
|
||||
char* command = new char [ COMMAND_BUF_SIZE ];
|
||||
|
||||
num_char = sprintf( command, "%s %g %g", char_string , dval1, dval2 ) ;
|
||||
num_char = sprintf( command, "%s %*.*g %*.*g", char_string , \
|
||||
fPrec2, fPrec, dval1, \
|
||||
fPrec2, fPrec, dval2 ) ;
|
||||
if( num_char < 0 ) {
|
||||
G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble2(), 1\n" ;
|
||||
}
|
||||
@@ -1135,7 +1139,11 @@ G4FRSCENEHANDLER::SendStrDouble3( const char* char_string ,
|
||||
G4int num_char ;
|
||||
char* command = new char [ COMMAND_BUF_SIZE ];
|
||||
|
||||
num_char = sprintf( command, "%s %g %g %g", char_string , dval1, dval2, dval3 ) ;
|
||||
num_char = sprintf( command, "%s %*.*g %*.*g %*.*g", \
|
||||
char_string , \
|
||||
fPrec2, fPrec, dval1, \
|
||||
fPrec2, fPrec, dval2, \
|
||||
fPrec2, fPrec, dval3 ) ;
|
||||
if( num_char < 0 ) {
|
||||
G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble3(), 1\n" ;
|
||||
}
|
||||
@@ -1157,8 +1165,12 @@ G4FRSCENEHANDLER::SendStrDouble4( const char* char_string ,
|
||||
G4int num_char ;
|
||||
char* command = new char [ COMMAND_BUF_SIZE ];
|
||||
|
||||
num_char = sprintf( command, "%s %g %g %g %g", \
|
||||
char_string , dval1, dval2, dval3, dval4) ;
|
||||
num_char = sprintf( command, "%s %*.*g %*.*g %*.*g %*.*g", \
|
||||
char_string , \
|
||||
fPrec2, fPrec, dval1, \
|
||||
fPrec2, fPrec, dval2, \
|
||||
fPrec2, fPrec, dval3, \
|
||||
fPrec2, fPrec, dval4) ;
|
||||
if( num_char < 0 ) {
|
||||
G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble4(), 1\n" ;
|
||||
}
|
||||
@@ -1181,8 +1193,13 @@ G4FRSCENEHANDLER::SendStrDouble5( const char* char_string ,
|
||||
G4int num_char ;
|
||||
char* command = new char [ COMMAND_BUF_SIZE ];
|
||||
|
||||
num_char = sprintf( command, "%s %g %g %g %g %g", \
|
||||
char_string , dval1, dval2, dval3, dval4, dval5 ) ;
|
||||
num_char = sprintf( command, "%s %*.*g %*.*g %*.*g %*.*g %*.*g", \
|
||||
char_string , \
|
||||
fPrec2, fPrec, dval1, \
|
||||
fPrec2, fPrec, dval2, \
|
||||
fPrec2, fPrec, dval3, \
|
||||
fPrec2, fPrec, dval4, \
|
||||
fPrec2, fPrec, dval5 ) ;
|
||||
if( num_char < 0 ) {
|
||||
G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble5(), 1\n" ;
|
||||
}
|
||||
@@ -1206,8 +1223,14 @@ G4FRSCENEHANDLER::SendStrDouble6( const char* char_string ,
|
||||
G4int num_char ;
|
||||
char* command = new char [ COMMAND_BUF_SIZE ];
|
||||
|
||||
num_char = sprintf( command, "%s %g %g %g %g %g %g", \
|
||||
char_string , dval1, dval2, dval3, dval4, dval5, dval6 ) ;
|
||||
num_char = sprintf( command, "%s %*.*g %*.*g %*.*g %*.*g %*.*g %*.*g", \
|
||||
char_string , \
|
||||
fPrec2, fPrec, dval1, \
|
||||
fPrec2, fPrec, dval2, \
|
||||
fPrec2, fPrec, dval3, \
|
||||
fPrec2, fPrec, dval4, \
|
||||
fPrec2, fPrec, dval5, \
|
||||
fPrec2, fPrec, dval6 ) ;
|
||||
if( num_char < 0 ) {
|
||||
G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble6(), 1\n" ;
|
||||
}
|
||||
@@ -1232,8 +1255,15 @@ G4FRSCENEHANDLER::SendStrDouble7( const char* char_string ,
|
||||
G4int num_char ;
|
||||
char* command = new char [ COMMAND_BUF_SIZE ];
|
||||
|
||||
num_char = sprintf( command, "%s %g %g %g %g %g %g %g", \
|
||||
char_string , dval1, dval2, dval3, dval4, dval5, dval6, dval7 ) ;
|
||||
num_char = sprintf( command, "%s %*.*g %*.*g %*.*g %*.*g %*.*g %*.*g %*.*g", \
|
||||
char_string , \
|
||||
fPrec2, fPrec, dval1,\
|
||||
fPrec2, fPrec, dval2,\
|
||||
fPrec2, fPrec, dval3,\
|
||||
fPrec2, fPrec, dval4,\
|
||||
fPrec2, fPrec, dval5,\
|
||||
fPrec2, fPrec, dval6,\
|
||||
fPrec2, fPrec, dval7 ) ;
|
||||
if( num_char < 0 ) {
|
||||
G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble7(), 1\n" ;
|
||||
}
|
||||
@@ -1262,9 +1292,19 @@ G4FRSCENEHANDLER::SendStrDouble11( const char* char_string ,
|
||||
G4int num_char ;
|
||||
char* command = new char [ COMMAND_BUF_SIZE ];
|
||||
|
||||
num_char = sprintf( command, "%s %g %g %g %g %g %g %g %g %g %g %g", \
|
||||
char_string , dval1, dval2, dval3, dval4, dval5, \
|
||||
dval6, dval7, dval8, dval9, dval10, dval11 ) ;
|
||||
num_char = sprintf( command, "%s %*.*g %*.*g %*.*g %*.*g %*.*g %*.*g %*.*g %*.*g %*.*g %*.*g %*.*g", \
|
||||
char_string ,\
|
||||
fPrec2, fPrec, dval1, \
|
||||
fPrec2, fPrec, dval2, \
|
||||
fPrec2, fPrec, dval3, \
|
||||
fPrec2, fPrec, dval4, \
|
||||
fPrec2, fPrec, dval5, \
|
||||
fPrec2, fPrec, dval6, \
|
||||
fPrec2, fPrec, dval7, \
|
||||
fPrec2, fPrec, dval8, \
|
||||
fPrec2, fPrec, dval9, \
|
||||
fPrec2, fPrec, dval10,\
|
||||
fPrec2, fPrec, dval11 ) ;
|
||||
if( num_char < 0 ) {
|
||||
G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble11(), 1\n" ;
|
||||
}
|
||||
@@ -1285,8 +1325,11 @@ G4FRSCENEHANDLER::SendIntDouble3( G4int ival ,
|
||||
G4int num_char ;
|
||||
char* command = new char [ COMMAND_BUF_SIZE ];
|
||||
|
||||
num_char = sprintf( command, "%d %g %g %g", \
|
||||
ival , dval1, dval2, dval3 ) ;
|
||||
num_char = sprintf( command, "%d %*.*g %*.*g %*.*g", \
|
||||
ival , \
|
||||
fPrec2, fPrec, dval1, \
|
||||
fPrec2, fPrec, dval2, \
|
||||
fPrec2, fPrec, dval3 ) ;
|
||||
if( num_char < 0 ) {
|
||||
G4cerr << "ERROR G4FRSCENEHANDLER::SendIntDouble3(),1\n" ;
|
||||
}
|
||||
@@ -1350,9 +1393,15 @@ G4FRSCENEHANDLER::SendStrDouble6Str( const char* char_string1 ,
|
||||
G4int num_char ;
|
||||
char* command = new char [ COMMAND_BUF_SIZE ];
|
||||
|
||||
num_char = sprintf( command, "%s %g %g %g %g %g %g %s", \
|
||||
char_string1, dval1, dval2 , dval3, dval4, \
|
||||
dval5 , dval6, char_string2 );
|
||||
num_char = sprintf( command, "%s %*.*g %*.*g %*.*g %*.*g %*.*g %*.*g %s", \
|
||||
char_string1,\
|
||||
fPrec2, fPrec, dval1 , \
|
||||
fPrec2, fPrec, dval2 , \
|
||||
fPrec2, fPrec, dval3 , \
|
||||
fPrec2, fPrec, dval4 , \
|
||||
fPrec2, fPrec, dval5 , \
|
||||
fPrec2, fPrec, dval6, \
|
||||
char_string2 );
|
||||
if( num_char < 0 ) {
|
||||
G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble6Str(), 1\n" ;
|
||||
}
|
||||
@@ -1385,7 +1434,7 @@ void G4FRSCENEHANDLER::SendDouble( G4double val )
|
||||
G4int num_char ;
|
||||
char* command = new char [ COMMAND_BUF_SIZE ];
|
||||
|
||||
num_char = sprintf( command, "%g", val ) ;
|
||||
num_char = sprintf( command, "%*.*g", fPrec2, fPrec, val ) ;
|
||||
if( num_char < 0 ) {
|
||||
G4cerr << "ERROR G4FRSCENEHANDLER::SendStrInt(), 1\n" ;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4FRofstream.hh,v 1.5 2001/07/11 10:08:44 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
#include"g4std/fstream"
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4FukuiRenderer.hh,v 1.7 2001/07/11 10:08:44 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
//
|
||||
// Satoshi TANAKA
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4FukuiRendererSceneHandler.hh,v 1.9 2001/09/17 07:40:32 stanaka Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4FukuiRendererSceneHandler.hh,v 1.11 2002/12/11 15:58:02 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
//
|
||||
// Satoshi TANAKA, Fri Jun 28 11:19:19 JST 1996
|
||||
@@ -91,6 +91,12 @@ public:
|
||||
G4VSceneHandler::AddThis (polyhedra);
|
||||
}
|
||||
void AddThis ( const G4VSolid& solid );
|
||||
void AddThis ( const G4VTrajectory& traj) {
|
||||
G4VSceneHandler::AddThis(traj);
|
||||
}
|
||||
void AddThis ( const G4VHit& hit) {
|
||||
G4VSceneHandler::AddThis(hit);
|
||||
}
|
||||
|
||||
void ClearTransientStore(); // Used for triggering detector re-drawing.
|
||||
|
||||
@@ -239,6 +245,9 @@ private:
|
||||
G4bool flag_saving_g4_prim ;
|
||||
|
||||
const int COMMAND_BUF_SIZE ;
|
||||
|
||||
G4int fPrec, fPrec2 ;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4FukuiRendererViewer.hh,v 1.7 2001/07/11 10:08:44 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
//
|
||||
// Satoshi TANAKA, Fri Jun 28 12:10:14 JST 1996
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4DAWNFILE.cc,v 1.9 2001/07/27 22:32:59 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Satoshi TANAKA
|
||||
// DAWNFILE factory.
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4DAWNFILESceneHandler.cc,v 1.11 2001/12/01 20:52:06 stanaka Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4DAWNFILESceneHandler.cc,v 1.12 2002/09/02 04:39:21 stanaka Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Satoshi TANAKA
|
||||
// DAWNFILE scene.
|
||||
@@ -86,7 +86,8 @@ fSystem (system) ,
|
||||
fPrimDest () ,
|
||||
FRflag_in_modeling (false) ,
|
||||
flag_saving_g4_prim (false) ,
|
||||
COMMAND_BUF_SIZE (G4FRofstream::SEND_BUFMAX)
|
||||
COMMAND_BUF_SIZE (G4FRofstream::SEND_BUFMAX),
|
||||
fPrec (9), fPrec2 (16)
|
||||
{
|
||||
// count instantiated scenes
|
||||
fSceneCount++;
|
||||
@@ -111,6 +112,15 @@ COMMAND_BUF_SIZE (G4FRofstream::SEND_BUFMAX)
|
||||
}
|
||||
if( fMaxFileNum < 1 ) { fMaxFileNum = 1 ; }
|
||||
|
||||
|
||||
//----- precision control
|
||||
if( getenv( "G4DAWNFILE_PRECISION" ) != NULL ) {
|
||||
sscanf( getenv("G4DAWNFILE_PRECISION"), "%d", &fPrec ) ;
|
||||
} else {
|
||||
fPrec = 9 ;
|
||||
}
|
||||
fPrec2 = fPrec + 7 ;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4DAWNFILEViewer.cc,v 1.13 2001/07/27 22:33:01 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Satoshi TANAKA
|
||||
// DAWNFILE view - opens window, hard copy, etc.
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4FRClientServer.cc,v 1.5 2001/07/11 10:08:45 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Satoshi TANAKA, Wed Jul 3 14:14:29 JST 1996
|
||||
////////////////////////////////
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4FukuiRenderer.cc,v 1.7 2001/07/11 10:08:46 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
//
|
||||
// Satoshi TANAKA
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4FukuiRendererSceneHandler.cc,v 1.8 2001/12/01 20:52:06 stanaka Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4FukuiRendererSceneHandler.cc,v 1.9 2002/09/02 04:39:21 stanaka Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
//
|
||||
// Satoshi TANAKA, Fri Jun 28 11:34:24 JST 1996
|
||||
@@ -84,7 +84,8 @@ fSystem (system) ,
|
||||
fPrimDest (system.GetPrimDest() ) ,
|
||||
FRflag_in_modeling (false) ,
|
||||
flag_saving_g4_prim (false) ,
|
||||
COMMAND_BUF_SIZE (G4FRClientServer::SEND_BUFMAX)
|
||||
COMMAND_BUF_SIZE (G4FRClientServer::SEND_BUFMAX),
|
||||
fPrec (9), fPrec2 (16)
|
||||
{
|
||||
|
||||
//----- Connection to FukuiRenderer is set in the first scene
|
||||
@@ -110,6 +111,14 @@ COMMAND_BUF_SIZE (G4FRClientServer::SEND_BUFMAX)
|
||||
//----- count instantiated scenes
|
||||
fSceneCount++;
|
||||
|
||||
//----- precision control
|
||||
if( getenv( "G4DAWN_PRECISION" ) != NULL ) {
|
||||
sscanf( getenv("G4DAWN_PRECISION"), "%d", &fPrec ) ;
|
||||
} else {
|
||||
fPrec = 9 ;
|
||||
}
|
||||
fPrec2 = fPrec + 7 ;
|
||||
|
||||
} // G4FukuiRendererSceneHandler, constructor
|
||||
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4FukuiRendererViewer.cc,v 1.7 2001/07/11 10:08:46 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
//
|
||||
// Satoshi TANAKA, Fri Jun 28 12:09:11 JST 1996
|
||||
|
||||
Reference in New Issue
Block a user