- Timestamp:
- Feb 26, 2009, 12:23:33 PM (15 years ago)
- Location:
- trunk/source/graphics_reps
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/graphics_reps/History
r921 r932 1 cvs log $Id: History,v 1.13 3 2008/11/13 09:07:31 gcosmoExp $1 cvs log $Id: History,v 1.135 2009/02/25 14:13:43 allison Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 17 17 * Reverse chronological order (last date on top), please * 18 18 ---------------------------------------------------------- 19 20 25th February 2009 John Allison (greps-V09-02-01) 21 - G4VVisManager: Added NotifyHandlers. 22 Notify scene handlers (G4VGraphicsScene objects) that the scene 23 has changed so that they may rebuild their graphics database, if 24 any, and redraw all views. 25 26 24th February 2009 John Allison (greps-V09-02-00) 27 - G4VMarker: 28 o Added enum SizeType {none, world, screen}; 29 o Added GetSizeType and SetSize/Diameter/Radius(SizeType, G4double). 19 30 20 31 13th November 2008 Gabriele Cosmo (greps-V09-01-06) -
trunk/source/graphics_reps/include/G4PolyhedronArbitrary.hh
r830 r932 18 18 // * This code implementation is the result of the scientific and * 19 19 // * technical work of the GEANT4 collaboration and of QinetiQ Ltd, * 20 // * subject DEFCON 705 IPR conditions.*20 // * subject to DEFCON 705 IPR conditions. * 21 21 // * By using, copying, modifying or distributing the software (or * 22 22 // * any work based on the software) you agree to acknowledge its * … … 24 24 // * acceptance of all terms of the Geant4 Software license. * 25 25 // ******************************************************************** 26 // 26 27 // 27 28 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -
trunk/source/graphics_reps/include/G4VMarker.hh
r850 r932 25 25 // 26 26 // 27 // $Id: G4VMarker.hh,v 1.1 2 2006/06/29 19:06:14 gunterExp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4VMarker.hh,v 1.13 2009/02/24 10:58:04 allison Exp $ 28 // GEANT4 tag $Name: greps-V09-02-00 $ 29 29 // 30 30 // … … 97 97 98 98 enum FillStyle {noFill, hashed, filled}; 99 enum SizeType {none, world, screen}; 99 100 100 101 ////////////////////////////////////////////////////// … … 114 115 // Get functions... 115 116 G4Point3D GetPosition () const; 117 SizeType GetSizeType () const; 116 118 G4double GetWorldSize () const; 117 119 G4double GetWorldDiameter () const; … … 125 127 // Set functions... 126 128 void SetPosition (const G4Point3D&); 129 void SetSize (SizeType, G4double); 130 void SetDiameter (SizeType, G4double); 131 void SetRadius (SizeType, G4double); 127 132 void SetWorldSize (G4double); 128 133 void SetWorldDiameter (G4double); -
trunk/source/graphics_reps/include/G4VMarker.icc
r850 r932 25 25 // 26 26 // 27 // $Id: G4VMarker.icc,v 1. 7 2006/06/29 19:06:16 gunterExp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4VMarker.icc,v 1.8 2009/02/24 10:58:04 allison Exp $ 28 // GEANT4 tag $Name: greps-V09-02-00 $ 29 29 // 30 30 // … … 66 66 } 67 67 68 inline void G4VMarker::SetDiameter (SizeType sizeType, G4double size) { 69 SetSize(sizeType, size); 70 } 71 72 inline void G4VMarker::SetRadius (SizeType sizeType, G4double size) { 73 SetSize(sizeType, 2. * size); 74 } 75 68 76 inline void G4VMarker::SetWorldSize (G4double ws) { 69 77 fWorldSize = ws; … … 97 105 } 98 106 107 inline const G4String& G4VMarker::GetInfo() const {return fInfo;} 99 108 109 inline void G4VMarker::SetInfo(const G4String& info) {fInfo = info;} -
trunk/source/graphics_reps/include/G4VVisManager.hh
r850 r932 25 25 // 26 26 // 27 // $Id: G4VVisManager.hh,v 1.1 4 2008/01/04 22:20:59allison Exp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4VVisManager.hh,v 1.15 2009/02/25 14:13:43 allison Exp $ 28 // GEANT4 tag $Name: $ 29 29 // John Allison 19/Oct/1996. 30 30 // … … 189 189 // This is used by the run manager to notify a change of geometry. 190 190 191 virtual void NotifyHandlers () {} 192 // Notify scene handlers (G4VGraphicsScene objects) that the scene 193 // has changed so that they may rebuild their graphics database, if 194 // any, and redraw all views. 195 191 196 virtual void DispatchToModel(const G4VTrajectory&, G4int i_mode = 0) = 0; 192 197 // Draw the trajectory. -
trunk/source/graphics_reps/src/G4PolyhedronArbitrary.cc
r830 r932 18 18 // * This code implementation is the result of the scientific and * 19 19 // * technical work of the GEANT4 collaboration and of QinetiQ Ltd, * 20 // * subject DEFCON 705 IPR conditions.*20 // * subject to DEFCON 705 IPR conditions. * 21 21 // * By using, copying, modifying or distributing the software (or * 22 22 // * any work based on the software) you agree to acknowledge its * … … 24 24 // * acceptance of all terms of the Geant4 Software license. * 25 25 // ******************************************************************** 26 // 26 27 // 27 28 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -
trunk/source/graphics_reps/src/G4VMarker.cc
r850 r932 25 25 // 26 26 // 27 // $Id: G4VMarker.cc,v 1.1 1 2006/06/29 19:07:21 gunterExp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4VMarker.cc,v 1.12 2009/02/24 10:58:04 allison Exp $ 28 // GEANT4 tag $Name: greps-V09-02-00 $ 29 29 // 30 30 // … … 86 86 } 87 87 88 const G4String& G4VMarker::GetInfo() const { return fInfo ;} 88 G4VMarker::SizeType G4VMarker::GetSizeType () const { 89 SizeType type = none; 90 if (fWorldSize) type = world; 91 else if (fScreenSize) type = screen; 92 return type; 93 } 89 94 90 void G4VMarker::SetInfo( const G4String& info ){ fInfo = info ;} 91 95 void G4VMarker::SetSize (SizeType sizeType, G4double size) { 96 fWorldSize = fScreenSize = 0.; 97 if (sizeType == world) fWorldSize = size; 98 else if (sizeType == screen) fScreenSize = size; 99 } -
trunk/source/graphics_reps/src/G4VVisManager.cc
r850 r932 40 40 G4VVisManager* G4VVisManager::GetConcreteInstance () 41 41 { 42 printf("G4VVisManager::GetConcreteInstance %d\n",fpConcreteInstance); 42 43 return fpConcreteInstance; 43 44 }
Note: See TracChangeset
for help on using the changeset viewer.