Changeset 1315 for trunk/source/visualization/management
- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- Location:
- trunk/source/visualization/management
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/management/History
r1288 r1315 1 $Id: History,v 1.15 0 2010/06/01 16:14:10allison Exp $1 $Id: History,v 1.152 2010/06/15 16:34:43 allison Exp $ 2 2 3 3 ------------------------------------------------------------------- … … 26 26 History file for visualization management sub-category 27 27 ------------------------------------------------------ 28 29 15th June 2010 John Allison (visman-V09-03-10) 30 - G4VisCommandsGeometrySet.hh: Added virtual destructors to fix 31 compilation warnings. 32 - G4VisCommandsGeometrySet.cc: Changed "/vis/viewer/rebuild" to 33 "/vis/scene/notifyHandlers", the command to be executed after a 34 "/vis/geometry/..." command. "/vis/scene/notifyHandlers" causes 35 rebuild if viewer is "auto-refresh", otherwiae a message advises a 36 rebuild. This prevents over-enthusiatic rebuildin. 37 38 3rd June 2010 John Allison (visman-V09-03-09) 39 - G4VisManager.cc: Checked valid view in DispatchToModel. 40 - Changed /vis/scene/add/digiti[sz]ations to /vis/scene/add/digis. 28 41 29 42 1st June 2010 John Allison (visman-V09-03-07) -
trunk/source/visualization/management/include/G4VisCommandsGeometrySet.hh
r954 r1315 25 25 // 26 26 // 27 // $Id: G4VisCommandsGeometrySet.hh,v 1. 3 2007/01/05 16:24:19allison Exp $28 // GEANT4 tag $Name: $27 // $Id: G4VisCommandsGeometrySet.hh,v 1.4 2010/06/15 16:33:55 allison Exp $ 28 // GEANT4 tag $Name: vis-V09-03-08 $ 29 29 30 30 // /vis/geometry commands - John Allison 31st January 2006 … … 40 40 class G4VVisCommandGeometrySetFunction { 41 41 public: 42 virtual ~G4VVisCommandGeometrySetFunction() {} 42 43 virtual void operator()(G4VisAttributes*) const = 0; 43 44 }; … … 46 47 public G4VVisCommandGeometrySetFunction { 47 48 public: 49 virtual ~G4VisCommandGeometrySetColourFunction() {} 48 50 G4VisCommandGeometrySetColourFunction 49 51 (const G4Colour& colour): … … 59 61 public G4VVisCommandGeometrySetFunction { 60 62 public: 63 virtual ~G4VisCommandGeometrySetDaughtersInvisibleFunction() {} 61 64 G4VisCommandGeometrySetDaughtersInvisibleFunction 62 65 (G4bool daughtersInvisible): … … 72 75 public G4VVisCommandGeometrySetFunction { 73 76 public: 77 virtual ~G4VisCommandGeometrySetForceAuxEdgeVisibleFunction() {} 74 78 G4VisCommandGeometrySetForceAuxEdgeVisibleFunction 75 79 (G4bool forceAuxEdgeVisible): … … 85 89 public G4VVisCommandGeometrySetFunction { 86 90 public: 91 virtual ~G4VisCommandGeometrySetForceLineSegmentsPerCircleFunction() {} 87 92 G4VisCommandGeometrySetForceLineSegmentsPerCircleFunction 88 93 (G4int lineSegmentsPerCircle): … … 98 103 public G4VVisCommandGeometrySetFunction { 99 104 public: 105 virtual ~G4VisCommandGeometrySetForceSolidFunction() {} 100 106 G4VisCommandGeometrySetForceSolidFunction 101 107 (G4bool forceSolid): … … 111 117 public G4VVisCommandGeometrySetFunction { 112 118 public: 119 virtual ~G4VisCommandGeometrySetForceWireframeFunction() {} 113 120 G4VisCommandGeometrySetForceWireframeFunction 114 121 (G4bool forceWireframe): … … 124 131 public G4VVisCommandGeometrySetFunction { 125 132 public: 133 virtual ~G4VisCommandGeometrySetLineStyleFunction() {} 126 134 G4VisCommandGeometrySetLineStyleFunction 127 135 (G4VisAttributes::LineStyle lineStyle): … … 137 145 public G4VVisCommandGeometrySetFunction { 138 146 public: 147 virtual ~G4VisCommandGeometrySetLineWidthFunction() {} 139 148 G4VisCommandGeometrySetLineWidthFunction 140 149 (G4double lineWidth): … … 150 159 public G4VVisCommandGeometrySetFunction { 151 160 public: 161 virtual ~G4VisCommandGeometrySetVisibilityFunction() {} 152 162 G4VisCommandGeometrySetVisibilityFunction 153 163 (G4bool visibility): -
trunk/source/visualization/management/include/G4VisCommandsSceneAdd.hh
r1288 r1315 25 25 // 26 26 // 27 // $Id: G4VisCommandsSceneAdd.hh,v 1.2 0 2010/05/30 11:30:49allison Exp $28 // GEANT4 tag $Name: $27 // $Id: G4VisCommandsSceneAdd.hh,v 1.21 2010/06/03 10:17:44 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 30 30 // /vis/scene commands - John Allison 9th August 1998 … … 63 63 G4VisCommandSceneAddDigis& operator = (const G4VisCommandSceneAddDigis&); 64 64 G4UIcmdWithoutParameter* fpCommand; 65 G4UIcmdWithoutParameter* fpCommandUS;66 65 }; 67 66 -
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.