Changeset 1346 for trunk/source/visualization/management/src
- Timestamp:
- Dec 22, 2010, 11:33:38 AM (14 years ago)
- Location:
- trunk/source/visualization/management/src
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/management/src/CVS/Entries
r1340 r1346 1 /G4GraphicsSystemList.cc/1.4/Thu Sep 30 06:17:39 2010//2 /G4Scene.cc/1.24/ Thu Sep 30 06:17:39 2010//3 /G4SceneHandlerList.cc/1.4/Thu Sep 30 06:17:39 2010//4 /G4SceneList.cc/1.6/Thu Sep 30 06:17:39 2010//5 /G4VGraphicsSystem.cc/1.11/Thu Sep 30 06:17:39 2010//6 /G4VSceneHandler.cc/1.9 5/Thu Sep 30 06:17:39 2010//7 /G4VViewer.cc/1.26/T hu Sep 30 06:17:39 2010//8 /G4VVisCommand.cc/1.18/Thu Sep 30 06:17:39 2010//9 /G4View erList.cc/1.4/Thu Sep 30 06:17:40 2010//10 /G4Vi sCommands.cc/1.24/Thu Sep 30 06:17:40 2010//11 /G4VisCommands Compound.cc/1.40/Thu Sep 30 06:17:40 2010//12 /G4VisCommands Geometry.cc/1.4/Thu Sep 30 06:17:40 2010//13 /G4VisCommandsGeometry Set.cc/1.8/Thu Sep 30 06:17:40 2010//14 /G4VisCommands Scene.cc/1.68/Thu Sep 30 06:17:41 2010//15 /G4VisCommandsScene Add.cc/1.82/Thu Sep 30 06:17:41 2010//16 /G4VisCommandsScene Handler.cc/1.32/Thu Sep 30 06:17:41 2010//17 /G4VisCommands Viewer.cc/1.76/Thu Sep 30 06:17:42 2010//18 /G4Vis FeaturesOfDAWNFILE.cc/1.6/Thu Sep 30 06:17:42 2010//19 /G4Vis FeaturesOfFukuiRenderer.cc/1.5/Thu Sep 30 06:17:42 2010//20 /G4VisFeaturesOf OpenGL.cc/1.6/Thu Sep 30 06:17:42 2010//21 /G4VisFeaturesOf OpenInventor.cc/1.5/Thu Sep 30 06:17:42 2010//22 /G4Vis Manager.cc/1.129/Thu Sep 30 06:17:43 2010//23 /G4Vis StateDependent.cc/1.6/Thu Sep 30 06:17:43 2010//24 /G4Vi ewParameters.cc/1.37/Thu Sep 30 11:54:33 2010//25 /G4Vis CommandsViewerSet.cc/1.52/Mon Oct 11 09:00:12 2010//1 /G4GraphicsSystemList.cc/1.4/Thu Jun 29 21:29:14 2006//Tgeant4-09-04-ref-00 2 /G4Scene.cc/1.24/Wed Nov 4 12:49:16 2009//Tgeant4-09-04-ref-00 3 /G4SceneHandlerList.cc/1.4/Thu Jun 29 21:29:18 2006//Tgeant4-09-04-ref-00 4 /G4SceneList.cc/1.6/Thu Jun 29 21:29:20 2006//Tgeant4-09-04-ref-00 5 /G4VGraphicsSystem.cc/1.11/Thu Jun 29 21:29:22 2006//Tgeant4-09-04-ref-00 6 /G4VSceneHandler.cc/1.96/Fri Nov 5 16:00:11 2010//Tgeant4-09-04-ref-00 7 /G4VViewer.cc/1.26/Tue Nov 17 14:37:06 2009//Tgeant4-09-04-ref-00 8 /G4VVisCommand.cc/1.18/Thu Jun 29 21:29:28 2006//Tgeant4-09-04-ref-00 9 /G4ViewParameters.cc/1.38/Fri Nov 5 16:00:11 2010//Tgeant4-09-04-ref-00 10 /G4ViewerList.cc/1.4/Thu Jun 29 21:29:32 2006//Tgeant4-09-04-ref-00 11 /G4VisCommands.cc/1.24/Mon Mar 9 12:42:00 2009//Tgeant4-09-04-ref-00 12 /G4VisCommandsCompound.cc/1.40/Thu May 20 07:54:01 2010//Tgeant4-09-04-ref-00 13 /G4VisCommandsGeometry.cc/1.4/Fri Jan 5 16:29:38 2007//Tgeant4-09-04-ref-00 14 /G4VisCommandsGeometrySet.cc/1.8/Tue Jun 15 16:34:30 2010//Tgeant4-09-04-ref-00 15 /G4VisCommandsScene.cc/1.70/Fri Nov 26 15:31:09 2010//Tgeant4-09-04-ref-00 16 /G4VisCommandsSceneAdd.cc/1.84/Sat Nov 6 18:34:26 2010//Tgeant4-09-04-ref-00 17 /G4VisCommandsSceneHandler.cc/1.32/Thu Jun 29 21:29:46 2006//Tgeant4-09-04-ref-00 18 /G4VisCommandsViewer.cc/1.77/Sun Nov 7 11:14:07 2010//Tgeant4-09-04-ref-00 19 /G4VisCommandsViewerSet.cc/1.53/Fri Nov 5 15:57:20 2010//Tgeant4-09-04-ref-00 20 /G4VisFeaturesOfDAWNFILE.cc/1.6/Thu Jun 29 21:29:52 2006//Tgeant4-09-04-ref-00 21 /G4VisFeaturesOfFukuiRenderer.cc/1.5/Thu Jun 29 21:29:54 2006//Tgeant4-09-04-ref-00 22 /G4VisFeaturesOfOpenGL.cc/1.6/Wed Oct 3 14:21:55 2007//Tgeant4-09-04-ref-00 23 /G4VisFeaturesOfOpenInventor.cc/1.5/Thu Jun 29 21:29:58 2006//Tgeant4-09-04-ref-00 24 /G4VisManager.cc/1.131/Result of merge//Tgeant4-09-04-ref-00 25 /G4VisStateDependent.cc/1.6/Thu Jun 29 21:30:02 2006//Tgeant4-09-04-ref-00 26 26 D -
trunk/source/visualization/management/src/CVS/Tag
r1331 r1346 1 Ngeant4-09-04- beta-011 Ngeant4-09-04-ref-00 -
trunk/source/visualization/management/src/G4GraphicsSystemList.cc
r1337 r1346 26 26 // 27 27 // $Id: G4GraphicsSystemList.cc,v 1.4 2006/06/29 21:29:14 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 30 30 #include "G4GraphicsSystemList.hh" -
trunk/source/visualization/management/src/G4Scene.cc
r1337 r1346 26 26 // 27 27 // $Id: G4Scene.cc,v 1.24 2009/11/04 12:49:16 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 // 30 30 // -
trunk/source/visualization/management/src/G4SceneHandlerList.cc
r1337 r1346 26 26 // 27 27 // $Id: G4SceneHandlerList.cc,v 1.4 2006/06/29 21:29:18 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 30 30 #include "G4SceneHandlerList.hh" -
trunk/source/visualization/management/src/G4SceneList.cc
r1337 r1346 26 26 // 27 27 // $Id: G4SceneList.cc,v 1.6 2006/06/29 21:29:20 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 30 30 #include "G4SceneList.hh" -
trunk/source/visualization/management/src/G4VGraphicsSystem.cc
r1337 r1346 26 26 // 27 27 // $Id: G4VGraphicsSystem.cc,v 1.11 2006/06/29 21:29:22 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 // 30 30 // -
trunk/source/visualization/management/src/G4VSceneHandler.cc
r1337 r1346 25 25 // 26 26 // 27 // $Id: G4VSceneHandler.cc,v 1.9 5 2010/06/01 16:08:15allison Exp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4VSceneHandler.cc,v 1.96 2010/11/05 16:00:11 allison Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 // … … 264 264 if (!trajectoriesModel) G4Exception 265 265 ("G4VSceneHandler::AddCompound(const G4VTrajectory&): Not a G4TrajectoriesModel."); 266 if (trajectoriesModel->IsDrawingModeSet()) { 267 traj.DrawTrajectory(trajectoriesModel->GetDrawingMode()); 268 } else { 269 traj.DrawTrajectory(); 266 else { 267 if (trajectoriesModel->IsDrawingModeSet()) { 268 traj.DrawTrajectory(trajectoriesModel->GetDrawingMode()); 269 } else { 270 traj.DrawTrajectory(); 271 } 270 272 } 271 273 } -
trunk/source/visualization/management/src/G4VViewer.cc
r1337 r1346 26 26 // 27 27 // $Id: G4VViewer.cc,v 1.26 2009/11/17 14:37:06 lgarnier Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 // 30 30 // -
trunk/source/visualization/management/src/G4VVisCommand.cc
r1337 r1346 26 26 // 27 27 // $Id: G4VVisCommand.cc,v 1.18 2006/06/29 21:29:28 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 30 30 // Base class for visualization commands - John Allison 9th August 1998 -
trunk/source/visualization/management/src/G4ViewParameters.cc
r1340 r1346 25 25 // 26 26 // 27 // $Id: G4ViewParameters.cc,v 1.3 7 2010/09/03 15:57:05 gcosmoExp $27 // $Id: G4ViewParameters.cc,v 1.38 2010/11/05 16:00:11 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // -
trunk/source/visualization/management/src/G4ViewerList.cc
r1337 r1346 26 26 // 27 27 // $Id: G4ViewerList.cc,v 1.4 2006/06/29 21:29:32 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 30 30 #include "G4ViewerList.hh" -
trunk/source/visualization/management/src/G4VisCommands.cc
r1337 r1346 26 26 // 27 27 // $Id: G4VisCommands.cc,v 1.24 2009/03/09 12:42:00 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 30 30 // /vis/ top level commands - John Allison 5th February 2001 -
trunk/source/visualization/management/src/G4VisCommandsCompound.cc
r1337 r1346 26 26 // 27 27 // $Id: G4VisCommandsCompound.cc,v 1.40 2010/05/20 07:54:01 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 30 30 // Compound /vis/ commands - John Allison 15th May 2000 -
trunk/source/visualization/management/src/G4VisCommandsGeometry.cc
r1337 r1346 26 26 // 27 27 // $Id: G4VisCommandsGeometry.cc,v 1.4 2007/01/05 16:29:38 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 30 30 // /vis/geometry commands - John Allison 31st January 2006 -
trunk/source/visualization/management/src/G4VisCommandsGeometrySet.cc
r1337 r1346 26 26 // 27 27 // $Id: G4VisCommandsGeometrySet.cc,v 1.8 2010/06/15 16:34:30 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 30 30 // /vis/geometry commands - John Allison 31st January 2006 -
trunk/source/visualization/management/src/G4VisCommandsScene.cc
r1337 r1346 25 25 // 26 26 // 27 // $Id: G4VisCommandsScene.cc,v 1. 68 2008/04/28 16:12:38allison Exp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4VisCommandsScene.cc,v 1.70 2010/11/13 10:52:00 allison Exp $ 28 // GEANT4 tag $Name: $ 29 29 30 30 // /vis/scene commands - John Allison 9th August 1998 … … 541 541 const G4String& aSceneName = aScene -> GetName (); 542 542 if (sceneName == aSceneName) { 543 // Clear store and force a rebuild of graphical database...544 //aSceneHandler -> ClearStore (); // Not nec?? Done below545 //with NeedKernelVisit and DrawView. JA.546 543 G4ViewerList& viewerList = aSceneHandler -> SetViewerList (); 547 544 const G4int nViewers = viewerList.size (); … … 554 551 fpVisManager -> SetCurrentSceneHandler(aSceneHandler); 555 552 fpVisManager -> SetCurrentScene(aScene); 556 // Re-draw, forcing rebuild of graphics database, if any... 553 // ClearTransientStore. This clears the transient, e.g., 554 // trajectories part of the store/graphical database but 555 // also re-draws the permanent part (detector) and thus 556 // has the effect of clearing trajectories from the view. 557 // This should not be necessary since NeedKernelVisit, 558 // ClearView and DrawView should have the effect of 559 // deleting the whole store and re-creating it, then 560 // clearing and re-drawing. But ClearView does not seem 561 // to work for all viewers. If it's a problem for you, 562 // uncomment the next line. 563 //aSceneHandler->ClearTransientStore(); 564 // Now, force rebuild of graphical database, if any, and re-draw. 557 565 aViewer -> NeedKernelVisit(); 558 566 aViewer -> SetView (); -
trunk/source/visualization/management/src/G4VisCommandsSceneAdd.cc
r1337 r1346 25 25 // 26 26 // 27 // $Id: G4VisCommandsSceneAdd.cc,v 1.8 2 2010/06/03 10:17:44allison Exp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4VisCommandsSceneAdd.cc,v 1.84 2010/11/06 18:34:26 allison Exp $ 28 // GEANT4 tag $Name: $ 29 29 // /vis/scene commands - John Allison 9th August 1998 30 30 … … 307 307 } else { 308 308 const std::vector<const G4Event*>* events = 309 currentRun ? currentRun->GetEventVector(): 0;309 currentRun->GetEventVector(); 310 310 if (events) nEvents = events->size(); 311 311 } … … 1590 1590 model->SetExtent(extent); 1591 1591 const G4String& currentSceneName = pScene -> GetName (); 1592 pScene -> AddRunDurationModel (model, warn);1593 if ( verbosity >= G4VisManager::confirmations) {1592 G4bool successful = pScene -> AddRunDurationModel (model, warn); 1593 if (successful && verbosity >= G4VisManager::confirmations) { 1594 1594 G4cout << "User Vis Action added to scene \"" 1595 1595 << currentSceneName << "\""; -
trunk/source/visualization/management/src/G4VisCommandsSceneHandler.cc
r1337 r1346 26 26 // 27 27 // $Id: G4VisCommandsSceneHandler.cc,v 1.32 2006/06/29 21:29:46 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 30 30 // /vis/sceneHandler commands - John Allison 10th October 1998 -
trunk/source/visualization/management/src/G4VisCommandsViewer.cc
r1337 r1346 25 25 // 26 26 // 27 // $Id: G4VisCommandsViewer.cc,v 1.7 6 2010/05/29 21:20:20allison Exp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4VisCommandsViewer.cc,v 1.77 2010/11/07 11:14:07 allison Exp $ 28 // GEANT4 tag $Name: $ 29 29 30 30 // /vis/viewer commands - John Allison 25th October 1998 … … 438 438 cloneName = cloneName.strip (G4String::both, '"'); 439 439 440 G4bool errorWhileNaming = false; 440 441 if (cloneName == "none") { 441 442 G4int subID = 0; … … 450 451 cloneName.insert(nextSpacePosition, oss.str()); 451 452 } else { 452 cloneName.insert(cloneName.find(' '), oss.str()); 453 G4String::size_type spacePosition = cloneName.find(' '); 454 if (spacePosition != G4String::npos) 455 cloneName.insert(spacePosition, oss.str()); 456 else 457 errorWhileNaming = true; 453 458 } 454 } while (fpVisManager -> GetViewer (cloneName)); 459 } while (!errorWhileNaming && fpVisManager -> GetViewer (cloneName)); 460 } 461 462 if (errorWhileNaming) { 463 if (verbosity >= G4VisManager::errors) { 464 G4cout << "ERROR: While naming clone viewer \"" << cloneName 465 << "\"." 466 << G4endl; 467 } 468 return; 455 469 } 456 470 … … 1407 1421 } 1408 1422 1409 if (viewer) { 1410 if (verbosity >= G4VisManager::confirmations) { 1411 G4cout << "Viewer \"" << viewer -> GetName () << "\""; 1412 G4cout << " post-processing triggered." << G4endl; 1413 } 1414 viewer -> ShowView (); 1415 // Assume future need to "refresh" transients... 1416 sceneHandler -> SetMarkForClearingTransientStore(true); 1417 } 1418 else { 1419 if (verbosity >= G4VisManager::errors) { 1420 G4cout << "ERROR: Viewer \"" << updateName << "\""; 1421 G4cout << " not found - \"/vis/viewer/list\"" 1422 "\n to see possibilities." << G4endl; 1423 } 1424 } 1423 if (verbosity >= G4VisManager::confirmations) { 1424 G4cout << "Viewer \"" << viewer -> GetName () << "\""; 1425 G4cout << " post-processing triggered." << G4endl; 1426 } 1427 viewer -> ShowView (); 1428 // Assume future need to "refresh" transients... 1429 sceneHandler -> SetMarkForClearingTransientStore(true); 1425 1430 } 1426 1431 -
trunk/source/visualization/management/src/G4VisCommandsViewerSet.cc
r1340 r1346 25 25 // 26 26 // 27 // $Id: G4VisCommandsViewerSet.cc,v 1.5 2 2010/10/08 12:41:52allison Exp $27 // $Id: G4VisCommandsViewerSet.cc,v 1.53 2010/11/05 15:57:20 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 … … 313 313 parameter = new G4UIparameter("field-half-angle",'d',omitable = true); 314 314 parameter->SetDefaultValue(30.); 315 parameter->SetCurrentAsDefault(true);315 //parameter->SetCurrentAsDefault(true); 316 316 fpCommandProjection->SetParameter(parameter); 317 317 parameter = new G4UIparameter("unit",'s',omitable = true); 318 318 parameter->SetDefaultValue("deg"); 319 parameter->SetCurrentAsDefault(true);319 //parameter->SetCurrentAsDefault(true); 320 320 fpCommandProjection->SetParameter(parameter); 321 321 -
trunk/source/visualization/management/src/G4VisFeaturesOfDAWNFILE.cc
r1337 r1346 26 26 // 27 27 // $Id: G4VisFeaturesOfDAWNFILE.cc,v 1.6 2006/06/29 21:29:52 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 // 30 30 #include "G4VisFeaturesOfDAWNFILE.hh" -
trunk/source/visualization/management/src/G4VisFeaturesOfFukuiRenderer.cc
r1337 r1346 26 26 // 27 27 // $Id: G4VisFeaturesOfFukuiRenderer.cc,v 1.5 2006/06/29 21:29:54 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 // 30 30 // -
trunk/source/visualization/management/src/G4VisFeaturesOfOpenGL.cc
r1337 r1346 26 26 // 27 27 // $Id: G4VisFeaturesOfOpenGL.cc,v 1.6 2007/10/03 14:21:55 lgarnier Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 // 30 30 // -
trunk/source/visualization/management/src/G4VisFeaturesOfOpenInventor.cc
r1337 r1346 26 26 // 27 27 // $Id: G4VisFeaturesOfOpenInventor.cc,v 1.5 2006/06/29 21:29:58 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 // 30 30 // -
trunk/source/visualization/management/src/G4VisManager.cc
r1337 r1346 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4VisManager.cc,v 1.1 29 2010/06/03 10:16:11 allisonExp $27 // GEANT4 tag $Name: geant4-09-04-beta-01$26 // $Id: G4VisManager.cc,v 1.131 2010/12/14 15:53:28 gcosmo Exp $ 27 // GEANT4 tag $Name: $ 28 28 // 29 29 // … … 466 466 const G4Transform3D& objectTransform) { 467 467 if (IsValidView ()) { 468 #ifdef G4DEBUG_VIS_MANAGEMENT 469 printf("G4VisManager::Draw circle\n"); 470 #endif 468 471 ClearTransientStoreIfMarked(); 469 472 fpSceneHandler -> BeginPrimitives (objectTransform); … … 476 479 const G4Transform3D& objectTransform) { 477 480 if (IsValidView ()) { 481 #ifdef G4DEBUG_VIS_MANAGEMENT 482 printf("G4VisManager::Draw nurbs\n"); 483 #endif 478 484 ClearTransientStoreIfMarked(); 479 485 fpSceneHandler -> BeginPrimitives (objectTransform); … … 486 492 const G4Transform3D& objectTransform) { 487 493 if (IsValidView ()) { 494 #ifdef G4DEBUG_VIS_MANAGEMENT 495 printf("G4VisManager::Draw polyhedron\n"); 496 #endif 488 497 ClearTransientStoreIfMarked(); 489 498 fpSceneHandler -> BeginPrimitives (objectTransform); … … 496 505 const G4Transform3D& objectTransform) { 497 506 if (IsValidView ()) { 507 #ifdef G4DEBUG_VIS_MANAGEMENT 508 printf("G4VisManager::Draw line\n"); 509 #endif 498 510 ClearTransientStoreIfMarked(); 499 511 fpSceneHandler -> BeginPrimitives (objectTransform); … … 506 518 const G4Transform3D& objectTransform) { 507 519 if (IsValidView ()) { 520 #ifdef G4DEBUG_VIS_MANAGEMENT 521 printf("G4VisManager::Draw polymarker\n"); 522 #endif 508 523 ClearTransientStoreIfMarked(); 509 524 fpSceneHandler -> BeginPrimitives (objectTransform); … … 516 531 const G4Transform3D& objectTransform) { 517 532 if (IsValidView ()) { 533 #ifdef G4DEBUG_VIS_MANAGEMENT 534 printf("G4VisManager::Draw scale\n"); 535 #endif 518 536 ClearTransientStoreIfMarked(); 519 537 fpSceneHandler -> BeginPrimitives (objectTransform); … … 526 544 const G4Transform3D& objectTransform) { 527 545 if (IsValidView ()) { 546 #ifdef G4DEBUG_VIS_MANAGEMENT 547 printf("G4VisManager::Draw square\n"); 548 #endif 528 549 ClearTransientStoreIfMarked(); 529 550 fpSceneHandler -> BeginPrimitives (objectTransform); … … 536 557 const G4Transform3D& objectTransform) { 537 558 if (IsValidView ()) { 559 #ifdef G4DEBUG_VIS_MANAGEMENT 560 printf("G4VisManager::Draw text ______________________________\n"); 561 #endif 538 562 ClearTransientStoreIfMarked(); 539 563 fpSceneHandler -> BeginPrimitives (objectTransform); … … 547 571 { 548 572 if (IsValidView()) { 573 #ifdef G4DEBUG_VIS_MANAGEMENT 574 printf("G4VisManager::Draw2d circle\n"); 575 #endif 549 576 ClearTransientStoreIfMarked(); 550 577 fpSceneHandler -> BeginPrimitives2D(objectTransform); … … 558 585 { 559 586 if (IsValidView()) { 587 #ifdef G4DEBUG_VIS_MANAGEMENT 588 printf("G4VisManager::Draw2d nurbs\n"); 589 #endif 560 590 ClearTransientStoreIfMarked(); 561 591 fpSceneHandler -> BeginPrimitives2D(objectTransform); … … 569 599 { 570 600 if (IsValidView()) { 601 #ifdef G4DEBUG_VIS_MANAGEMENT 602 printf("G4VisManager::Draw2d polyhedron\n"); 603 #endif 571 604 ClearTransientStoreIfMarked(); 572 605 fpSceneHandler -> BeginPrimitives2D(objectTransform); … … 580 613 { 581 614 if (IsValidView()) { 615 #ifdef G4DEBUG_VIS_MANAGEMENT 616 printf("G4VisManager::Draw2d line\n"); 617 #endif 582 618 ClearTransientStoreIfMarked(); 583 619 fpSceneHandler -> BeginPrimitives2D(objectTransform); … … 591 627 { 592 628 if (IsValidView()) { 629 #ifdef G4DEBUG_VIS_MANAGEMENT 630 printf("G4VisManager::Draw2d polymarker\n"); 631 #endif 593 632 ClearTransientStoreIfMarked(); 594 633 fpSceneHandler -> BeginPrimitives2D(objectTransform); … … 602 641 { 603 642 if (IsValidView()) { 643 #ifdef G4DEBUG_VIS_MANAGEMENT 644 printf("G4VisManager::Draw2d square\n"); 645 #endif 604 646 ClearTransientStoreIfMarked(); 605 647 fpSceneHandler -> BeginPrimitives2D(objectTransform); … … 613 655 { 614 656 if (IsValidView()) { 657 #ifdef G4DEBUG_VIS_MANAGEMENT 658 printf("G4VisManager::Draw2d text _____________________________\n"); 659 #endif 615 660 ClearTransientStoreIfMarked(); 616 661 fpSceneHandler -> BeginPrimitives2D(objectTransform); … … 622 667 void G4VisManager::Draw (const G4VHit& hit) { 623 668 if (IsValidView ()) { 669 #ifdef G4DEBUG_VIS_MANAGEMENT 670 printf("G4VisManager::Draw hit\n"); 671 #endif 624 672 ClearTransientStoreIfMarked(); 625 673 fpSceneHandler -> AddCompound (hit); … … 629 677 void G4VisManager::Draw (const G4VDigi& digi) { 630 678 if (IsValidView ()) { 679 #ifdef G4DEBUG_VIS_MANAGEMENT 680 printf("G4VisManager::Draw digi\n"); 681 #endif 631 682 ClearTransientStoreIfMarked(); 632 683 fpSceneHandler -> AddCompound (digi); … … 637 688 G4int i_mode) { 638 689 if (IsValidView ()) { 690 #ifdef G4DEBUG_VIS_MANAGEMENT 691 printf("G4VisManager::Draw traj\n"); 692 #endif 639 693 ClearTransientStoreIfMarked(); 640 694 fpSceneHandler -> SetModel (&dummyTrajectoriesModel); … … 649 703 // Find corresponding solid. 650 704 G4VSolid* pSol = logicalVol.GetSolid (); 705 #ifdef G4DEBUG_VIS_MANAGEMENT 706 printf("G4VisManager::Draw logicalVol\n"); 707 #endif 651 708 Draw (*pSol, attribs, objectTransform); 652 709 } … … 656 713 const G4Transform3D& objectTransform) { 657 714 if (IsValidView ()) { 715 #ifdef G4DEBUG_VIS_MANAGEMENT 716 printf("G4VisManager::Draw2d solid\n"); 717 #endif 658 718 ClearTransientStoreIfMarked(); 659 719 fpSceneHandler -> PreAddSolid (objectTransform, attribs); … … 1061 1121 } 1062 1122 } 1063 IsValidView (); // Checks. 1123 if (!IsValidView ()) { 1124 if (fVerbosity >= warnings) { 1125 G4cout << 1126 "WARNING: Problem setting scene handler - please report circumstances." 1127 << G4endl; 1128 } 1129 } 1064 1130 } 1065 1131 else { … … 1084 1150 fpScene = fpSceneHandler -> GetScene (); 1085 1151 fpGraphicsSystem = fpSceneHandler -> GetGraphicsSystem (); 1086 IsValidView (); // Checks. 1152 if (!IsValidView ()) { 1153 if (fVerbosity >= warnings) { 1154 G4cout << 1155 "WARNING: Problem setting viewer - please report circumstances." 1156 << G4endl; 1157 } 1158 } 1087 1159 } 1088 1160 … … 1345 1417 1346 1418 ClearTransientStoreIfMarked(); 1419 #ifdef G4DEBUG_VIS_MANAGEMENT 1420 printf("G4VisManager::EndOfEvent DrawEvent ---------------------\n"); 1421 #endif 1347 1422 fpSceneHandler->DrawEvent(currentEvent); 1348 1423 … … 1569 1644 else verbosity = Verbosity(intVerbosity); 1570 1645 return verbosity; 1646 } 1647 1648 G4VisManager::Verbosity G4VisManager::GetVerbosity () { 1649 return fVerbosity; 1571 1650 } 1572 1651 -
trunk/source/visualization/management/src/G4VisStateDependent.cc
r1337 r1346 26 26 // 27 27 // $Id: G4VisStateDependent.cc,v 1.6 2006/06/29 21:30:02 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01$28 // GEANT4 tag $Name: $ 29 29 30 30 #include "G4VisStateDependent.hh"
Note: See TracChangeset
for help on using the changeset viewer.