78 fFlagDestOpen( false ),
79 fPVPickable ( false ),
95 if ( getenv(
"G4VRMLFILE_MAX_FILE_NUM" ) != NULL ) {
97 sscanf( getenv(
"G4VRMLFILE_MAX_FILE_NUM"),
"%d", &
fMaxFileNum ) ;
106 if( getenv(
"G4VRML_PV_PICKABLE" ) != NULL ) {
109 sscanf( getenv(
"G4VRML_PV_PICKABLE"),
"%d", &is_pickable ) ;
122 #if defined DEBUG_FR_SCENE
130 #define G4VRML2SCENEHANDLER G4VRML2FileSceneHandler
131 #define IS_CONNECTED this->isConnected()
132 #include "G4VRML2SceneHandlerFunc.icc"
134 #undef G4VRML2SCENEHANDLER
152 if( i == MAX_FILE_INDEX )
155 G4cout <<
"===========================================" <<
G4endl;
156 G4cout <<
"WARNING MESSAGE from VRML2FILE driver: " <<
G4endl;
157 G4cout <<
" This file name is the final one in the " <<
G4endl;
158 G4cout <<
" automatic updation of the output file name." <<
G4endl;
159 G4cout <<
" You may overwrite existing files, i.e. " <<
G4endl;
161 G4cout <<
"===========================================" <<
G4endl;
166 std::ostringstream filename;
169 << std::setw(2) << std::setfill(
'0') << i <<
".wrl";
189 G4cout <<
"===========================================" <<
G4endl;
191 G4cout <<
"Maximum number of files in the destination directory: " << fMaxFileNum <<
G4endl;
192 G4cout <<
" (Customizable with the environment variable: G4VRMLFILE_MAX_FILE_NUM) " <<
G4endl;
193 G4cout <<
"===========================================" <<
G4endl;
219 G4cout <<
" Set an environmental variable " ;
221 G4cout <<
" if you want to visualize the generated VRML file" <<
G4endl;
226 std::ostringstream ossCommand;
228 strncpy(command,ossCommand.str().c_str(),
sizeof(command)-1);
229 command[
sizeof(command)-1] =
'\0';
const int DEFAULT_MAX_WRL_FILE_NUM
G4double SetPVTransparency()
static G4int fSceneIdCount
system("rm -rf microbeam.root")
const char NO_VRML_VIEWER[]
const char VRMLFILE_DEST_DIR[]
virtual ~G4VRML2FileSceneHandler()
const char DEFAULT_WRL_FILE_NAME[]
static Verbosity GetVerbosity()
void SetPVPickability(G4bool on_off)
G4GLOB_DLL std::ostream G4cout
const char WRL_FILE_HEADER[]
char fVRMLFileDestDir[256]
typedef void(XMLCALL *XML_ElementDeclHandler)(void *userData
G4VRML2FileSceneHandler(G4VRML2File &system, const G4String &name="")
const char ENV_VRML_VIEWER[]