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 // 27 // 28 // 28 // 29 // GEANT4 Visualization Manager - John Allison 29 // GEANT4 Visualization Manager - John Allison 02/Jan/1996. 30 30 31 inline void G4VisManager::Initialize () { 31 inline void G4VisManager::Initialize () { 32 Initialise (); 32 Initialise (); 33 } 33 } 34 34 35 inline G4bool G4VisManager::IsEnabled () const << 36 return GetConcreteInstance(); << 37 } << 38 << 39 inline const std::vector<G4VisManager::UserVis 35 inline const std::vector<G4VisManager::UserVisAction>& 40 G4VisManager::GetRunDurationUserVisActions () 36 G4VisManager::GetRunDurationUserVisActions () const { 41 return fRunDurationUserVisActions; 37 return fRunDurationUserVisActions; 42 } 38 } 43 39 44 inline const std::vector<G4VisManager::UserVis 40 inline const std::vector<G4VisManager::UserVisAction>& 45 G4VisManager::GetEndOfEventUserVisActions () c 41 G4VisManager::GetEndOfEventUserVisActions () const { 46 return fEndOfEventUserVisActions; 42 return fEndOfEventUserVisActions; 47 } 43 } 48 44 49 inline const std::vector<G4VisManager::UserVis 45 inline const std::vector<G4VisManager::UserVisAction>& 50 G4VisManager::GetEndOfRunUserVisActions () con 46 G4VisManager::GetEndOfRunUserVisActions () const { 51 return fEndOfRunUserVisActions; 47 return fEndOfRunUserVisActions; 52 } 48 } 53 49 54 inline const std::map<G4VUserVisAction*,G4VisE 50 inline const std::map<G4VUserVisAction*,G4VisExtent>& 55 G4VisManager::GetUserVisActionExtents () const 51 G4VisManager::GetUserVisActionExtents () const { 56 return fUserVisActionExtents; 52 return fUserVisActionExtents; 57 } 53 } 58 54 59 inline G4VSceneHandler* G4VisManager::GetCurre 55 inline G4VSceneHandler* G4VisManager::GetCurrentSceneHandler () const { 60 return fpSceneHandler; 56 return fpSceneHandler; 61 } 57 } 62 58 63 inline G4VViewer* G4VisManager::GetCurrentView 59 inline G4VViewer* G4VisManager::GetCurrentViewer () const { 64 return fpViewer; 60 return fpViewer; 65 } 61 } 66 62 67 inline G4Scene* G4VisManager::GetCurrentScene 63 inline G4Scene* G4VisManager::GetCurrentScene () const { 68 return fpScene; 64 return fpScene; 69 } 65 } 70 66 71 inline const G4SceneHandlerList& 67 inline const G4SceneHandlerList& 72 G4VisManager::GetAvailableSceneHandlers () con 68 G4VisManager::GetAvailableSceneHandlers () const { 73 return fAvailableSceneHandlers; 69 return fAvailableSceneHandlers; 74 } 70 } 75 71 76 inline const G4SceneList& G4VisManager::GetSce 72 inline const G4SceneList& G4VisManager::GetSceneList () const { 77 return fSceneList; 73 return fSceneList; 78 } 74 } 79 75 80 inline G4VGraphicsSystem* 76 inline G4VGraphicsSystem* 81 G4VisManager::GetCurrentGraphicsSystem () cons 77 G4VisManager::GetCurrentGraphicsSystem () const { 82 return fpGraphicsSystem; 78 return fpGraphicsSystem; 83 } 79 } 84 80 85 inline G4bool G4VisManager::GetTransientsDrawn 81 inline G4bool G4VisManager::GetTransientsDrawnThisEvent() const { 86 return fTransientsDrawnThisEvent; 82 return fTransientsDrawnThisEvent; 87 } 83 } 88 84 89 inline G4bool G4VisManager::GetTransientsDrawn 85 inline G4bool G4VisManager::GetTransientsDrawnThisRun() const { 90 return fTransientsDrawnThisRun; 86 return fTransientsDrawnThisRun; 91 } 87 } 92 88 93 inline G4bool G4VisManager::GetDrawEventOnlyIf 89 inline G4bool G4VisManager::GetDrawEventOnlyIfToBeKept() const { 94 return fDrawEventOnlyIfToBeKept; 90 return fDrawEventOnlyIfToBeKept; 95 } 91 } 96 92 97 inline const G4Event* G4VisManager::GetRequest 93 inline const G4Event* G4VisManager::GetRequestedEvent() const { 98 return fpRequestedEvent; 94 return fpRequestedEvent; 99 } 95 } 100 96 101 inline G4int G4VisManager::GetNKeepForPostProc << 97 inline G4int G4VisManager::GetNKeepRequests () const { 102 return fNKeepForPostProcessingRequests; << 98 return fNKeepRequests; 103 } << 104 << 105 inline G4int G4VisManager::GetNKeepTheEventReq << 106 return fNKeepTheEventRequests; << 107 } 99 } 108 100 109 inline G4bool G4VisManager::GetReviewingKeptEv 101 inline G4bool G4VisManager::GetReviewingKeptEvents() const { 110 return fReviewingKeptEvents; 102 return fReviewingKeptEvents; 111 } 103 } 112 104 113 inline G4bool G4VisManager::GetAbortReviewKept 105 inline G4bool G4VisManager::GetAbortReviewKeptEvents() const { 114 return fAbortReviewKeptEvents; 106 return fAbortReviewKeptEvents; 115 } 107 } 116 108 117 inline G4bool G4VisManager::GetReviewingPlots( << 118 return fReviewingPlots; << 119 } << 120 << 121 inline G4bool G4VisManager::GetAbortReviewPlot << 122 return fAbortReviewPlots; << 123 } << 124 << 125 inline const G4ViewParameters& G4VisManager::G 109 inline const G4ViewParameters& G4VisManager::GetDefaultViewParameters() const { 126 return fDefaultViewParameters; 110 return fDefaultViewParameters; 127 } 111 } 128 112 >> 113 #ifdef G4MULTITHREADED >> 114 129 inline G4int G4VisManager::GetMaxEventQueueSiz 115 inline G4int G4VisManager::GetMaxEventQueueSize() const { 130 return fMaxEventQueueSize; 116 return fMaxEventQueueSize; 131 } 117 } 132 118 133 inline G4bool G4VisManager::GetWaitOnEventQueu 119 inline G4bool G4VisManager::GetWaitOnEventQueueFull () const { 134 return fWaitOnEventQueueFull; 120 return fWaitOnEventQueueFull; 135 } 121 } 136 122 137 inline const G4String& G4VisManager::GetDefaul << 123 #endif 138 return fDefaultGraphicsSystemName; << 139 } << 140 << 141 inline const G4String& G4VisManager::GetDefaul << 142 return fDefaultXGeometryString; << 143 } << 144 << 145 inline const G4String& G4VisManager::GetDefaul << 146 return fDefaultGraphicsSystemBasis; << 147 } << 148 << 149 inline const G4String& G4VisManager::GetDefaul << 150 return fDefaultXGeometryStringBasis; << 151 } << 152 124 153 inline G4SceneList& G4VisManager::SetSceneList 125 inline G4SceneList& G4VisManager::SetSceneList () { 154 return fSceneList; 126 return fSceneList; 155 } 127 } 156 128 157 inline G4SceneHandlerList& G4VisManager::SetAv 129 inline G4SceneHandlerList& G4VisManager::SetAvailableSceneHandlers () { 158 return fAvailableSceneHandlers; 130 return fAvailableSceneHandlers; 159 } 131 } 160 132 161 inline void G4VisManager::SetVerboseLevel (G4V 133 inline void G4VisManager::SetVerboseLevel (G4VisManager::Verbosity verbosity) { 162 fVerbosity = verbosity; 134 fVerbosity = verbosity; 163 } 135 } 164 136 165 inline void G4VisManager::SetEventRefreshing ( 137 inline void G4VisManager::SetEventRefreshing (G4bool eventRefreshing) { 166 fEventRefreshing = eventRefreshing; 138 fEventRefreshing = eventRefreshing; 167 } 139 } 168 140 169 inline void G4VisManager::RegisterMessenger(G4 141 inline void G4VisManager::RegisterMessenger(G4UImessenger* msgr) 170 { 142 { 171 fMessengerList.push_back(msgr); 143 fMessengerList.push_back(msgr); 172 } 144 } 173 145 174 inline void G4VisManager::SetTransientsDrawnTh 146 inline void G4VisManager::SetTransientsDrawnThisRun (G4bool b) { 175 fTransientsDrawnThisRun = b; 147 fTransientsDrawnThisRun = b; 176 } 148 } 177 149 178 inline void G4VisManager::SetTransientsDrawnTh 150 inline void G4VisManager::SetTransientsDrawnThisEvent (G4bool b) { 179 fTransientsDrawnThisEvent = b; 151 fTransientsDrawnThisEvent = b; 180 } 152 } 181 153 182 inline void G4VisManager::SetDrawEventOnlyIfTo 154 inline void G4VisManager::SetDrawEventOnlyIfToBeKept (G4bool b) { 183 fDrawEventOnlyIfToBeKept = b; 155 fDrawEventOnlyIfToBeKept = b; 184 } 156 } 185 157 186 inline void G4VisManager::SetRequestedEvent (c 158 inline void G4VisManager::SetRequestedEvent (const G4Event* event) { 187 fpRequestedEvent = event; 159 fpRequestedEvent = event; 188 } 160 } 189 161 190 inline void G4VisManager::SetReviewingKeptEven 162 inline void G4VisManager::SetReviewingKeptEvents (G4bool reveiwing) { 191 fReviewingKeptEvents = reveiwing; 163 fReviewingKeptEvents = reveiwing; 192 } 164 } 193 << 194 inline void G4VisManager::SetAbortReviewKeptEv 165 inline void G4VisManager::SetAbortReviewKeptEvents (G4bool abort) { 195 fAbortReviewKeptEvents = abort; 166 fAbortReviewKeptEvents = abort; 196 } 167 } 197 168 198 inline void G4VisManager::SetReviewingPlots (G << 199 fReviewingPlots = reveiwing; << 200 } << 201 << 202 inline void G4VisManager::SetAbortReviewPlots << 203 fAbortReviewPlots = abort; << 204 } << 205 << 206 inline void G4VisManager::SetDefaultViewParame 169 inline void G4VisManager::SetDefaultViewParameters 207 (const G4ViewParameters& vp) { 170 (const G4ViewParameters& vp) { 208 fDefaultViewParameters = vp; 171 fDefaultViewParameters = vp; 209 } 172 } 210 173 >> 174 #ifdef G4MULTITHREADED >> 175 211 inline void G4VisManager::SetMaxEventQueueSize 176 inline void G4VisManager::SetMaxEventQueueSize (G4int size) { 212 fMaxEventQueueSize = size; 177 fMaxEventQueueSize = size; 213 } 178 } 214 179 215 inline void G4VisManager::SetWaitOnEventQueueF 180 inline void G4VisManager::SetWaitOnEventQueueFull (G4bool wait) { 216 fWaitOnEventQueueFull = wait; 181 fWaitOnEventQueueFull = wait; 217 } 182 } 218 183 219 inline void G4VisManager::SetDefaultGraphicsSy << 184 #endif 220 fDefaultGraphicsSystemName = name; << 221 } << 222 << 223 inline void G4VisManager::SetDefaultXGeometryS << 224 fDefaultXGeometryString = string; << 225 } << 226 << 227 inline void G4VisManager::SetDefaultGraphicsSy << 228 fDefaultGraphicsSystemBasis = basis; << 229 } << 230 << 231 inline void G4VisManager::SetDefaultXGeometryS << 232 fDefaultXGeometryStringBasis = basis; << 233 } << 234 185