Changeset 1293
- Timestamp:
- Jun 2, 2010, 10:23:13 AM (14 years ago)
- Location:
- trunk/source
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/graphics_reps/History
r1257 r1293 1 cvs log $Id: History,v 1.1 39 2010/05/07 16:06:18allison Exp $1 cvs log $Id: History,v 1.141 2010/05/30 11:15:52 allison Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 17 17 * Reverse chronological order (last date on top), please * 18 18 ---------------------------------------------------------- 19 20 30th May 2010 John Allison (greps-V09-03-02) 21 - G4VVisManager: Added Draw(const G4VDigi&) and FilterDigi(const G4VDigi&). 22 - G4VGraphicsScene: Added AddCompound (const G4VDigi&). 23 24 29th May 2010 John Allison (greps-V09-03-01) 25 - G4VVisManager: 26 o Removed IsDefaultDrawTrajectory. A better way is... 27 o Added DispatchToModel(const G4VTrajectory&), i.e., without i_mode, to 28 distinguish usage and in preparation for i_mode migration. 19 29 20 30 7th May 2010 John Allison (greps-V09-03-00) -
trunk/source/graphics_reps/include/G4VGraphicsScene.hh
r1228 r1293 25 25 // 26 26 // 27 // $Id: G4VGraphicsScene.hh,v 1.1 2 2009/10/21 15:36:22allison Exp $28 // GEANT4 tag $Name: geant4-09-03$27 // $Id: G4VGraphicsScene.hh,v 1.13 2010/05/30 11:15:36 allison Exp $ 28 // GEANT4 tag $Name: $ 29 29 // John Allison 19th July 1996 30 30 // … … 57 57 class G4VTrajectory; 58 58 class G4VHit; 59 class G4VDigi; 59 60 template <typename T> class G4THitsMap; 60 61 class G4Polyline; … … 116 117 virtual void AddCompound (const G4VTrajectory&) = 0; 117 118 virtual void AddCompound (const G4VHit&) = 0; 119 virtual void AddCompound (const G4VDigi&) = 0; 118 120 virtual void AddCompound (const G4THitsMap<G4double>&) = 0; 119 121 -
trunk/source/graphics_reps/include/G4VVisManager.hh
r1257 r1293 25 25 // 26 26 // 27 // $Id: G4VVisManager.hh,v 1.1 6 2010/05/07 16:05:56 allison Exp $27 // $Id: G4VVisManager.hh,v 1.18 2010/05/30 11:15:36 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // John Allison 19/Oct/1996. … … 87 87 class G4VSolid; 88 88 class G4VHit; 89 class G4VDigi; 89 90 class G4VTrajectory; 90 91 class G4LogicalVolume; … … 168 169 virtual void Draw (const G4VHit&) = 0; 169 170 171 virtual void Draw (const G4VDigi&) = 0; 172 170 173 virtual void Draw (const G4VTrajectory&, G4int i_mode = 0) = 0; 171 174 // i_mode is a parameter that can be used to control the drawing of … … 194 197 // any, and redraw all views. 195 198 196 virtual void DispatchToModel(const G4VTrajectory&, G4int i_mode = 0) = 0; 199 virtual void DispatchToModel(const G4VTrajectory&) = 0; 200 virtual void DispatchToModel(const G4VTrajectory&, G4int i_mode) = 0; 197 201 // Draw the trajectory. 198 202 … … 203 207 // Hit filter 204 208 209 virtual G4bool FilterDigi(const G4VDigi&) = 0; 210 // Digi filter 211 205 212 protected: 206 213 … … 208 215 209 216 static G4VVisManager* fpConcreteInstance; // Pointer to real G4VisManager. 210 211 public:212 213 static G4bool IsDefaultDrawTrajectory;214 215 217 }; 216 218 -
trunk/source/graphics_reps/src/G4VVisManager.cc
r1257 r1293 25 25 // 26 26 // 27 // $Id: G4VVisManager.cc,v 1. 5 2010/05/07 16:05:56 allison Exp $27 // $Id: G4VVisManager.cc,v 1.6 2010/05/29 21:35:16 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 47 47 fpConcreteInstance = m; 48 48 } 49 50 G4bool G4VVisManager::IsDefaultDrawTrajectory = true; -
trunk/source/intercoms/History
r1256 r1293 1 $Id: History,v 1. 79 2010/05/19 14:50:30 lgarnierExp $1 $Id: History,v 1.80 2010/05/20 07:22:53 kmura Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 18 18 ---------------------------------------------------------- 19 19 20 19 May 2010 L. Garnier 20 19 May 2010 L. Garnier (intercoms-V09-03-01) 21 21 - G4UIManager : Add field to get GUI Window session 22 22 -
trunk/source/interfaces/History
r1278 r1293 1 $Id: History,v 1.13 8 2010/05/28 09:14:41lgarnier Exp $1 $Id: History,v 1.139 2010/06/01 15:43:30 lgarnier Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 18 18 ---------------------------------------------------------- 19 19 20 1st June, L. Garnier 21 - G4UIQt : warning on Qt version < 4.5 22 20 23 28 May, L. Garnier 21 24 - G4UIQt : Bug fix when compiling on windows -
trunk/source/interfaces/basic/include/G4UIQt.hh
r1284 r1293 25 25 // 26 26 // 27 // $Id: G4UIQt.hh,v 1.2 0 2010/05/19 07:18:50 lgarnier Exp $27 // $Id: G4UIQt.hh,v 1.21 2010/06/01 15:43:30 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // -
trunk/source/interfaces/basic/src/G4UIQt.cc
r1283 r1293 25 25 // 26 26 // 27 // $Id: G4UIQt.cc,v 1. 39 2010/05/28 13:14:18lgarnier Exp $27 // $Id: G4UIQt.cc,v 1.40 2010/06/01 15:43:30 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // -
trunk/source/tracking/History
r1228 r1293 1 $Id: History,v 1.1 37 2009/11/24 10:04:14 perlExp $2 $Name: geant4-09-03 $1 $Id: History,v 1.141 2010/05/29 21:31:28 allison Exp $ 2 $Name: tracking-V09-03-03 $ 3 3 ------------------------------------------------------------------- 4 4 … … 18 18 * Reverse chronological order (last date on top), please * 19 19 ---------------------------------------------------------- 20 21 29 May 2010 John Allison (tracking-V09-03-03) 22 - G4VTrajectory: 23 o Added virtual void DrawTrajectory() in preparation for i_mode migration. 24 - G4Trajectory and G4SmoothTrajectory: followed the above. 25 o (G4RichTrajectory inherits G4Trajectory so no need to change.) 26 27 28 May 2010 John Allison (tracking-V09-03-02) 28 - G4VTrajectory.cc: Added explicit once-only i_mode deprecation warning. 29 30 13 May 2010 John Allison (tracking-V09-03-01 - needs greps-V09-03-00) 31 - G4VTrajectory.cc: Added a statement to set IsDefaultDrawTrajectory, 32 to assist deprecation of i-mode trajectory drawing parameter. After 33 10.0, it can be removed. 34 35 22 Feb 2010 John Allison (tracking-V09-03-00) 36 - G4RichTrajectory: Fixed bug in MergeTrajectory (should not invoke 37 G4Trajectory::MergeTrajectory). 38 - G4RichTrajectory and G4RichTrajectoryPoint: 39 o Eliminated spaces in G4AttValue values. 40 o G4AttValue values are "None" for attributes derived from zero pointers. 20 41 21 42 24 Nov 2009 Joseph Perl (tracking-V09-02-07) -
trunk/source/tracking/include/G4SmoothTrajectory.hh
r1228 r1293 25 25 // 26 26 // 27 // $Id: G4SmoothTrajectory.hh,v 1.1 2 2009/11/12 09:09:56allison Exp $28 // GEANT4 tag $Name: geant4-09-03 $27 // $Id: G4SmoothTrajectory.hh,v 1.13 2010/05/29 21:31:03 allison Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-03 $ 29 29 // 30 30 //--------------------------------------------------------------- … … 102 102 // Other member functions 103 103 virtual void ShowTrajectory(std::ostream& os=G4cout) const; 104 virtual void DrawTrajectory(G4int i_mode=0) const; 104 virtual void DrawTrajectory() const; 105 virtual void DrawTrajectory(G4int i_mode) const; 105 106 virtual void AppendStep(const G4Step* aStep); 106 107 virtual int GetPointEntries() const { return positionRecord->size(); } -
trunk/source/tracking/include/G4Trajectory.hh
r1228 r1293 25 25 // 26 26 // 27 // $Id: G4Trajectory.hh,v 1.2 5 2009/11/12 09:09:56allison Exp $28 // GEANT4 tag $Name: geant4-09-03 $27 // $Id: G4Trajectory.hh,v 1.26 2010/05/29 21:31:03 allison Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-03 $ 29 29 // 30 30 //--------------------------------------------------------------- … … 108 108 // Other member functions 109 109 virtual void ShowTrajectory(std::ostream& os=G4cout) const; 110 virtual void DrawTrajectory(G4int i_mode=0) const; 110 virtual void DrawTrajectory() const; 111 virtual void DrawTrajectory(G4int i_mode) const; 111 112 virtual void AppendStep(const G4Step* aStep); 112 113 virtual int GetPointEntries() const { return positionRecord->size(); } -
trunk/source/tracking/include/G4VTrajectory.hh
r1228 r1293 25 25 // 26 26 // 27 // $Id: G4VTrajectory.hh,v 1.1 7 2006/06/29 21:15:51 gunterExp $28 // GEANT4 tag $Name: geant4-09-03 $27 // $Id: G4VTrajectory.hh,v 1.18 2010/05/29 21:31:03 allison Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-03 $ 29 29 // 30 30 //--------------------------------------------------------------- … … 90 90 // the user needs to follow with new-line or end-of-string, 91 91 // depending on the nature of os. 92 virtual void DrawTrajectory(G4int i_mode=0) const; 92 virtual void DrawTrajectory() const; 93 virtual void DrawTrajectory(G4int i_mode) const; 93 94 // Draw the trajectory. A default implementation in this base 94 95 // class may be used or may be overridden in the concrete class. -
trunk/source/tracking/src/G4RichTrajectory.cc
r1228 r1293 25 25 // 26 26 // 27 // $Id: G4RichTrajectory.cc,v 1. 8 2009/11/24 10:04:14 perlExp $28 // GEANT4 tag $Name: geant4-09-03 $27 // $Id: G4RichTrajectory.cc,v 1.9 2010/02/22 21:26:56 allison Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-03 $ 29 29 // 30 30 // --------------------------------------------------------------- … … 145 145 if(!secondTrajectory) return; 146 146 147 G4Trajectory::MergeTrajectory(secondTrajectory);148 149 147 G4RichTrajectory* seco = (G4RichTrajectory*)secondTrajectory; 150 148 G4int ent = seco->GetPointEntries(); … … 245 243 values->push_back(G4AttValue("CPTN",G4VProcess::GetProcessTypeName(type),"")); 246 244 } else { 247 values->push_back(G4AttValue("CPN"," User Defined",""));248 values->push_back(G4AttValue("CPTN"," User",""));245 values->push_back(G4AttValue("CPN","None","")); 246 values->push_back(G4AttValue("CPTN","None","")); 249 247 } 250 248 … … 266 264 values->push_back(G4AttValue("EPTN",G4VProcess::GetProcessTypeName(type),"")); 267 265 } else { 268 values->push_back(G4AttValue("EPN"," User Defined",""));269 values->push_back(G4AttValue("EPTN"," User",""));266 values->push_back(G4AttValue("EPN","None","")); 267 values->push_back(G4AttValue("EPTN","None","")); 270 268 } 271 269 -
trunk/source/tracking/src/G4RichTrajectoryPoint.cc
r1228 r1293 25 25 // 26 26 // 27 // $Id: G4RichTrajectoryPoint.cc,v 1. 5 2009/11/24 10:04:14 perlExp $28 // GEANT4 tag $Name: geant4-09-03 $27 // $Id: G4RichTrajectoryPoint.cc,v 1.6 2010/02/22 21:26:56 allison Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-03 $ 29 29 // 30 30 // … … 236 236 "")); 237 237 } else { 238 values->push_back 239 (G4AttValue("PDS","User Defined Limit in Current Volume","")); 240 values->push_back(G4AttValue("PTDS","User","")); 238 values->push_back(G4AttValue("PDS","None","")); 239 values->push_back(G4AttValue("PTDS","None","")); 241 240 } 242 241 -
trunk/source/tracking/src/G4SmoothTrajectory.cc
r1228 r1293 25 25 // 26 26 // 27 // $Id: G4SmoothTrajectory.cc,v 1. 19 2009/11/12 09:09:56allison Exp $28 // GEANT4 tag $Name: geant4-09-03 $27 // $Id: G4SmoothTrajectory.cc,v 1.20 2010/05/29 21:31:03 allison Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-03 $ 29 29 // 30 30 // … … 120 120 } 121 121 122 void G4SmoothTrajectory::DrawTrajectory() const 123 { 124 // Invoke the default implementation in G4VTrajectory... 125 G4VTrajectory::DrawTrajectory(); 126 // ... or override with your own code here. 127 } 128 122 129 void G4SmoothTrajectory::DrawTrajectory(G4int i_mode) const 123 130 { -
trunk/source/tracking/src/G4Trajectory.cc
r1228 r1293 25 25 // 26 26 // 27 // $Id: G4Trajectory.cc,v 1.3 3 2009/11/12 09:09:56allison Exp $28 // GEANT4 tag $Name: geant4-09-03 $27 // $Id: G4Trajectory.cc,v 1.34 2010/05/29 21:31:03 allison Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-03 $ 29 29 // 30 30 // --------------------------------------------------------------- … … 115 115 } 116 116 117 void G4Trajectory::DrawTrajectory() const 118 { 119 // Invoke the default implementation in G4VTrajectory... 120 G4VTrajectory::DrawTrajectory(); 121 // ... or override with your own code here. 122 } 123 117 124 void G4Trajectory::DrawTrajectory(G4int i_mode) const 118 125 { -
trunk/source/tracking/src/G4VTrajectory.cc
r1228 r1293 25 25 // 26 26 // 27 // $Id: G4VTrajectory.cc,v 1.1 2 2006/10/16 13:45:01allison Exp $28 // GEANT4 tag $Name: geant4-09-03 $27 // $Id: G4VTrajectory.cc,v 1.15 2010/05/29 21:31:03 allison Exp $ 28 // GEANT4 tag $Name: tracking-V09-03-03 $ 29 29 // 30 30 // --------------------------------------------------------------- … … 116 116 } 117 117 118 void G4VTrajectory::DrawTrajectory() const 119 { 120 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance(); 121 122 if (0 != pVVisManager) { 123 pVVisManager->DispatchToModel(*this); 124 } 125 } 126 118 127 void G4VTrajectory::DrawTrajectory(G4int i_mode) const 119 128 { 120 129 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance(); 130 131 static G4bool warnedAboutIMode = false; 132 if (!warnedAboutIMode) { 133 G4Exception 134 ("G4VTrajectory::DrawTrajectory", 135 "", 136 JustWarning, 137 "WARNING: DEPRECATED: The use of i_mode argument in DrawTrajectory" 138 "\n is deprecated and will be removed at the next major release."); 139 warnedAboutIMode = true; 140 } 121 141 122 142 if (0 != pVVisManager) {
Note: See TracChangeset
for help on using the changeset viewer.