Changeset 1228 for trunk/source/visualization/test
- Timestamp:
- Jan 8, 2010, 11:56:51 AM (16 years ago)
- Location:
- trunk/source/visualization/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/test/History
r1140 r1228 1 $Id: History,v 1.1 19 2009/09/29 21:36:38allison Exp $1 $Id: History,v 1.121 2009/11/06 16:02:33 allison Exp $ 2 2 3 3 History file for visualization/test subdirectory … … 5 5 6 6 $Log: History,v $ 7 Revision 1.121 2009/11/06 16:02:33 allison 8 vistest-V09-02-01 9 10 Revision 1.120 2009/11/06 16:01:57 allison 11 Use G4UIExecutive in a more refined way. 12 7 13 Revision 1.119 2009/09/29 21:36:38 allison 8 14 vistest-V09-02-00 -
trunk/source/visualization/test/test19.cc
r1140 r1228 25 25 // 26 26 // 27 // $Id: test19.cc,v 1.3 1 2009/09/29 21:35:56allison Exp $27 // $Id: test19.cc,v 1.32 2009/11/06 16:01:57 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 32 32 // Usage: test19 [<session>] [<verbosity>] 33 33 // Without verbosity, verbosity=warnings. 34 // Without session, session=new G4UIterminal(), or if G4UI_USE_TCSH is set35 // session=new G4UIterminal(new G4UItcsh),36 34 37 35 #include <stdio.h> … … 82 80 #ifdef G4UI_USE 83 81 // Choose (G)UI. 84 G4UIExecutive* UIexecutive = new G4UIExecutive(argc, argv); 85 G4UImanager::GetUIpointer()->SetSession(UIexecutive->GetSession()); //So that Pause works.. 82 G4UIExecutive* ui = new G4UIExecutive(argc, argv); 86 83 #endif 87 84 … … 119 116 #endif 120 117 121 G4UImanager* UI = G4UImanager::GetUIpointer ();118 G4UImanager* UImanager = G4UImanager::GetUIpointer (); 122 119 #ifdef G4UI_USE_WIN32 123 120 G4cout << "Reading win32.g4m file...." << G4endl; 124 UI -> ApplyCommand ("/control/execute win32.g4m");121 UImanager -> ApplyCommand ("/control/execute win32.g4m"); 125 122 #else 126 123 G4cout << "Reading test19.g4m file...." << G4endl; 127 UI -> ApplyCommand ("/control/execute test19.g4m");124 UImanager -> ApplyCommand ("/control/execute test19.g4m"); 128 125 #endif 129 126 … … 135 132 #ifdef G4UI_USE 136 133 // Start an interactive session. 137 UIexecutive-> SessionStart();134 ui -> SessionStart(); 138 135 #endif 139 136 … … 148 145 G4cout << "vis_test19: Deleting session..." << G4endl; 149 146 #ifdef G4UI_USE 150 delete UIexecutive;147 delete ui; 151 148 G4cout << "vis_test19: Session deleted." << G4endl; 152 149 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
