Changeset 1228 for trunk/source/visualization/HepRep/include
- Timestamp:
- Jan 8, 2010, 11:56:51 AM (16 years ago)
- Location:
- trunk/source/visualization/HepRep/include
- Files:
-
- 4 edited
-
G4HepRep.hh (modified) (3 diffs)
-
G4HepRepMessenger.hh (modified) (5 diffs)
-
G4HepRepSceneHandler.hh (modified) (3 diffs)
-
G4HepRepViewer.hh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/HepRep/include/G4HepRep.hh
r944 r1228 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4HepRep.hh,v 1.1 7 2006/06/29 21:17:04 gunterExp $26 // $Id: G4HepRep.hh,v 1.18 2009/11/23 05:42:28 perl Exp $ 27 27 // GEANT4 tag $Name: $ 28 28 // … … 36 36 //G4 37 37 #include "G4VGraphicsSystem.hh" 38 39 class G4HepRepMessenger;40 38 41 39 class G4HepRep: public G4VGraphicsSystem { … … 52 50 G4VSceneHandler* sceneHandler; 53 51 G4VViewer* viewer; 54 G4HepRepMessenger* messenger;55 52 }; 56 53 -
trunk/source/visualization/HepRep/include/G4HepRepMessenger.hh
r944 r1228 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4HepRepMessenger.hh,v 1. 7 2006/06/29 21:17:14 gunterExp $26 // $Id: G4HepRepMessenger.hh,v 1.8 2009/11/23 05:42:28 perl Exp $ 27 27 // GEANT4 tag $Name: $ 28 28 // … … 40 40 41 41 public: 42 G4HepRepMessenger(); 42 static G4HepRepMessenger* GetInstance(); // Singleton constructor. 43 43 virtual ~G4HepRepMessenger(); 44 44 … … 46 46 virtual void SetNewValue(G4UIcommand * command, G4String newValue); 47 47 48 // Used by HepRepFile 49 virtual G4String getFileDir(); 50 virtual G4String getFileName(); 51 virtual G4bool getOverwrite(); 52 virtual G4bool getCullInvisibles(); 53 54 // Used by HepRepXML 48 55 virtual G4String getEventNumberSuffix(); 49 56 virtual G4bool appendGeometry(); … … 53 60 54 61 private: 62 G4HepRepMessenger(); // Private constructor. 63 static G4HepRepMessenger* fpInstance; 64 55 65 G4UIdirectory* heprepDirectory; 66 67 G4String fileDir; 68 G4UIcmdWithAString* setFileDirCommand; 69 70 G4String fileName; 71 G4UIcmdWithAString* setFileNameCommand; 72 73 G4bool overwrite; 74 G4UIcmdWithABool* setOverwriteCommand; 75 76 G4bool cullInvisibles; 77 G4UIcmdWithABool* setCullInvisiblesCommand; 56 78 57 79 G4String suffix; … … 66 88 G4bool solids; 67 89 G4UIcmdWithABool* useSolidsCommand; 68 90 69 91 G4bool invisibles; 70 92 G4UIcmdWithABool* writeInvisiblesCommand; -
trunk/source/visualization/HepRep/include/G4HepRepSceneHandler.hh
r1140 r1228 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4HepRepSceneHandler.hh,v 1.4 3 2009/10/21 15:08:35 allisonExp $26 // $Id: G4HepRepSceneHandler.hh,v 1.44 2009/11/23 05:42:28 perl Exp $ 27 27 // GEANT4 tag $Name: $ 28 28 // … … 63 63 #include "G4PhysicalVolumeModel.hh" 64 64 65 #include "G4HepRepMessenger.hh"66 67 65 class G4HepRepSceneHandler: public G4VSceneHandler { 68 66 69 67 public: 70 G4HepRepSceneHandler (G4VGraphicsSystem& system, G4HepRepMessenger& messenger,const G4String& name = "");68 G4HepRepSceneHandler (G4VGraphicsSystem& system, const G4String& name = ""); 71 69 virtual ~G4HepRepSceneHandler (); 72 70 … … 187 185 188 186 // initialized Member Variables 189 G4HepRepMessenger& messenger;190 187 G4String geometryLayer, eventLayer, calHitLayer; 191 188 G4String trajectoryLayer, hitLayer; -
trunk/source/visualization/HepRep/include/G4HepRepViewer.hh
r944 r1228 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4HepRepViewer.hh,v 1.1 8 2006/06/29 21:17:18 gunterExp $26 // $Id: G4HepRepViewer.hh,v 1.19 2009/11/23 05:42:28 perl Exp $ 27 27 // GEANT4 tag $Name: $ 28 28 // … … 41 41 #include "G4VViewer.hh" 42 42 43 #include "G4HepRepMessenger.hh"44 45 43 class G4HepRepViewer: public G4VViewer { 46 44 public: 47 G4HepRepViewer (G4VSceneHandler& scene, G4HepRepMessenger& messenger,const G4String& name = "");45 G4HepRepViewer (G4VSceneHandler& scene, const G4String& name = ""); 48 46 virtual ~G4HepRepViewer (); 49 47 void SetView (); … … 57 55 private: 58 56 bool geometryIncluded; 59 G4HepRepMessenger& messenger;60 57 }; 61 58
Note:
See TracChangeset
for help on using the changeset viewer.
