- Timestamp:
- Dec 22, 2010, 3:52:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/VRML/src/G4VRML1FileSceneHandler.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4VRML1FileSceneHandler.cc,v 1.1 2 2006/06/29 21:25:57 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4VRML1FileSceneHandler.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 // G4VRML1FileSceneHandler.cc … … 40 40 41 41 #include "globals.hh" 42 #include "G4VisManager.hh" 42 43 #include "G4Scene.hh" 43 44 #include "G4VPhysicalVolume.hh" … … 104 105 { 105 106 #if defined DEBUG_FR_SCENE 106 G4cerr << "***** ~G4VRML1FileSceneHandler" << G4endl; 107 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 108 G4cout << "***** ~G4VRML1FileSceneHandler" << G4endl; 107 109 #endif 108 110 VRMLEndModeling(); … … 134 136 if( i == MAX_FILE_INDEX ) 135 137 { 136 G4cerr << "===========================================" << G4endl; 137 G4cerr << "WARNING MESSAGE from VRML1FILE driver: " << G4endl; 138 G4cerr << " This file name is the final one in the " << G4endl; 139 G4cerr << " automatic updation of the output file name." << G4endl; 140 G4cerr << " You may overwrite existing files, i.e. " << G4endl; 141 G4cerr << " g4_XX.wrl. " << G4endl; 142 G4cerr << "===========================================" << G4endl; 138 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 139 G4cout << "===========================================" << G4endl; 140 G4cout << "WARNING MESSAGE from VRML1FILE driver: " << G4endl; 141 G4cout << " This file name is the final one in the " << G4endl; 142 G4cout << " automatic updation of the output file name." << G4endl; 143 G4cout << " You may overwrite existing files, i.e. " << G4endl; 144 G4cout << " g4_XX.wrl. " << G4endl; 145 G4cout << "===========================================" << G4endl; 146 } 143 147 } 144 148 … … 166 170 167 171 // open a VRML 1.0 file with determined file name 168 G4cerr << "===========================================" << G4endl; 169 G4cerr << "Output VRML 1.0 file: " << fVRMLFileName << G4endl; 170 G4cerr << "Maximum number of files in the destination directory: " << fMaxFileNum << G4endl; 171 G4cerr << " (Customizable with the environment variable: G4VRMLFILE_MAX_FILE_NUM) " << G4endl; 172 G4cerr << "===========================================" << G4endl; 173 172 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 173 G4cout << "===========================================" << G4endl; 174 G4cout << "Output VRML 1.0 file: " << fVRMLFileName << G4endl; 175 G4cout << "Maximum number of files in the destination directory: " << fMaxFileNum << G4endl; 176 G4cout << " (Customizable with the environment variable: G4VRMLFILE_MAX_FILE_NUM) " << G4endl; 177 G4cout << "===========================================" << G4endl; 178 } 174 179 fDest.open(fVRMLFileName) ; fFlagDestOpen = true ; 175 180 } … … 187 192 // close VRML file 188 193 fDest.close(); fFlagDestOpen = false ; 189 G4cerr << "*** VRML 1.0 File " << fVRMLFileName << " is generated." << G4endl; 194 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 195 G4cout << "*** VRML 1.0 File " << fVRMLFileName << " is generated." << G4endl; 190 196 191 197 … … 193 199 194 200 if ( !strcmp(viewer, NO_VRML_VIEWER )) { 195 G4cerr << "MESSAGE from VRML1FILE driver:" << G4endl; 196 G4cerr << " Set an environmental variable " ; 197 G4cerr << ENV_VRML_VIEWER << G4endl; 198 G4cerr << " if you want to visualize the generated VRML file" << G4endl; 199 G4cerr << " automatically. For example, " << G4endl; 200 G4cerr << " setenv " << ENV_VRML_VIEWER << " vrweb " << G4endl; 201 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 202 G4cout << "MESSAGE from VRML1FILE driver:" << G4endl; 203 G4cout << " Set an environmental variable " ; 204 G4cout << ENV_VRML_VIEWER << G4endl; 205 G4cout << " if you want to visualize the generated VRML file" << G4endl; 206 G4cout << " automatically. For example, " << G4endl; 207 G4cout << " setenv " << ENV_VRML_VIEWER << " vrweb " << G4endl; 208 } 201 209 } else { 202 210 sprintf( command, "%s %s", viewer, fVRMLFileName );
Note: See TracChangeset
for help on using the changeset viewer.