Changeset 1136 for trunk/source/visualization/management/src
- Timestamp:
- Nov 2, 2009, 3:49:55 PM (15 years ago)
- Location:
- trunk/source/visualization/management/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/management/src/G4Scene.cc
r954 r1136 50 50 G4bool G4Scene::AddRunDurationModel (G4VModel* pModel, G4bool warn) { 51 51 std::vector<G4VModel*>::const_iterator i; 52 #ifdef G4DEBUG_VIS_MANAGEMENT 53 printf("G4Scene::AddRunDurationModel\n"); 54 #endif 52 55 for (i = fRunDurationModelList.begin (); 53 56 i != fRunDurationModelList.end (); ++i) { … … 56 59 } 57 60 if (i != fRunDurationModelList.end ()) { 61 #ifdef G4DEBUG_VIS_MANAGEMENT 62 printf("G4Scene::AddRunDurationModel i != fRunDurationModelList.end ()\n"); 63 #endif 58 64 if (warn) { 59 65 G4cout << "G4Scene::AddRunDurationModel: model \"" … … 72 78 73 79 void G4Scene::CalculateExtent () { 80 #ifdef G4DEBUG_VIS_MANAGEMENT 81 printf("G4Scene::CalculateExtent\n"); 82 #endif 74 83 G4int nModels = fRunDurationModelList.size (); 75 84 G4BoundingSphereScene boundingSphereScene; … … 84 93 fExtent = boundingSphereScene.GetBoundingSphereExtent (); 85 94 fStandardTargetPoint = fExtent.GetExtentCentre (); 95 #ifdef G4DEBUG_VIS_MANAGEMENT 96 printf("G4Scene::CalculateExtent END\n"); 97 #endif 86 98 } 87 99 -
trunk/source/visualization/management/src/G4VSceneHandler.cc
r1038 r1136 451 451 if (pPolyhedron) { 452 452 pPolyhedron -> SetVisAttributes (fpVisAttribs); 453 #ifdef G4DEBUG_VIS_MANAGEMENT 453 454 printf("G4VSceneHandler::RequestPrimitives VSolid: %d\n",pPolyhedron); 455 #endif 454 456 G4cout << 455 457 "G4VSceneHandler::RequestPrimitives VSolid " << solid.GetName () <<G4endl; … … 480 482 if (!fpScene) return; 481 483 484 #ifdef G4DEBUG_VIS_MANAGEMENT 485 printf("G4VSceneHandler::ProcessScene : 2\n"); 486 #endif 482 487 G4VisManager* visManager = G4VisManager::GetInstance(); 483 488 489 #ifdef G4DEBUG_VIS_MANAGEMENT 490 printf("G4VSceneHandler::ProcessScene : 3\n"); 491 #endif 484 492 if (!visManager->GetConcreteInstance()) return; 485 493 494 #ifdef G4DEBUG_VIS_MANAGEMENT 495 printf("G4VSceneHandler::ProcessScene : 4\n"); 496 #endif 486 497 G4VisManager::Verbosity verbosity = visManager->GetVerbosity(); 487 498 … … 494 505 ClearStore (); 495 506 507 #ifdef G4DEBUG_VIS_MANAGEMENT 508 printf("G4VSceneHandler::ProcessScene : 5\n"); 509 #endif 496 510 // Reset fMarkForClearingTransientStore. No need to clear transient 497 511 // store since it has just been cleared above. (Leaving … … 507 521 508 522 if (runDurationModelList.size ()) { 523 #ifdef G4DEBUG_VIS_MANAGEMENT 524 printf("G4VSceneHandler::ProcessScene : 6\n"); 525 #endif 509 526 if (verbosity >= G4VisManager::confirmations) { 510 527 G4cout << "Traversing scene data..." << G4endl; … … 520 537 521 538 for (size_t i = 0; i < runDurationModelList.size (); i++) { 539 #ifdef G4DEBUG_VIS_MANAGEMENT 540 printf("G4VSceneHandler::ProcessScene : 7\n"); 541 #endif 522 542 G4VModel* pModel = runDurationModelList[i]; 523 543 // Note: this is not the place to take action on … … 533 553 // Repeat if required... 534 554 if (fSecondPassRequested) { 555 #ifdef G4DEBUG_VIS_MANAGEMENT 556 printf("G4VSceneHandler::ProcessScene : 8\n"); 557 #endif 535 558 fSecondPass = true; 536 559 for (size_t i = 0; i < runDurationModelList.size (); i++) { 560 #ifdef G4DEBUG_VIS_MANAGEMENT 561 printf("G4VSceneHandler::ProcessScene : 9\n"); 562 #endif 537 563 G4VModel* pModel = runDurationModelList[i]; 538 564 pModel -> SetModelingParameters (pMP); -
trunk/source/visualization/management/src/G4ViewParameters.cc
r1088 r1136 83 83 fWindowLocationHintXNegative(true), 84 84 fWindowLocationHintYNegative(false), 85 fXGeometryString("600x600-0+0"),86 85 fAutoRefresh (false), 87 86 fBackgroundColour (G4Colour(0.,0.,0.)), // Black -
trunk/source/visualization/management/src/G4VisCommandsSceneAdd.cc
r1087 r1136 1200 1200 void G4VisCommandSceneAddText::SetNewValue (G4UIcommand*, G4String newValue) { 1201 1201 1202 #ifdef G4DEBUG_VIS_MANAGEMENT 1203 printf("G4VisCommandSceneAddText::SetNewValue -%s-\n",newValue.c_str()); 1204 #endif 1202 1205 G4VisManager::Verbosity verbosity = fpVisManager->GetVerbosity(); 1203 1206 G4bool warn = verbosity >= G4VisManager::warnings; … … 1230 1233 const G4String& currentSceneName = pScene -> GetName (); 1231 1234 G4bool successful = pScene -> AddRunDurationModel (model, warn); 1235 #ifdef G4DEBUG_VIS_MANAGEMENT 1236 printf("G4VisCommandSceneAddText::SetNewValue success? :%d--\n",successful); 1237 #endif 1232 1238 if (successful) { 1233 1239 if (verbosity >= G4VisManager::confirmations) { -
trunk/source/visualization/management/src/G4VisCommandsViewer.cc
r1041 r1136 564 564 void G4VisCommandViewerCreate::SetNewValue (G4UIcommand*, G4String newValue) { 565 565 566 #ifdef G4DEBUG_VIS_MANAGEMENT 567 printf("G4VisCommandViewerCreate::SetNewValue : %s\n",newValue.c_str()); 568 #endif 566 569 G4VisManager::Verbosity verbosity = fpVisManager->GetVerbosity(); 567 570 -
trunk/source/visualization/management/src/G4VisManager.cc
r1050 r1136 98 98 // All other objects use default constructors. 99 99 { 100 101 #ifdef G4DEBUG_VIS_MANAGEMENT 102 printf("G4VisManager::G4VisManager\n"); 103 #endif 100 104 fpTrajDrawModelMgr = new G4VisModelManager<G4VTrajectoryModel>("/vis/modeling/trajectories"); 101 105 fpTrajFilterMgr = new G4VisFilterManager<G4VTrajectory>("/vis/filtering/trajectories"); … … 661 665 662 666 void G4VisManager::CreateViewer (G4String name,G4String XGeometry) { 667 printf("G4VisManager::CreateViewer -------------------- %s ----%s\n",name.c_str(),XGeometry.c_str()); 663 668 664 669 if (!fInitialised) Initialise (); 665 670 666 671 if (fpSceneHandler) { 672 printf("G4VisManager::CreateViewer 1-------------------- %s ----%s\n",name.c_str(),XGeometry.c_str()); 667 673 G4VViewer* p = fpGraphicsSystem -> CreateViewer (*fpSceneHandler, name); 674 printf("G4VisManager::CreateViewer 2-------------------- %s ----%s\n",name.c_str(),XGeometry.c_str()); 668 675 669 676 // Viewer is created, now we can set geometry parameters 670 677 // Before 12/2008, it was done in G4VViewer.cc but it did not have to be there! 671 678 679 // printf("G4VisManager::CreateViewer 3-------------------- %s ----%s\n",name.c_str(),XGeometry.c_str()); 672 680 G4ViewParameters vp = p->GetViewParameters(); 681 // printf("G4VisManager::CreateViewer 4-------------------- %s ----%s\n",name.c_str(),XGeometry.c_str()); 673 682 vp.SetXGeometryString(XGeometry); 674 683 p->SetViewParameters(vp); //parse string and store parameters 675 684 676 685 if (!p) { 677 686 if (fVerbosity >= errors) { … … 739 748 740 749 void G4VisManager::GeometryHasChanged () { 750 #ifdef G4DEBUG_VIS_MANAGEMENT 751 printf("G4VisManager::GeometryHasChanged \n"); 752 #endif 741 753 if (fVerbosity >= confirmations) { 742 754 G4cout << "G4VisManager::GeometryHasChanged() called." << G4endl; … … 803 815 // Check the manager's current scene... 804 816 if (fpScene && fpScene -> GetRunDurationModelList ().size () == 0) { 817 #ifdef G4DEBUG_VIS_MANAGEMENT 818 printf("G4VisManager::GeometryHasChanged NO MODELS\n"); 819 #endif 805 820 if (fVerbosity >= warnings) { 806 821 G4cout << "WARNING: The current scene \""
Note: See TracChangeset
for help on using the changeset viewer.