80 fFlagDestOpen( false )
93 if ( getenv(
"G4VRMLFILE_MAX_FILE_NUM" ) != NULL ) {
95 sscanf( getenv(
"G4VRMLFILE_MAX_FILE_NUM"),
"%d", &
fMaxFileNum ) ;
107 #if defined DEBUG_FR_SCENE
115 #define G4VRML1SCENEHANDLER G4VRML1FileSceneHandler
116 #define IS_CONNECTED this->isConnected()
117 #include "G4VRML1SceneHandlerFunc.icc"
119 #undef G4VRML1SCENEHANDLER
137 if( i == MAX_FILE_INDEX )
140 G4cout <<
"===========================================" <<
G4endl;
141 G4cout <<
"WARNING MESSAGE from VRML1FILE driver: " <<
G4endl;
142 G4cout <<
" This file name is the final one in the " <<
G4endl;
143 G4cout <<
" automatic updation of the output file name." <<
G4endl;
144 G4cout <<
" You may overwrite existing files, i.e. " <<
G4endl;
146 G4cout <<
"===========================================" <<
G4endl;
151 std::ostringstream filename;
154 << std::setw(2) << std::setfill(
'0') << i <<
".wrl";
175 G4cout <<
"===========================================" <<
G4endl;
177 G4cout <<
"Maximum number of files in the destination directory: " << fMaxFileNum <<
G4endl;
178 G4cout <<
" (Customizable with the environment variable: G4VRMLFILE_MAX_FILE_NUM) " <<
G4endl;
179 G4cout <<
"===========================================" <<
G4endl;
205 G4cout <<
" Set an environmental variable " ;
207 G4cout <<
" if you want to visualize the generated VRML file" <<
G4endl;
212 std::ostringstream ossCommand;
214 strncpy(command,ossCommand.str().c_str(),
sizeof(command)-1);
215 command[
sizeof(command)-1] =
'\0';
const int DEFAULT_MAX_WRL_FILE_NUM
system("rm -rf microbeam.root")
const char NO_VRML_VIEWER[]
const char VRMLFILE_DEST_DIR[]
const char DEFAULT_WRL_FILE_NAME[]
G4VRML1FileSceneHandler(G4VRML1File &system, const G4String &name="")
virtual ~G4VRML1FileSceneHandler()
static Verbosity GetVerbosity()
G4GLOB_DLL std::ostream G4cout
const char WRL_FILE_HEADER[]
static G4int fSceneIdCount
typedef void(XMLCALL *XML_ElementDeclHandler)(void *userData
char fVRMLFileDestDir[256]
const char ENV_VRML_VIEWER[]