Changeset 1315 for trunk/source/visualization/management/src
- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- Location:
- trunk/source/visualization/management/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/management/src/G4VisCommandsGeometrySet.cc
r954 r1315 25 25 // 26 26 // 27 // $Id: G4VisCommandsGeometrySet.cc,v 1. 7 2007/01/05 16:24:19allison Exp $28 // GEANT4 tag $Name: $27 // $Id: G4VisCommandsGeometrySet.cc,v 1.8 2010/06/15 16:34:30 allison Exp $ 28 // GEANT4 tag $Name: vis-V09-03-08 $ 29 29 30 30 // /vis/geometry commands - John Allison 31st January 2006 … … 64 64 } 65 65 if (fpVisManager->GetCurrentViewer()) { 66 G4UImanager::GetUIpointer()->ApplyCommand("/vis/ viewer/rebuild");66 G4UImanager::GetUIpointer()->ApplyCommand("/vis/scene/notifyHandlers"); 67 67 } 68 68 } -
trunk/source/visualization/management/src/G4VisCommandsSceneAdd.cc
r1288 r1315 25 25 // 26 26 // 27 // $Id: G4VisCommandsSceneAdd.cc,v 1.8 1 2010/06/01 16:08:15allison Exp $28 // GEANT4 tag $Name: $27 // $Id: G4VisCommandsSceneAdd.cc,v 1.82 2010/06/03 10:17:44 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // /vis/scene commands - John Allison 9th August 1998 30 30 … … 162 162 163 163 G4VisCommandSceneAddDigis::G4VisCommandSceneAddDigis () { 164 fpCommand = new G4UIcmdWithoutParameter ("/vis/scene/add/digi tisations", this);164 fpCommand = new G4UIcmdWithoutParameter ("/vis/scene/add/digis", this); 165 165 fpCommand -> SetGuidance ("Adds digis to current scene."); 166 166 fpCommand -> SetGuidance 167 167 ("Digis are drawn at end of event when the scene in which" 168 168 "\nthey are added is current."); 169 170 fpCommandUS = new G4UIcmdWithoutParameter ("/vis/scene/add/digitizations", this);171 fpCommandUS -> SetGuidance ("Adds digis to current scene.");172 fpCommandUS -> SetGuidance173 ("Digis are drawn at end of event when the scene in which"174 "\nthey are added is current.");175 169 } 176 170 177 171 G4VisCommandSceneAddDigis::~G4VisCommandSceneAddDigis () { 178 delete fpCommandUS;179 172 delete fpCommand; 180 173 } -
trunk/source/visualization/management/src/G4VisManager.cc
r1292 r1315 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4VisManager.cc,v 1.12 8 2010/06/01 16:08:15allison Exp $27 // GEANT4 tag $Name: $26 // $Id: G4VisManager.cc,v 1.129 2010/06/03 10:16:11 allison Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 28 28 // 29 29 // … … 940 940 assert (0 != trajectoryModel); // Should exist 941 941 942 G4TrajectoriesModel* trajectoriesModel = 943 dynamic_cast<G4TrajectoriesModel*>(fpSceneHandler->GetModel()); 944 if (trajectoriesModel) { 945 if (trajectoriesModel->IsDrawingModeSet()) { 942 if (IsValidView()) { 943 G4TrajectoriesModel* trajectoriesModel = 944 dynamic_cast<G4TrajectoriesModel*>(fpSceneHandler->GetModel()); 945 if (trajectoriesModel) { 946 if (trajectoriesModel->IsDrawingModeSet()) { 947 trajectoryModel->Draw(trajectory, i_mode, visible); 948 } else { 949 trajectoryModel->Draw(trajectory, visible); 950 } 951 } else { 952 // Just draw at user's request 946 953 trajectoryModel->Draw(trajectory, i_mode, visible); 947 } else { 948 trajectoryModel->Draw(trajectory, visible); 949 } 950 } else { 951 // Just draw at user's request 952 trajectoryModel->Draw(trajectory, i_mode, visible); 954 } 953 955 } 954 956 } … … 1361 1363 if (eventID < nEventsToBeProcessed - 1) { 1362 1364 fpViewer->ShowView(); 1365 fpViewer->DrawView(); 1363 1366 fpSceneHandler->SetMarkForClearingTransientStore(true); 1364 1367 } else { // Last event...
Note: See TracChangeset
for help on using the changeset viewer.