36 #ifdef G4VIS_BUILD_VRML_DRIVER
74 fPVPickable ( false ),
79 if( getenv(
"G4VRML_PV_PICKABLE" ) != NULL ) {
82 sscanf( getenv(
"G4VRML_PV_PICKABLE"),
"%d", &is_pickable ) ;
84 if ( is_pickable ) { SetPVPickability (
true ) ; }
93 G4VRML2SceneHandler::~G4VRML2SceneHandler()
95 #if defined DEBUG_FR_SCENE
103 #define G4VRML2SCENEHANDLER G4VRML2SceneHandler
104 #define IS_CONNECTED fDest.isConnected()
105 #include "G4VRML2SceneHandlerFunc.icc"
107 #undef G4VRML2SCENEHANDLER
110 void G4VRML2SceneHandler::connectPort(
G4int max_trial)
113 int port = fSystem.getPort();
114 for (trial = 0; !fDest.isConnected()&& trial < max_trial; trial++, port++ ) {
115 if (fDest.connect( (
const char * )fSystem.getHostName(), port)) {
118 G4cout <<
"*** GEANT4 is connected to port ";
119 G4cout << fDest.getPort();
120 G4cout <<
" of server " << fSystem.getHostName() <<
G4endl;
126 G4cout <<
"*** GEANT4 incremented targeting port to ";
135 if (!fDest.isConnected()) {
138 G4cout <<
" Maybe, you have not invoked viewer g4vrmlview yet, " <<
G4endl;
139 G4cout <<
" or too many viewers are already running in the " <<
G4endl;
140 G4cout <<
" server host(" << fSystem.getHostName() <<
"). " <<
G4endl;
145 void G4VRML2SceneHandler::closePort()
153 G4int G4VRML2SceneHandler::fSceneIdCount = 0;
system("rm -rf microbeam.root")
static Verbosity GetVerbosity()
G4GLOB_DLL std::ostream G4cout