Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 // 26 // >> 27 // $Id: G4VisManager.icc,v 1.17 2006/06/29 21:29:08 gunter Exp $ >> 28 // GEANT4 tag $Name: geant4-08-01-patch-01 $ 27 // 29 // 28 // 30 // 29 // GEANT4 Visualization Manager - John Allison 31 // GEANT4 Visualization Manager - John Allison 02/Jan/1996. 30 32 31 inline void G4VisManager::Initialize () { 33 inline void G4VisManager::Initialize () { 32 Initialise (); 34 Initialise (); 33 } 35 } 34 36 35 inline G4bool G4VisManager::IsEnabled () const << 37 inline G4VisExtent G4VisManager::GetUserActionExtent () const { 36 return GetConcreteInstance(); << 38 return fUserVisActionExtent; 37 } 39 } 38 40 39 inline const std::vector<G4VisManager::UserVis << 41 inline G4VUserVisAction* G4VisManager::GetUserAction () const { 40 G4VisManager::GetRunDurationUserVisActions () << 42 return fpUserVisAction; 41 return fRunDurationUserVisActions; << 42 } << 43 << 44 inline const std::vector<G4VisManager::UserVis << 45 G4VisManager::GetEndOfEventUserVisActions () c << 46 return fEndOfEventUserVisActions; << 47 } << 48 << 49 inline const std::vector<G4VisManager::UserVis << 50 G4VisManager::GetEndOfRunUserVisActions () con << 51 return fEndOfRunUserVisActions; << 52 } << 53 << 54 inline const std::map<G4VUserVisAction*,G4VisE << 55 G4VisManager::GetUserVisActionExtents () const << 56 return fUserVisActionExtents; << 57 } 43 } 58 44 59 inline G4VSceneHandler* G4VisManager::GetCurre 45 inline G4VSceneHandler* G4VisManager::GetCurrentSceneHandler () const { 60 return fpSceneHandler; 46 return fpSceneHandler; 61 } 47 } 62 48 63 inline G4VViewer* G4VisManager::GetCurrentView 49 inline G4VViewer* G4VisManager::GetCurrentViewer () const { 64 return fpViewer; 50 return fpViewer; 65 } 51 } 66 52 67 inline G4Scene* G4VisManager::GetCurrentScene 53 inline G4Scene* G4VisManager::GetCurrentScene () const { 68 return fpScene; 54 return fpScene; 69 } 55 } 70 56 71 inline const G4SceneHandlerList& 57 inline const G4SceneHandlerList& 72 G4VisManager::GetAvailableSceneHandlers () con 58 G4VisManager::GetAvailableSceneHandlers () const { 73 return fAvailableSceneHandlers; 59 return fAvailableSceneHandlers; 74 } 60 } 75 61 76 inline const G4SceneList& G4VisManager::GetSce 62 inline const G4SceneList& G4VisManager::GetSceneList () const { 77 return fSceneList; 63 return fSceneList; 78 } 64 } 79 65 80 inline G4VGraphicsSystem* 66 inline G4VGraphicsSystem* 81 G4VisManager::GetCurrentGraphicsSystem () cons 67 G4VisManager::GetCurrentGraphicsSystem () const { 82 return fpGraphicsSystem; 68 return fpGraphicsSystem; 83 } 69 } 84 70 85 inline G4bool G4VisManager::GetTransientsDrawn << 71 inline G4VisManager::Verbosity G4VisManager::GetVerbosity () const { 86 return fTransientsDrawnThisEvent; << 72 return fVerbosity; 87 } 73 } 88 74 89 inline G4bool G4VisManager::GetTransientsDrawn << 75 inline void G4VisManager::GetWindowSizeHint 90 return fTransientsDrawnThisRun; << 76 (G4int& xHint, G4int& yHint) const { 91 } << 77 xHint = fWindowSizeHintX; yHint = fWindowSizeHintY; 92 << 93 inline G4bool G4VisManager::GetDrawEventOnlyIf << 94 return fDrawEventOnlyIfToBeKept; << 95 } 78 } 96 79 97 inline const G4Event* G4VisManager::GetRequest << 80 inline const G4String& G4VisManager::GetXGeometryString () const { 98 return fpRequestedEvent; << 81 return fXGeometryString; 99 } 82 } 100 83 101 inline G4int G4VisManager::GetNKeepForPostProc << 84 inline G4int G4VisManager::GetEventCount() const { 102 return fNKeepForPostProcessingRequests; << 85 return fEventCount; 103 } 86 } 104 87 105 inline G4int G4VisManager::GetNKeepTheEventReq << 88 inline const G4String& G4VisManager::GetBeginOfLastRunRandomStatus() const { 106 return fNKeepTheEventRequests; << 89 return fBeginOfLastRunRandomStatus; 107 } 90 } 108 91 109 inline G4bool G4VisManager::GetReviewingKeptEv << 92 inline const G4String& G4VisManager::GetBeginOfLastEventRandomStatus() const { 110 return fReviewingKeptEvents; << 93 return fBeginOfLastEventRandomStatus; 111 } 94 } 112 95 113 inline G4bool G4VisManager::GetAbortReviewKept << 96 inline G4int G4VisManager::GetLastRunID() const { 114 return fAbortReviewKeptEvents; << 97 return fLastRunID; 115 } 98 } 116 99 117 inline G4bool G4VisManager::GetReviewingPlots( << 100 inline G4bool G4VisManager::GetTransientsDrawnThisEvent() const { 118 return fReviewingPlots; << 101 return fTransientsDrawnThisEvent; 119 } << 120 << 121 inline G4bool G4VisManager::GetAbortReviewPlot << 122 return fAbortReviewPlots; << 123 } << 124 << 125 inline const G4ViewParameters& G4VisManager::G << 126 return fDefaultViewParameters; << 127 } << 128 << 129 inline G4int G4VisManager::GetMaxEventQueueSiz << 130 return fMaxEventQueueSize; << 131 } << 132 << 133 inline G4bool G4VisManager::GetWaitOnEventQueu << 134 return fWaitOnEventQueueFull; << 135 } << 136 << 137 inline const G4String& G4VisManager::GetDefaul << 138 return fDefaultGraphicsSystemName; << 139 } << 140 << 141 inline const G4String& G4VisManager::GetDefaul << 142 return fDefaultXGeometryString; << 143 } 102 } 144 103 145 inline const G4String& G4VisManager::GetDefaul << 104 inline G4bool G4VisManager::GetTransientsDrawnThisRun() const { 146 return fDefaultGraphicsSystemBasis; << 105 return fTransientsDrawnThisRun; 147 } 106 } 148 107 149 inline const G4String& G4VisManager::GetDefaul << 108 inline void G4VisManager::SetUserActionExtent (const G4VisExtent& extent) { 150 return fDefaultXGeometryStringBasis; << 109 fUserVisActionExtent = extent; 151 } 110 } 152 111 153 inline G4SceneList& G4VisManager::SetSceneList 112 inline G4SceneList& G4VisManager::SetSceneList () { 154 return fSceneList; 113 return fSceneList; 155 } 114 } 156 115 157 inline G4SceneHandlerList& G4VisManager::SetAv 116 inline G4SceneHandlerList& G4VisManager::SetAvailableSceneHandlers () { 158 return fAvailableSceneHandlers; 117 return fAvailableSceneHandlers; 159 } 118 } 160 119 161 inline void G4VisManager::SetVerboseLevel (G4V 120 inline void G4VisManager::SetVerboseLevel (G4VisManager::Verbosity verbosity) { 162 fVerbosity = verbosity; 121 fVerbosity = verbosity; 163 } 122 } 164 123 165 inline void G4VisManager::SetEventRefreshing ( << 124 inline void G4VisManager::SetWindowSizeHint (G4int xHint, G4int yHint) { 166 fEventRefreshing = eventRefreshing; << 125 fWindowSizeHintX = xHint; fWindowSizeHintY = yHint; 167 } 126 } 168 127 169 inline void G4VisManager::RegisterMessenger(G4 << 128 inline void G4VisManager::SetXGeometryString (const G4String& geomString) { 170 { << 129 fXGeometryString = geomString; 171 fMessengerList.push_back(msgr); << 172 } << 173 << 174 inline void G4VisManager::SetTransientsDrawnTh << 175 fTransientsDrawnThisRun = b; << 176 } << 177 << 178 inline void G4VisManager::SetTransientsDrawnTh << 179 fTransientsDrawnThisEvent = b; << 180 } << 181 << 182 inline void G4VisManager::SetDrawEventOnlyIfTo << 183 fDrawEventOnlyIfToBeKept = b; << 184 } << 185 << 186 inline void G4VisManager::SetRequestedEvent (c << 187 fpRequestedEvent = event; << 188 } << 189 << 190 inline void G4VisManager::SetReviewingKeptEven << 191 fReviewingKeptEvents = reveiwing; << 192 } << 193 << 194 inline void G4VisManager::SetAbortReviewKeptEv << 195 fAbortReviewKeptEvents = abort; << 196 } 130 } 197 131 198 inline void G4VisManager::SetReviewingPlots (G << 132 inline void G4VisManager::SetReprocessing (G4bool reprocessing) { 199 fReviewingPlots = reveiwing; << 133 fReprocessing = reprocessing; 200 } 134 } 201 135 202 inline void G4VisManager::SetAbortReviewPlots << 136 inline void G4VisManager::SetReprocessingLastEvent (G4bool reprocessing) { 203 fAbortReviewPlots = abort; << 137 fReprocessingLastEvent = reprocessing; 204 } 138 } 205 139 206 inline void G4VisManager::SetDefaultViewParame << 140 inline void G4VisManager::RegisterMessenger(G4UImessenger* msgr) 207 (const G4ViewParameters& vp) { << 141 { 208 fDefaultViewParameters = vp; << 142 fMessengerList.push_back(msgr); 209 } << 210 << 211 inline void G4VisManager::SetMaxEventQueueSize << 212 fMaxEventQueueSize = size; << 213 } << 214 << 215 inline void G4VisManager::SetWaitOnEventQueueF << 216 fWaitOnEventQueueFull = wait; << 217 } << 218 << 219 inline void G4VisManager::SetDefaultGraphicsSy << 220 fDefaultGraphicsSystemName = name; << 221 } << 222 << 223 inline void G4VisManager::SetDefaultXGeometryS << 224 fDefaultXGeometryString = string; << 225 } << 226 << 227 inline void G4VisManager::SetDefaultGraphicsSy << 228 fDefaultGraphicsSystemBasis = basis; << 229 } 143 } 230 144 231 inline void G4VisManager::SetDefaultXGeometryS << 232 fDefaultXGeometryStringBasis = basis; << 233 } << 234 145