Changeset 1050 for trunk/source/visualization/management
- Timestamp:
- May 26, 2009, 3:35:10 PM (15 years ago)
- Location:
- trunk/source/visualization/management/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/management/src/G4VisCommandsScene.cc
r1041 r1050 557 557 aViewer -> NeedKernelVisit(); 558 558 #ifdef G4DEBUG_VIS_MANAGEMENT 559 printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call SetView()\n"); 559 G4cout << "G4VisCommandSceneNotifyHandlers::SetNewValue." << G4endl; 560 printf("\n\nG4VisCommandSceneNotifyHandlers::SetNewValue ---%s--- Call SetView() 1\n",newValue.data()); 560 561 #endif 561 562 aViewer -> SetView (); 562 563 #ifdef G4DEBUG_VIS_MANAGEMENT 563 printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call SetView() END \n");564 printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call ClearView() \n");564 printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call SetView() END 2\n"); 565 printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call ClearView() 3\n"); 565 566 #endif 566 567 aViewer -> ClearView (); 567 568 #ifdef G4DEBUG_VIS_MANAGEMENT 568 printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call ClearView() END \n");569 printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call DrawView() \n");569 printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call ClearView() END 4\n"); 570 printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call DrawView() 5\n"); 570 571 #endif 571 572 aViewer -> DrawView (); 572 573 #ifdef G4DEBUG_VIS_MANAGEMENT 573 printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call DrawView() END \n");574 printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call DrawView() END 6\n"); 574 575 #endif 575 576 if (flush) aViewer -> ShowView (); … … 629 630 if (pCurrentViewer && pCurrentSceneHandler->GetScene()) { 630 631 #ifdef G4DEBUG_VIS_MANAGEMENT 631 printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call SetView() \n");632 printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call SetView() 7\n"); 632 633 #endif 633 634 pCurrentViewer -> SetView (); 634 635 #ifdef G4DEBUG_VIS_MANAGEMENT 635 printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call SetView() END \n");636 printf("G4VisCommandSceneNotifyHandlers::SetNewValue Call SetView() END 8\n"); 636 637 #endif 637 638 } 638 639 } 639 640 } 641 #ifdef G4DEBUG_VIS_MANAGEMENT 642 G4cout << "G4VisCommandSceneNotifyHandlers::SetNewValue. END" << G4endl; 643 printf("G4VisCommandSceneNotifyHandlers::SetNewValue END 99\n\n\n"); 644 #endif 640 645 } 641 646 -
trunk/source/visualization/management/src/G4VisCommandsViewerSet.cc
r954 r1050 25 25 // 26 26 // 27 // $Id: G4VisCommandsViewerSet.cc,v 1. 49 2007/07/10 17:51:54allison Exp $28 // GEANT4 tag $Name: $27 // $Id: G4VisCommandsViewerSet.cc,v 1.50 2009/05/13 18:17:25 allison Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 30 30 // /vis/viewer/set commands - John Allison 16th May 2000 … … 37 37 #include "G4UIcmdWithAnInteger.hh" 38 38 #include "G4UIcmdWithADouble.hh" 39 #include "G4UIcmdWith3VectorAndUnit.hh" 39 40 #include "G4UnitsTable.hh" 40 41 #include "G4VisManager.hh" … … 317 318 fpCommandStyle->SetParameterName ("style",omitable = false); 318 319 320 fpCommandTargetPoint = new G4UIcmdWith3VectorAndUnit 321 ("/vis/viewer/set/targetPoint", this); 322 fpCommandTargetPoint->SetGuidance 323 ("Set target point."); 324 fpCommandTargetPoint->SetGuidance 325 ("This sets the \"Current Target Point\" relative to the \"Standard"); 326 fpCommandTargetPoint->SetGuidance 327 ("Target Point\" so that the actual target point is as requested."); 328 fpCommandTargetPoint->SetGuidance 329 ("(See G4ViewParameters.hh for an explanation of target points.)"); 330 fpCommandTargetPoint->SetParameterName("x", "y", "z", omitable = false); 331 fpCommandTargetPoint->SetUnitCategory("Length"); 332 319 333 fpCommandUpThetaPhi = new G4UIcommand 320 334 ("/vis/viewer/set/upThetaPhi", this); … … 401 415 delete fpCommandSectionPlane; 402 416 delete fpCommandStyle; 417 delete fpCommandTargetPoint; 403 418 delete fpCommandUpThetaPhi; 404 419 delete fpCommandUpVector; … … 912 927 } 913 928 929 else if (command == fpCommandTargetPoint) { 930 G4ThreeVector targetPoint = 931 fpCommandTargetPoint->GetNew3VectorValue(newValue); 932 const G4Point3D& standardTargetPoint = 933 currentViewer->GetSceneHandler()->GetScene()->GetStandardTargetPoint(); 934 vp.SetCurrentTargetPoint(targetPoint - standardTargetPoint); 935 if (verbosity >= G4VisManager::confirmations) { 936 G4cout << "Target point set to " 937 << fpCommandTargetPoint->ConvertToStringWithBestUnit 938 (targetPoint) 939 << "\n\"Current Target Point\" set to " 940 << fpCommandTargetPoint->ConvertToStringWithBestUnit 941 (vp.GetCurrentTargetPoint()) 942 << "\n\"Standard Target Point\" is " 943 << fpCommandTargetPoint->ConvertToStringWithBestUnit 944 (standardTargetPoint) 945 << G4endl; 946 } 947 } 948 914 949 else if (command == fpCommandUpThetaPhi) { 915 950 G4double theta, phi; -
trunk/source/visualization/management/src/G4VisManager.cc
r1038 r1050 87 87 fpSceneHandler (0), 88 88 fpViewer (0), 89 fVerbosity ( warnings),89 fVerbosity (all),//warnings), 90 90 fpStateDependent (0), 91 91 fEventRefreshing (false), … … 814 814 void G4VisManager::NotifyHandlers () { 815 815 816 #ifdef G4DEBUG_VIS_MANAGEMENT 817 printf("G4VisManager::NotifyHandlers \n"); 818 #endif 816 819 if (fVerbosity >= confirmations) { 817 820 G4cout << "G4VisManager::NotifyHandler() called." << G4endl; … … 842 845 } 843 846 847 #ifdef G4DEBUG_VIS_MANAGEMENT 848 printf("G4VisManager::NotifyHandlers END\n"); 849 #endif 844 850 } 845 851
Note: See TracChangeset
for help on using the changeset viewer.