77 fFlagDestOpen(
false ),
78 fPVPickable (
false ),
94 if ( std::getenv(
"G4VRMLFILE_MAX_FILE_NUM" ) != NULL ) {
96 sscanf( std::getenv(
"G4VRMLFILE_MAX_FILE_NUM"),
"%d", &
fMaxFileNum ) ;
105 if( std::getenv(
"G4VRML_PV_PICKABLE" ) != NULL ) {
108 sscanf( std::getenv(
"G4VRML_PV_PICKABLE"),
"%d", &is_pickable ) ;
121 #if defined DEBUG_FR_SCENE
129 #define G4VRML2SCENEHANDLER G4VRML2FileSceneHandler
130 #define IS_CONNECTED this->isConnected()
131 #include "G4VRML2SceneHandlerFunc.icc"
133 #undef G4VRML2SCENEHANDLER
151 if( i == MAX_FILE_INDEX )
154 G4cout <<
"===========================================" <<
G4endl;
155 G4cout <<
"WARNING MESSAGE from VRML2FILE driver: " <<
G4endl;
156 G4cout <<
" This file name is the final one in the " <<
G4endl;
157 G4cout <<
" automatic updation of the output file name." <<
G4endl;
158 G4cout <<
" You may overwrite existing files, i.e. " <<
G4endl;
160 G4cout <<
"===========================================" <<
G4endl;
168 << std::setw(2) << std::setfill(
'0') << i <<
".wrl";
188 G4cout <<
"===========================================" <<
G4endl;
190 G4cout <<
"Maximum number of files in the destination directory: " << fMaxFileNum <<
G4endl;
191 G4cout <<
" (Customizable with the environment variable: G4VRMLFILE_MAX_FILE_NUM) " <<
G4endl;
192 G4cout <<
"===========================================" <<
G4endl;
218 G4cout <<
" Set an environmental variable " ;
220 G4cout <<
" if you want to visualize the generated VRML file" <<
G4endl;
225 std::ostringstream ossCommand;
227 strncpy(command,ossCommand.str().c_str(),
sizeof(command)-1);
228 command[
sizeof(command)-1] =
'\0';