Changeset 1347 for trunk/source/visualization/FukuiRenderer
- Timestamp:
- Dec 22, 2010, 3:52:27 PM (15 years ago)
- Location:
- trunk/source/visualization/FukuiRenderer
- Files:
-
- 22 edited
-
CVS/Entries (modified) (1 diff)
-
History (modified) (2 diffs)
-
include/CVS/Entries (modified) (1 diff)
-
include/G4DAWNFILE.hh (modified) (1 diff)
-
include/G4DAWNFILESceneHandler.hh (modified) (1 diff)
-
include/G4DAWNFILEViewer.hh (modified) (1 diff)
-
include/G4FRClientServer.hh (modified) (1 diff)
-
include/G4FRConst.hh (modified) (1 diff)
-
include/G4FRFeatures.hh (modified) (1 diff)
-
include/G4FRSceneFunc.icc (modified) (43 diffs)
-
include/G4FRofstream.hh (modified) (1 diff)
-
include/G4FukuiRenderer.hh (modified) (1 diff)
-
include/G4FukuiRendererSceneHandler.hh (modified) (1 diff)
-
include/G4FukuiRendererViewer.hh (modified) (1 diff)
-
src/CVS/Entries (modified) (1 diff)
-
src/G4DAWNFILE.cc (modified) (1 diff)
-
src/G4DAWNFILESceneHandler.cc (modified) (13 diffs)
-
src/G4DAWNFILEViewer.cc (modified) (9 diffs)
-
src/G4FRClientServer.cc (modified) (5 diffs)
-
src/G4FukuiRenderer.cc (modified) (11 diffs)
-
src/G4FukuiRendererSceneHandler.cc (modified) (7 diffs)
-
src/G4FukuiRendererViewer.cc (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/FukuiRenderer/CVS/Entries
r1346 r1347 3 3 /CMakeLists.txt/1.1/Wed Sep 29 19:11:33 2010//Tgeant4-09-04-ref-00 4 4 /sources.cmake/1.1/Wed Sep 29 19:11:41 2010//Tgeant4-09-04-ref-00 5 /CUSTOMIZE/1.2/Mon Sep 2 05:41:38 2002//Tgeant4-09-04-ref-00 6 /GNUmakefile/1.6/Wed Oct 21 14:59:17 2009//Tgeant4-09-04-ref-00 7 /History/1.29/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00 8 /README/1.2/Thu Nov 4 02:06:43 1999//Tgeant4-09-04-ref-00 -
trunk/source/visualization/FukuiRenderer/History
r1294 r1347 1 $Id: History,v 1.2 8 2010/05/30 10:18:32 allisonExp $1 $Id: History,v 1.29 2010/11/11 01:13:42 akimura Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 20 20 History file for visualization/FukuiRenderer sub-category 21 21 --------------------------------------------------------- 22 23 11 November 2010 Akinori Kimura (DAWN-V09-03-01) 24 - Replaced G4cerr with G4cout and added the following line before G4cout. 25 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 22 26 23 27 30th May 2010 John Allison (DAWN-V09-03-00) -
trunk/source/visualization/FukuiRenderer/include/CVS/Entries
r1346 r1347 1 /G4DAWNFILE.hh/1.9/Thu Jun 29 21:16:28 2006//Tgeant4-09-04-ref-00 2 /G4DAWNFILESceneHandler.hh/1.18/Sun May 30 10:18:32 2010//Tgeant4-09-04-ref-00 3 /G4DAWNFILEViewer.hh/1.10/Thu Jun 29 21:16:32 2006//Tgeant4-09-04-ref-00 4 /G4FRClientServer.hh/1.7/Thu Jun 29 21:16:34 2006//Tgeant4-09-04-ref-00 5 /G4FRConst.hh/1.7/Thu Jun 29 21:16:36 2006//Tgeant4-09-04-ref-00 6 /G4FRFeatures.hh/1.6/Thu Jun 29 21:16:38 2006//Tgeant4-09-04-ref-00 7 /G4FRSceneFunc.icc/1.16/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00 8 /G4FRofstream.hh/1.9/Thu Jun 29 21:16:42 2006//Tgeant4-09-04-ref-00 9 /G4FukuiRenderer.hh/1.8/Thu Jun 29 21:16:44 2006//Tgeant4-09-04-ref-00 10 /G4FukuiRendererSceneHandler.hh/1.17/Sun May 30 10:18:32 2010//Tgeant4-09-04-ref-00 11 /G4FukuiRendererViewer.hh/1.8/Thu Jun 29 21:16:48 2006//Tgeant4-09-04-ref-00 1 12 D -
trunk/source/visualization/FukuiRenderer/include/G4DAWNFILE.hh
r1337 r1347 26 26 // 27 27 // $Id: G4DAWNFILE.hh,v 1.9 2006/06/29 21:16:28 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // Satoshi TANAKA -
trunk/source/visualization/FukuiRenderer/include/G4DAWNFILESceneHandler.hh
r1337 r1347 26 26 // 27 27 // $Id: G4DAWNFILESceneHandler.hh,v 1.18 2010/05/30 10:18:32 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // Satoshi TANAKA -
trunk/source/visualization/FukuiRenderer/include/G4DAWNFILEViewer.hh
r1337 r1347 26 26 // 27 27 // $Id: G4DAWNFILEViewer.hh,v 1.10 2006/06/29 21:16:32 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // Satoshi TANAKA -
trunk/source/visualization/FukuiRenderer/include/G4FRClientServer.hh
r1337 r1347 26 26 // 27 27 // $Id: G4FRClientServer.hh,v 1.7 2006/06/29 21:16:34 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // Satoshi TANAKA, Wed Jul 3 14:13:52 JST 1996 -
trunk/source/visualization/FukuiRenderer/include/G4FRConst.hh
r1337 r1347 26 26 // 27 27 // $Id: G4FRConst.hh,v 1.7 2006/06/29 21:16:36 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // Satoshi TANAKA, Tue Jul 2 15:30:49 JST 1996 -
trunk/source/visualization/FukuiRenderer/include/G4FRFeatures.hh
r1337 r1347 26 26 // 27 27 // $Id: G4FRFeatures.hh,v 1.6 2006/06/29 21:16:38 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 #if !defined G4_FR_FEATURES_HH -
trunk/source/visualization/FukuiRenderer/include/G4FRSceneFunc.icc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4FRSceneFunc.icc,v 1.1 5 2006/07/10 15:31:45 allisonExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4FRSceneFunc.icc,v 1.16 2010/11/11 01:13:42 akimura Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 31 #include "G4VisManager.hh" 31 32 #include "G4PhysicalVolumeModel.hh" 32 33 #include "G4LogicalVolume.hh" … … 38 39 { 39 40 #if defined DEBUG_FR_SCENE 40 G4cerr << "***** AddPrimitive\n"; 41 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 42 G4cout << "***** AddPrimitive\n"; 41 43 #endif 42 44 //----- Initialize Fukui Renderer IF NECESSARY … … 84 86 //----- 85 87 #if defined DEBUG_FR_SCENE 86 G4cerr << "***** AddPrimitive( G4NURBS )\n"; 88 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 89 G4cout << "***** AddPrimitive( G4NURBS )\n"; 87 90 #endif 88 91 … … 102 105 //----- 103 106 #if defined DEBUG_FR_SCENE 104 G4cerr << "***** AddPrimitive( G4Text )\n"; 107 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 108 G4cout << "***** AddPrimitive( G4Text )\n"; 105 109 #endif 106 110 //----- Initialize DAWN IF NECESSARY … … 135 139 int MAX_STR_LENGTH = COMMAND_BUF_SIZE - 100 ; 136 140 if ( MAX_STR_LENGTH <= 0 ) { 137 G4cerr << "ERROR (FukuiRenderer) : Not enough buffer size for data transferring." << G4endl; 138 G4cerr << " G4Text Visualization is aborted" << G4endl; 139 return ; 141 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 142 G4cout << "ERROR (FukuiRenderer) : Not enough buffer size for data transferring." << G4endl; 143 G4cout << " G4Text Visualization is aborted" << G4endl; 144 } 145 return ; 140 146 } 141 147 char* buf = new char [ (MAX_STR_LENGTH + 1) ] ; … … 175 181 //----- 176 182 #if defined DEBUG_FR_SCENE 177 G4cerr << "***** AddPrimitive( G4Circle )\n"; 183 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 184 G4cout << "***** AddPrimitive( G4Circle )\n"; 178 185 #endif 179 186 //----- Initialize Fukui Renderer IF NECESSARY … … 218 225 //----- 219 226 #if defined DEBUG_FR_SCENE 220 G4cerr << "***** AddPrimitive( G4Square )\n"; 227 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 228 G4cout << "***** AddPrimitive( G4Square )\n"; 221 229 #endif 222 230 //----- Initialize Fukui Renderer IF NECESSARY … … 261 269 //----- 262 270 #if defined DEBUG_FR_SCENE 263 G4cerr << "***** AddPrimitive( G4Polyhedron )\n"; 271 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 272 G4cout << "***** AddPrimitive( G4Polyhedron )\n"; 264 273 #endif 265 274 … … 310 319 break; 311 320 default: 312 G4cerr << 313 "ERROR G4FRSCENEHANDLER::AddPrimitive(G4Polyhedron)\n"; 314 G4PhysicalVolumeModel* pPVModel = 315 dynamic_cast<G4PhysicalVolumeModel*>(fpModel); 316 if (pPVModel) G4cerr << 317 "Volume " << pPVModel->GetCurrentPV()->GetName() << 318 ", Solid " << pPVModel->GetCurrentLV()->GetSolid()->GetName() << 319 " (" << pPVModel->GetCurrentLV()->GetSolid()->GetEntityType(); 320 G4cerr << 321 "\nG4Polyhedron facet with " << i << " edges" << G4endl; 321 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 322 G4cout << 323 "ERROR G4FRSCENEHANDLER::AddPrimitive(G4Polyhedron)\n"; 324 G4PhysicalVolumeModel* pPVModel = 325 dynamic_cast<G4PhysicalVolumeModel*>(fpModel); 326 if (pPVModel) 327 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 328 G4cout << 329 "Volume " << pPVModel->GetCurrentPV()->GetName() << 330 ", Solid " << pPVModel->GetCurrentLV()->GetSolid()->GetName() << 331 " (" << pPVModel->GetCurrentLV()->GetSolid()->GetEntityType(); 332 G4cout << 333 "\nG4Polyhedron facet with " << i << " edges" << G4endl; 334 } 322 335 } 323 336 } … … 334 347 ////////////////////////////////////////////////// 335 348 //#if defined DEBUG_FR_SCENE 336 // G4c err<< "***** SendNdiv() (/Ndiv)" << G4endl;349 // G4cout << "***** SendNdiv() (/Ndiv)" << G4endl; 337 350 //#endif 338 351 ////////////////////////////////////////////////// … … 348 361 // } else { 349 362 #if defined DEBUG_FR_SCENE 350 G4cerr << "WARNING: GetNoOfSides() failed. " ; 351 G4cerr << "The default value " << num_division ; 352 G4cerr << " is assigned." << G4endl; 363 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 364 G4cout << "WARNING: GetNoOfSides() failed. " ; 365 G4cout << "The default value " << num_division ; 366 G4cout << " is assigned." << G4endl; 367 } 353 368 #endif 354 369 //} … … 359 374 ////////////////////////////////////////////////// 360 375 //#if defined DEBUG_FR_SCENE 361 // G4c err<< "Ndiv = " << num_division << G4endl;376 // G4cout << "Ndiv = " << num_division << G4endl; 362 377 //#endif 363 378 ////////////////////////////////////////////////// … … 374 389 //----- 375 390 #if defined DEBUG_FR_SCENE 376 G4cerr << "***** FREndModeling (called)" << G4endl; 391 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 392 G4cout << "***** FREndModeling (called)" << G4endl; 377 393 #endif 378 394 if( FRIsInModeling() ) { 379 395 380 396 #if defined DEBUG_FR_SCENE 381 G4cerr << "***** FREndModeling (started) " ; 382 G4cerr << "(/EndModeling, /DrawAll, /CloseDevice)" << G4endl; 397 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 398 G4cout << "***** FREndModeling (started) " ; 399 G4cout << "(/EndModeling, /DrawAll, /CloseDevice)" << G4endl; 400 } 383 401 #endif 384 402 … … 407 425 { 408 426 #if defined DEBUG_FR_SCENE 409 G4cerr << "***** BeginPrimitives \n"; 427 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 428 G4cout << "***** BeginPrimitives \n"; 410 429 #endif 411 430 … … 422 441 { 423 442 #if defined DEBUG_FR_SCENE 424 G4cerr << "***** EndPrimitives \n"; 443 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 444 G4cout << "***** EndPrimitives \n"; 425 445 #endif 426 446 G4VSceneHandler::EndPrimitives (); … … 434 454 { 435 455 #if defined DEBUG_FR_SCENE 436 G4cerr << "***** AddSolid ( box )\n"; 456 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 457 G4cout << "***** AddSolid ( box )\n"; 437 458 #endif 438 459 //----- skip drawing invisible primitive … … 473 494 { 474 495 #if defined DEBUG_FR_SCENE 475 G4cerr << "***** AddSolid ( tubes )\n"; 496 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 497 G4cout << "***** AddSolid ( tubes )\n"; 476 498 #endif 477 499 //----- skip drawing invisible primitive … … 515 537 { 516 538 #if defined DEBUG_FR_SCENE 517 G4cerr << "***** AddSolid ( cons )\n"; 539 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 540 G4cout << "***** AddSolid ( cons )\n"; 518 541 #endif 519 542 //----- skip drawing invisible primitive … … 557 580 { 558 581 #if defined DEBUG_FR_SCENE 559 G4cerr << "***** AddSolid ( trd )\n"; 582 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 583 G4cout << "***** AddSolid ( trd )\n"; 560 584 #endif 561 585 … … 598 622 { 599 623 #if defined DEBUG_FR_SCENE 600 G4cerr << "***** AddSolid ( sphere )\n"; 624 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 625 G4cout << "***** AddSolid ( sphere )\n"; 601 626 #endif 602 627 //----- skip drawing invisible primitive … … 658 683 { 659 684 #if defined DEBUG_FR_SCENE 660 G4cerr << "***** AddSolid ( para )\n"; 685 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 686 G4cout << "***** AddSolid ( para )\n"; 661 687 #endif 662 688 … … 685 711 G4double cosTheta = para.GetSymAxis().z() ; 686 712 if( cosTheta < epsilon ) { 687 G4cerr << "WARNING from FukuiRenderer (DAWN) driver:" << G4endl; 688 G4cerr << " Invalid parameter for parallelepiped." << G4endl; 689 G4cerr << " Drawing is skipped." << G4endl; 690 return ; 713 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 714 G4cout << "WARNING from FukuiRenderer (DAWN) driver:" << G4endl; 715 G4cout << " Invalid parameter for parallelepiped." << G4endl; 716 G4cout << " Drawing is skipped." << G4endl; 717 } 718 return ; 691 719 } 692 720 G4double tanTheta_cosPhi_cosTheta = para.GetSymAxis().x() ; … … 714 742 { 715 743 #if defined DEBUG_FR_SCENE 716 G4cerr << "***** AddSolid ( trap )\n"; 744 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 745 G4cout << "***** AddSolid ( trap )\n"; 717 746 #endif 718 747 … … 741 770 G4double cosTheta = trap.GetSymAxis().z() ; 742 771 if( cosTheta < epsilon ) { 743 G4cerr << "WARNING from FukuiRenderer (DAWN) driver:" << G4endl; 744 G4cerr << " Invalid parameter for trap, 1" << G4endl; 745 G4cerr << " Drawing is skipped." << G4endl; 746 return ; 772 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 773 G4cout << "WARNING from FukuiRenderer (DAWN) driver:" << G4endl; 774 G4cout << " Invalid parameter for trap, 1" << G4endl; 775 G4cout << " Drawing is skipped." << G4endl; 776 } 777 return ; 747 778 } 748 779 … … 805 836 { 806 837 #if defined DEBUG_FR_SCENE 807 G4cerr << "***** AddSolid ( torus )\n"; 838 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 839 G4cout << "***** AddSolid ( torus )\n"; 808 840 #endif 809 841 //----- skip drawing invisible primitive … … 929 961 { 930 962 #if defined DEBUG_FR_SCENE 931 G4cerr << "***** SendBoundingBox () (/BoundingBox)" << G4endl; 963 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 964 G4cout << "***** SendBoundingBox () (/BoundingBox)" << G4endl; 932 965 #endif 933 966 … … 1048 1081 num_char = sprintf( command, "%s %d", char_string , ival ) ; 1049 1082 if( num_char < 0 ) { 1050 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrInt(), 1\n" ; 1083 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 1084 G4cout << "ERROR G4FRSCENEHANDLER::SendStrInt(), 1\n" ; 1051 1085 } 1052 1086 SendStr( command ); … … 1070 1104 1071 1105 if( num_char < 0 ) { 1072 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrInt3(), 1\n" ; 1106 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 1107 G4cout << "ERROR G4FRSCENEHANDLER::SendStrInt3(), 1\n" ; 1073 1108 } 1074 1109 SendStr( command ); … … 1094 1129 1095 1130 if( num_char < 0 ) { 1096 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrInt4(), 1\n" ; 1131 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 1132 G4cout << "ERROR G4FRSCENEHANDLER::SendStrInt4(), 1\n" ; 1097 1133 } 1098 1134 SendStr( command ); … … 1113 1149 fPrec2, fPrec, dval ) ; 1114 1150 if( num_char < 0 ) { 1115 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble(), 1\n" ; 1151 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 1152 G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble(), 1\n" ; 1116 1153 } 1117 1154 SendStr( command ); … … 1135 1172 fPrec2, fPrec, dval2 ) ; 1136 1173 if( num_char < 0 ) { 1137 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble2(), 1\n" ; 1174 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 1175 G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble2(), 1\n" ; 1138 1176 } 1139 1177 SendStr( command ); … … 1160 1198 fPrec2, fPrec, dval3 ) ; 1161 1199 if( num_char < 0 ) { 1162 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble3(), 1\n" ; 1200 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 1201 G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble3(), 1\n" ; 1163 1202 } 1164 1203 SendStr( command ); … … 1187 1226 fPrec2, fPrec, dval4) ; 1188 1227 if( num_char < 0 ) { 1189 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble4(), 1\n" ; 1228 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 1229 G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble4(), 1\n" ; 1190 1230 } 1191 1231 SendStr( command ); … … 1216 1256 fPrec2, fPrec, dval5 ) ; 1217 1257 if( num_char < 0 ) { 1218 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble5(), 1\n" ; 1258 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 1259 G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble5(), 1\n" ; 1219 1260 } 1220 1261 SendStr( command ); … … 1247 1288 fPrec2, fPrec, dval6 ) ; 1248 1289 if( num_char < 0 ) { 1249 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble6(), 1\n" ; 1290 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 1291 G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble6(), 1\n" ; 1250 1292 } 1251 1293 SendStr( command ); … … 1280 1322 fPrec2, fPrec, dval7 ) ; 1281 1323 if( num_char < 0 ) { 1282 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble7(), 1\n" ; 1324 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 1325 G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble7(), 1\n" ; 1283 1326 } 1284 1327 SendStr( command ); … … 1321 1364 fPrec2, fPrec, dval11 ) ; 1322 1365 if( num_char < 0 ) { 1323 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble11(), 1\n" ; 1366 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 1367 G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble11(), 1\n" ; 1324 1368 } 1325 1369 SendStr( command ); … … 1346 1390 fPrec2, fPrec, dval3 ) ; 1347 1391 if( num_char < 0 ) { 1348 G4cerr << "ERROR G4FRSCENEHANDLER::SendIntDouble3(),1\n" ; 1392 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 1393 G4cout << "ERROR G4FRSCENEHANDLER::SendIntDouble3(),1\n" ; 1349 1394 } 1350 1395 SendStr( command ); … … 1366 1411 ival1, ival2, ival3, char_string ) ; 1367 1412 if( num_char < 0 ) { 1368 G4cerr << "ERROR G4FRSCENEHANDLER::SendInt3Str(),1\n" ; 1413 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 1414 G4cout << "ERROR G4FRSCENEHANDLER::SendInt3Str(),1\n" ; 1369 1415 } 1370 1416 SendStr( command ); … … 1387 1433 ival1, ival2, ival3, ival4, char_string ) ; 1388 1434 if( num_char < 0 ) { 1389 G4cerr << "ERROR G4FRSCENEHANDLER::SendInt4Str(),1\n" ; 1435 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 1436 G4cout << "ERROR G4FRSCENEHANDLER::SendInt4Str(),1\n" ; 1390 1437 } 1391 1438 SendStr( command ); … … 1418 1465 char_string2 ); 1419 1466 if( num_char < 0 ) { 1420 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrDouble6Str(), 1\n" ; 1467 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 1468 G4cout << "ERROR G4FRSCENEHANDLER::SendStrDouble6Str(), 1\n" ; 1421 1469 } 1422 1470 SendStr( command ); … … 1435 1483 num_char = sprintf( command, "%d", val ) ; 1436 1484 if( num_char < 0 ) { 1437 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrInt(), 1\n" ; 1485 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 1486 G4cout << "ERROR G4FRSCENEHANDLER::SendStrInt(), 1\n" ; 1438 1487 } 1439 1488 SendStr( command ); … … 1451 1500 num_char = sprintf( command, "%*.*g", fPrec2, fPrec, val ) ; 1452 1501 if( num_char < 0 ) { 1453 G4cerr << "ERROR G4FRSCENEHANDLER::SendStrInt(), 1\n" ; 1502 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 1503 G4cout << "ERROR G4FRSCENEHANDLER::SendStrInt(), 1\n" ; 1454 1504 } 1455 1505 SendStr( command ); -
trunk/source/visualization/FukuiRenderer/include/G4FRofstream.hh
r1337 r1347 26 26 // 27 27 // $Id: G4FRofstream.hh,v 1.9 2006/06/29 21:16:42 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 #include <fstream> -
trunk/source/visualization/FukuiRenderer/include/G4FukuiRenderer.hh
r1337 r1347 26 26 // 27 27 // $Id: G4FukuiRenderer.hh,v 1.8 2006/06/29 21:16:44 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/visualization/FukuiRenderer/include/G4FukuiRendererSceneHandler.hh
r1337 r1347 26 26 // 27 27 // $Id: G4FukuiRendererSceneHandler.hh,v 1.17 2010/05/30 10:18:32 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/visualization/FukuiRenderer/include/G4FukuiRendererViewer.hh
r1337 r1347 26 26 // 27 27 // $Id: G4FukuiRendererViewer.hh,v 1.8 2006/06/29 21:16:48 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/visualization/FukuiRenderer/src/CVS/Entries
r1346 r1347 1 /G4DAWNFILE.cc/1.11/Thu Jun 29 21:16:50 2006//Tgeant4-09-04-ref-00 2 /G4DAWNFILESceneHandler.cc/1.19/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00 3 /G4DAWNFILEViewer.cc/1.21/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00 4 /G4FRClientServer.cc/1.7/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00 5 /G4FukuiRenderer.cc/1.10/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00 6 /G4FukuiRendererSceneHandler.cc/1.15/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00 7 /G4FukuiRendererViewer.cc/1.12/Thu Nov 11 01:13:42 2010//Tgeant4-09-04-ref-00 1 8 D -
trunk/source/visualization/FukuiRenderer/src/G4DAWNFILE.cc
r1337 r1347 26 26 // 27 27 // $Id: G4DAWNFILE.cc,v 1.11 2006/06/29 21:16:50 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // Satoshi TANAKA -
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 ; -
trunk/source/visualization/FukuiRenderer/src/G4DAWNFILEViewer.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4DAWNFILEViewer.cc,v 1.2 0 2006/06/29 21:16:54 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4DAWNFILEViewer.cc,v 1.21 2010/11/11 01:13:42 akimura Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // Satoshi TANAKA … … 42 42 #include <assert.h> 43 43 44 #include "G4VisManager.hh" 44 45 #include "G4Scene.hh" 45 46 #include "G4Vector3D.hh" … … 101 102 { 102 103 #if defined DEBUG_FR_VIEW 103 G4cerr << "***** G4DAWNFILEViewer::SetView(): No effects" << G4endl; 104 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 105 G4cout << "***** G4DAWNFILEViewer::SetView(): No effects" << G4endl; 104 106 #endif 105 107 // Do nothing, since DAWN is running as a different process. … … 113 115 { 114 116 #if defined DEBUG_FR_VIEW 115 G4cerr << "***** G4DAWNFILEViewer::ClearView (): No effects " << G4endl; 117 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 118 G4cout << "***** G4DAWNFILEViewer::ClearView (): No effects " << G4endl; 116 119 #endif 117 120 if (fSceneHandler.fPrimDest.IsOpen()) { … … 130 133 { 131 134 #if defined DEBUG_FR_VIEW 132 G4cerr << "***** G4DAWNFILEViewer::DrawView () " << G4endl; 135 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 136 G4cout << "***** G4DAWNFILEViewer::DrawView () " << G4endl; 133 137 #endif 134 138 //----- … … 149 153 { 150 154 #if defined DEBUG_FR_VIEW 151 G4cerr << "***** G4DAWNFILEViewer::ShowView () " << G4endl; 155 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 156 G4cout << "***** G4DAWNFILEViewer::ShowView () " << G4endl; 152 157 #endif 153 158 … … 204 209 /////////////////////// 205 210 //#if defined DEBUG_FR_VIEW 206 // G4c err<< "***** G4DAWNFILEViewer::SendDrawingStyleToDAWNGUI()" << G4endl;211 // G4cout << "***** G4DAWNFILEViewer::SendDrawingStyleToDAWNGUI()" << G4endl; 207 212 //#endif 208 213 ////////////////////// … … 242 247 243 248 #if defined DEBUG_FR_VIEW 244 G4cerr << "***** G4DAWNFILEViewer::SendViewParameters() "; 245 G4cerr << "(GUI parameters)" << G4endl; 249 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 250 G4cout << "***** G4DAWNFILEViewer::SendViewParameters() "; 251 G4cout << "(GUI parameters)" << G4endl; 252 } 246 253 #endif 247 254 … … 271 278 272 279 if ( camera_distance < radius ) { 273 G4cerr << "WARNING from DAWNFILE driver:" << G4endl; 274 G4cerr << " Camera cannot enter inside objects" << G4endl; 280 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 281 G4cout << "WARNING from DAWNFILE driver:" << G4endl; 282 G4cout << " Camera cannot enter inside objects" << G4endl; 283 } 275 284 camera_distance = radius ; 276 285 } -
trunk/source/visualization/FukuiRenderer/src/G4FRClientServer.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4FRClientServer.cc,v 1. 6 2006/06/29 21:16:56 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4FRClientServer.cc,v 1.7 2010/11/11 01:13:42 akimura Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // Satoshi TANAKA, Wed Jul 3 14:14:29 JST 1996 … … 38 38 //=================// 39 39 40 #include "G4VisManager.hh" 40 41 #include "G4FRClientServer.hh" 41 42 … … 119 120 120 121 #if defined DEBUG_CLIENT_SERVER 121 G4cerr << ">>>>> receivedMessage = " << fReceivedMessage << G4endl; 122 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 123 G4cout << ">>>>> receivedMessage = " << fReceivedMessage << G4endl; 122 124 #endif 123 125 … … 150 152 151 153 #if defined DEBUG_CLIENT_SERVER 152 G4cerr << "<<<<< SentMessage = " << fSendingMessage << G4endl; 154 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 155 G4cout << "<<<<< SentMessage = " << fSendingMessage << G4endl; 153 156 #endif 154 157 … … 255 258 256 259 // #if defined DEBUG_CLIENT_SERVER 257 G4cerr << "***** Trying connection to " << server_hostname << G4endl; 260 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 261 G4cout << "***** Trying connection to " << server_hostname << G4endl; 258 262 // #endif 259 263 -
trunk/source/visualization/FukuiRenderer/src/G4FukuiRenderer.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4FukuiRenderer.cc,v 1. 9 2006/06/29 21:16:58 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4FukuiRenderer.cc,v 1.10 2010/11/11 01:13:42 akimura Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 43 43 #define __G_ANSI_C__ 44 44 45 #include "G4VisManager.hh" 45 46 //#include "G4VisFeaturesOfFukuiRenderer.hh" 46 47 #include "G4VSceneHandler.hh" … … 114 115 115 116 #if defined DEBUG_FR_SYSTEM 116 G4cerr << "***** Unix Inet Domain (AUTO mode)" << G4endl; 117 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 118 G4cout << "***** Unix Inet Domain (AUTO mode)" << G4endl; 117 119 #endif 118 120 fIPMode = G4FukuiRenderer::IP_UNIX ; … … 144 146 145 147 if(!flag_connected) { 146 G4cerr << "***** ERROR: Connection failed" << G4endl; 148 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 149 G4cout << "***** ERROR: Connection failed" << G4endl; 147 150 } 148 151 else { 149 G4cerr << "***** GEANT4 is connected to FukuiRenderer DAWN "; 150 G4cerr << "in the same host" << G4endl; 152 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 153 G4cout << "***** GEANT4 is connected to FukuiRenderer DAWN "; 154 G4cout << "in the same host" << G4endl; 155 } 151 156 } 152 157 … … 159 164 { 160 165 #if defined DEBUG_FR_SYSTEM 161 G4cerr << "***** INET Domain " << G4endl; 166 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 167 G4cout << "***** INET Domain " << G4endl; 162 168 #endif 163 169 fIPMode = G4FukuiRenderer::IP_INET ; … … 166 172 167 173 if(!flag_connected) { 168 G4cerr << "***** ERROR: Connection failed" << G4endl; 174 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 175 G4cout << "***** ERROR: Connection failed" << G4endl; 169 176 } 170 177 else { 171 G4cerr << "GEANT4 is connected to FukuiRenderer DAWN via socket" ; 172 G4cerr << G4endl; 178 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 179 G4cout << "GEANT4 is connected to FukuiRenderer DAWN via socket" ; 180 G4cout << G4endl; 181 } 173 182 } 174 183 … … 183 192 if ( ++connect_trial > max_port_incr ) { 184 193 this->flag_connected = 0 ; 185 G4cerr << "***** INET Connection failed." << G4endl; 186 G4cerr << " Maybe, you have not invoked DAWN yet," << G4endl; 187 G4cerr << " or too many DAWN's are already running" << G4endl; 188 G4cerr << " in the server host." << G4endl; 194 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 195 G4cout << "***** INET Connection failed." << G4endl; 196 G4cout << " Maybe, you have not invoked DAWN yet," << G4endl; 197 G4cout << " or too many DAWN's are already running" << G4endl; 198 G4cout << " in the server host." << G4endl; 199 } 189 200 fPrimDest.IncrementPortNumber( (- FR_MAX_PORT_INCR) ); 190 201 return ; … … 192 203 // INET domain connection is established 193 204 this->flag_connected = 1 ; 194 G4cerr << "***** GEANT4 is connected to port " ; 195 G4cerr << fPrimDest.GetPortNumber() ; 196 G4cerr << " of server" << G4endl; 205 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 206 G4cout << "***** GEANT4 is connected to port " ; 207 G4cout << fPrimDest.GetPortNumber() ; 208 G4cout << " of server" << G4endl; 209 } 197 210 break ; 198 211 } else { … … 200 213 this->flag_connected = 0 ; 201 214 fPrimDest.IncrementPortNumber(); 202 G4cerr << "***** GEANT4 incremented targeting port to " ; 203 G4cerr << fPrimDest.GetPortNumber() << G4endl; 215 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 216 G4cout << "***** GEANT4 incremented targeting port to " ; 217 G4cout << fPrimDest.GetPortNumber() << G4endl; 218 } 204 219 205 220 } // if-elseif-else … … 215 230 216 231 #if defined DEBUG_FR_SYSTEM 217 G4cerr << "***** UseBSDUnixDomainAuto " << G4endl; 232 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 233 G4cout << "***** UseBSDUnixDomainAuto " << G4endl; 218 234 #endif 219 235 fIPMode = G4FukuiRenderer::IP_UNIX ; // Unix domain … … 241 257 //----- display status 242 258 if(!flag_connected) { 243 G4cerr << "***** ERROR: Connection failed" << G4endl; 259 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 260 G4cout << "***** ERROR: Connection failed" << G4endl; 244 261 } else { 245 G4cerr << "*** GEANT4 is connected to FukuiRenderer DAWN "; 246 G4cerr << "in the same host" << G4endl; 262 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 263 G4cout << "*** GEANT4 is connected to FukuiRenderer DAWN "; 264 G4cout << "in the same host" << G4endl; 265 } 247 266 } 248 267 -
trunk/source/visualization/FukuiRenderer/src/G4FukuiRendererSceneHandler.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4FukuiRendererSceneHandler.cc,v 1.1 4 2006/06/29 21:17:00 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4FukuiRendererSceneHandler.cc,v 1.15 2010/11/11 01:13:42 akimura Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 46 46 #include <string.h> 47 47 #include "globals.hh" 48 #include "G4VisManager.hh" 48 49 #include "G4FRConst.hh" 49 50 #include "G4FukuiRenderer.hh" … … 125 126 { 126 127 #if defined DEBUG_FR_SCENE 127 G4cerr << "***** ~G4FukuiRendererSceneHandler" << G4endl; 128 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 129 G4cout << "***** ~G4FukuiRendererSceneHandler" << G4endl; 128 130 #endif 129 131 ClearStore (); // clear current scene … … 137 139 { 138 140 #if defined DEBUG_FR_SCENE 139 G4cerr << "***** G4FukuiRendererSceneHandler::FRBeginModeling (called & started)" << G4endl; 141 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 142 G4cout << "***** G4FukuiRendererSceneHandler::FRBeginModeling (called & started)" << G4endl; 140 143 #endif 141 144 … … 173 176 // !SetCamera 174 177 #if defined DEBUG_FR_SCENE 175 G4cerr << "***** (!SetCamera in FRBeginModeling())" << G4endl; 178 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 179 G4cout << "***** (!SetCamera in FRBeginModeling())" << G4endl; 176 180 #endif 177 181 SendStr( FR_SET_CAMERA ); … … 180 184 // !OpenDevice 181 185 #if defined DEBUG_FR_SCENE 182 G4cerr << "***** (!OpenDevice in FRBeginModeling())" << G4endl; 186 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 187 G4cout << "***** (!OpenDevice in FRBeginModeling())" << G4endl; 183 188 #endif 184 189 SendStr( FR_OPEN_DEVICE ); … … 187 192 // !BeginModeling 188 193 #if defined DEBUG_FR_SCENE 189 G4cerr << "***** (!BeginModeling in FRBeginModeling())" << G4endl; 194 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 195 G4cout << "***** (!BeginModeling in FRBeginModeling())" << G4endl; 190 196 #endif 191 197 SendStr( FR_BEGIN_MODELING ); FRflag_in_modeling = true ; -
trunk/source/visualization/FukuiRenderer/src/G4FukuiRendererViewer.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4FukuiRendererViewer.cc,v 1.1 1 2006/06/29 21:17:02 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4FukuiRendererViewer.cc,v 1.12 2010/11/11 01:13:42 akimura Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 47 47 #include <assert.h> 48 48 49 #include "G4VisManager.hh" 49 50 #include "G4Scene.hh" 50 51 #include "G4Vector3D.hh" … … 76 77 { 77 78 #if defined DEBUG_FR_VIEW 78 G4cerr << "***** G4FukuiRendererViewer::SetView(): No effects" << G4endl; 79 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 80 G4cout << "***** G4FukuiRendererViewer::SetView(): No effects" << G4endl; 79 81 #endif 80 82 // Do nothing, since DAWN is running as a different process. … … 87 89 { 88 90 #if defined DEBUG_FR_VIEW 89 G4cerr << "***** G4FukuiRendererViewer::ClearView (): No effects " << G4endl; 91 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 92 G4cout << "***** G4FukuiRendererViewer::ClearView (): No effects " << G4endl; 90 93 #endif 91 94 … … 97 100 { 98 101 #if defined DEBUG_FR_VIEW 99 G4cerr << "***** G4FukuiRendererViewer::DrawView () " << G4endl; 102 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 103 G4cout << "***** G4FukuiRendererViewer::DrawView () " << G4endl; 100 104 #endif 101 105 … … 116 120 { 117 121 #if defined DEBUG_FR_VIEW 118 G4cerr << "***** G4FukuiRendererViewer::ShowView () " << G4endl; 122 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 123 G4cout << "***** G4FukuiRendererViewer::ShowView () " << G4endl; 119 124 #endif 120 125 … … 137 142 { 138 143 #if defined DEBUG_FR_VIEW 139 G4cerr << "***** G4FukuiRendererViewer::Wait () : Begin" << G4endl; 144 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 145 G4cout << "***** G4FukuiRendererViewer::Wait () : Begin" << G4endl; 140 146 #endif 141 147 fSceneHandler.SendStr ( FR_WAIT ); 142 148 fSceneHandler.GetPrimDest().WaitSendBack( FR_WAIT ); 143 149 #if defined DEBUG_FR_VIEW 144 G4cerr << "***** G4FukuiRendererViewer::Wait () : end" << G4endl; 150 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 151 G4cout << "***** G4FukuiRendererViewer::Wait () : end" << G4endl; 145 152 #endif 146 153 … … 153 160 { 154 161 #if defined DEBUG_FR_VIEW 155 G4cerr << "***** G4FukuiRendererViewer::SendDevice() " << G4endl; 162 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 163 G4cout << "***** G4FukuiRendererViewer::SendDevice() " << G4endl; 156 164 #endif 157 165 … … 168 176 { 169 177 #if defined DEBUG_FR_VIEW 170 G4cerr << "***** G4FukuiRendererViewer::SendDrawingStyle() " << G4endl; 178 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 179 G4cout << "***** G4FukuiRendererViewer::SendDrawingStyle() " << G4endl; 171 180 #endif 172 181 … … 201 210 202 211 #if defined DEBUG_FR_VIEW 203 G4cerr << "***** G4FukuiRendererViewer::SendViewParameters()" << G4endl; 212 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) 213 G4cout << "***** G4FukuiRendererViewer::SendViewParameters()" << G4endl; 204 214 #endif 205 215 … … 229 239 230 240 if ( camera_distance < radius ) { 231 G4cerr << "WARNING from FukuiRenderer (DAWN) driver:" << G4endl; 232 G4cerr << " Camera cannot enter inside objects" << G4endl; 241 if (G4VisManager::GetVerbosity() >= G4VisManager::errors) { 242 G4cout << "WARNING from FukuiRenderer (DAWN) driver:" << G4endl; 243 G4cout << " Camera cannot enter inside objects" << G4endl; 244 } 233 245 camera_distance = radius ; 234 246 }
Note:
See TracChangeset
for help on using the changeset viewer.
