- Timestamp:
- Dec 22, 2010, 3:52:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/VRML/src/G4VRML2SceneHandler.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4VRML2SceneHandler.cc,v 1.1 2 2006/06/29 21:26:15 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4VRML2SceneHandler.cc,v 1.13 2010/11/11 00:14:50 akimura Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // G4VRML2SceneHandler.cc … … 46 46 47 47 #include "globals.hh" 48 #include "G4VisManager.hh" 49 48 50 #include "G4VPhysicalVolume.hh" 49 51 #include "G4LogicalVolume.hh" … … 93 95 { 94 96 #if defined DEBUG_FR_SCENE 95 G4cerr << "***** ~G4VRML2SceneHandler" << G4endl; 97 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 98 G4cout << "***** ~G4VRML2SceneHandler" << G4endl; 96 99 #endif 97 100 } … … 113 116 if (fDest.connect( (const char * )fSystem.getHostName(), port)) { 114 117 // INET domain connection is established 115 G4cerr << "*** GEANT4 is connected to port "; 116 G4cerr << fDest.getPort(); 117 G4cerr << " of server " << fSystem.getHostName() << G4endl; 118 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 119 G4cout << "*** GEANT4 is connected to port "; 120 G4cout << fDest.getPort(); 121 G4cout << " of server " << fSystem.getHostName() << G4endl; 122 } 118 123 break; 119 124 } else { 120 125 // Connection failed. Try the next port. 121 G4cerr << "*** GEANT4 incremented targeting port to "; 122 G4cerr << port << G4endl; 126 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 127 G4cout << "*** GEANT4 incremented targeting port to "; 128 G4cout << port << G4endl; 129 } 123 130 } 124 131 … … 128 135 129 136 if (!fDest.isConnected()) { 130 G4cerr << "*** INET Connection failed. " << G4endl; 131 G4cerr << " Maybe, you have not invoked viewer g4vrmlview yet, " << G4endl; 132 G4cerr << " or too many viewers are already running in the " << G4endl; 133 G4cerr << " server host(" << fSystem.getHostName() << "). " << G4endl; 137 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 138 G4cout << "*** INET Connection failed. " << G4endl; 139 G4cout << " Maybe, you have not invoked viewer g4vrmlview yet, " << G4endl; 140 G4cout << " or too many viewers are already running in the " << G4endl; 141 G4cout << " server host(" << fSystem.getHostName() << "). " << G4endl; 142 } 134 143 } 135 144 } … … 138 147 { 139 148 fDest.close(); 140 G4cerr << "*** INET Connection closed. " << G4endl; 149 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 150 G4cout << "*** INET Connection closed. " << G4endl; 141 151 } 142 152
Note: See TracChangeset
for help on using the changeset viewer.