- Timestamp:
- Dec 22, 2010, 3:52:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/FukuiRenderer/src/G4DAWNFILESceneHandler.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4DAWNFILESceneHandler.cc,v 1.1 8 2006/06/29 21:16:52 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4DAWNFILESceneHandler.cc,v 1.19 2010/11/11 01:13:42 akimura Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // Satoshi TANAKA … … 41 41 #include <string.h> 42 42 #include "globals.hh" 43 #include "G4VisManager.hh" 43 44 #include "G4FRConst.hh" 44 45 #include "G4DAWNFILE.hh" … … 128 129 { 129 130 #if defined DEBUG_FR_SCENE 130 G4cerr << "***** ~G4DAWNFILESceneHandler" << G4endl; 131 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 132 G4cout << "***** ~G4DAWNFILESceneHandler" << G4endl; 131 133 #endif 132 134 if (fPrimDest.IsOpen()) … … 158 160 if( i == MAX_FILE_INDEX ) 159 161 { 160 G4cerr << "===========================================" << G4endl; 161 G4cerr << "WARNING MESSAGE from DAWNFILE driver: " << G4endl; 162 G4cerr << " This file name is the final one in the " << G4endl; 163 G4cerr << " automatic updation of the output file name." << G4endl; 164 G4cerr << " You may overwrite existing files, i.e. " << G4endl; 165 G4cerr << " g4_XX.prim and g4_XX.eps " << G4endl; 166 G4cerr << "===========================================" << G4endl; 162 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 163 G4cout << "===========================================" << G4endl; 164 G4cout << "WARNING MESSAGE from DAWNFILE driver: " << G4endl; 165 G4cout << " This file name is the final one in the " << G4endl; 166 G4cout << " automatic updation of the output file name." << G4endl; 167 G4cout << " You may overwrite existing files, i.e. " << G4endl; 168 G4cout << " g4_XX.prim and g4_XX.eps " << G4endl; 169 G4cout << "===========================================" << G4endl; 170 } 167 171 } 168 172 … … 188 192 } // for 189 193 190 G4c err<< "=========================================== " << G4endl;191 G4c err<< "Output file: " << fG4PrimFileName << G4endl;192 G4c err<< "Destination directory (current dir if NULL): " << fG4PrimDestDir << G4endl;193 G4c err<< "Maximal number of files in the destination directory: " << fMaxFileNum << G4endl;194 G4c err<< "Note: " << G4endl;195 G4c err<< " * The maximal number is customizable as: " << G4endl;196 G4c err<< " % setenv G4DAWNFILE_MAX_FILE_NUM number " << G4endl;197 G4c err<< " * The destination directory is customizable as:" << G4endl;198 G4c err<< " % setenv G4DAWNFILE_DEST_DIR dir_name/ " << G4endl;199 G4c err<< " ** Do not forget \"/\" at the end of the " << G4endl;200 G4c err<< " dir_name, e.g. \"./tmp/\". " << G4endl;201 G4c err<< "=========================================== " << G4endl;194 G4cout << "=========================================== " << G4endl; 195 G4cout << "Output file: " << fG4PrimFileName << G4endl; 196 G4cout << "Destination directory (current dir if NULL): " << fG4PrimDestDir << G4endl; 197 G4cout << "Maximal number of files in the destination directory: " << fMaxFileNum << G4endl; 198 G4cout << "Note: " << G4endl; 199 G4cout << " * The maximal number is customizable as: " << G4endl; 200 G4cout << " % setenv G4DAWNFILE_MAX_FILE_NUM number " << G4endl; 201 G4cout << " * The destination directory is customizable as:" << G4endl; 202 G4cout << " % setenv G4DAWNFILE_DEST_DIR dir_name/ " << G4endl; 203 G4cout << " ** Do not forget \"/\" at the end of the " << G4endl; 204 G4cout << " dir_name, e.g. \"./tmp/\". " << G4endl; 205 G4cout << "=========================================== " << G4endl; 202 206 203 207 } // G4DAWNFILESceneHandler::SetG4PrimFileName() … … 208 212 { 209 213 #if defined DEBUG_FR_SCENE 210 G4cerr << "***** BeginSavingG4Prim (called)\n"; 214 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 215 G4cout << "***** BeginSavingG4Prim (called)\n"; 211 216 #endif 212 217 … … 214 219 { 215 220 #if defined DEBUG_FR_SCENE 216 G4cerr << "***** (started) " ; 217 G4cerr << "(open g4.prim, ##)" << G4endl; 221 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 222 G4cout << "***** (started) " ; 223 G4cout << "(open g4.prim, ##)" << G4endl; 224 } 218 225 #endif 219 226 SetG4PrimFileName() ; // result set to fG4PrimFileName … … 228 235 { 229 236 #if defined DEBUG_FR_SCENE 230 G4cerr << "***** EndSavingG4Prim (called)\n"; 237 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 238 G4cout << "***** EndSavingG4Prim (called)\n"; 231 239 #endif 232 240 … … 234 242 { 235 243 #if defined DEBUG_FR_SCENE 236 G4cerr << "***** (started) (close g4.prim)" << G4endl; 244 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 245 G4cout << "***** (started) (close g4.prim)" << G4endl; 237 246 #endif 238 247 fPrimDest.Close() ; … … 248 257 { 249 258 #if defined DEBUG_FR_SCENE 250 G4cerr << "***** G4DAWNFILESceneHandler::FRBeginModeling (called & started)" << G4endl; 259 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 260 G4cout << "***** G4DAWNFILESceneHandler::FRBeginModeling (called & started)" << G4endl; 251 261 #endif 252 262 … … 259 269 //----- send SET_CAMERA command 260 270 #if defined DEBUG_FR_SCENE 261 G4cerr << "***** (!SetCamera in FRBeginModeling())" << G4endl; 271 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 272 G4cout << "***** (!SetCamera in FRBeginModeling())" << G4endl; 262 273 #endif 263 274 SendStr( FR_SET_CAMERA ); … … 265 276 //----- open device 266 277 #if defined DEBUG_FR_SCENE 267 G4cerr << "***** (!OpenDevice in FRBeginModeling())" << G4endl; 278 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 279 G4cout << "***** (!OpenDevice in FRBeginModeling())" << G4endl; 268 280 #endif 269 281 SendStr( FR_OPEN_DEVICE ); … … 271 283 //----- begin sending primitives 272 284 #if defined DEBUG_FR_SCENE 273 G4cerr << "***** (!BeginModeling in FRBeginModeling())" << G4endl; 285 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 286 G4cout << "***** (!BeginModeling in FRBeginModeling())" << G4endl; 274 287 #endif 275 288 SendStr( FR_BEGIN_MODELING ); FRflag_in_modeling = true ;
Note: See TracChangeset
for help on using the changeset viewer.