- Timestamp:
- Dec 22, 2010, 3:52:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/VRML/src/G4VRML1SceneHandler.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4VRML1SceneHandler.cc,v 1.1 0 2006/06/29 21:26:01 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4VRML1SceneHandler.cc,v 1.11 2010/11/11 00:14:50 akimura Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // G4VRML1SceneHandler.cc … … 44 44 45 45 #include "globals.hh" 46 #include "G4VisManager.hh" 46 47 #include "G4VPhysicalVolume.hh" 47 48 #include "G4LogicalVolume.hh" … … 81 82 { 82 83 #if defined DEBUG_FR_SCENE 83 G4cerr << "***** ~G4VRML1SceneHandler" << G4endl; 84 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 85 G4cout << "***** ~G4VRML1SceneHandler" << G4endl; 84 86 #endif 85 87 } … … 101 103 if (fDest.connect( (const char * )fSystem.getHostName(), port)) { 102 104 // INET domain connection is established 103 G4cerr << "*** GEANT4 is connected to port "; 104 G4cerr << fDest.getPort(); 105 G4cerr << " of server " << fSystem.getHostName() << G4endl; 105 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 106 G4cout << "*** GEANT4 is connected to port "; 107 G4cout << fDest.getPort(); 108 G4cout << " of server " << fSystem.getHostName() << G4endl; 109 } 106 110 break; 107 111 } else { 108 112 // Connection failed. Try the next port. 109 G4cerr << "*** GEANT4 incremented targeting port to "; 110 G4cerr << port << G4endl; 113 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 114 G4cout << "*** GEANT4 incremented targeting port to "; 115 G4cout << port << G4endl; 116 } 111 117 } 112 118 … … 116 122 117 123 if (!fDest.isConnected()) { 118 G4cerr << "*** INET Connection failed. " << G4endl; 119 G4cerr << " Maybe, you have not invoked viewer g4vrmlview yet, " << G4endl; 120 G4cerr << " or too many viewers are already running in the " << G4endl; 121 G4cerr << " server host(" << fSystem.getHostName() << "). " << G4endl; 124 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 125 G4cout << "*** INET Connection failed. " << G4endl; 126 G4cout << " Maybe, you have not invoked viewer g4vrmlview yet, " << G4endl; 127 G4cout << " or too many viewers are already running in the " << G4endl; 128 G4cout << " server host(" << fSystem.getHostName() << "). " << G4endl; 129 } 122 130 } 123 131 } … … 126 134 { 127 135 fDest.close(); 128 G4cerr << "*** INET Connection closed. " << G4endl; 136 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 137 G4cout << "*** INET Connection closed. " << G4endl; 129 138 } 130 139
Note: See TracChangeset
for help on using the changeset viewer.