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10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /visualization/management/include/G4VisManager.icc (Version 11.3.0) and /visualization/management/include/G4VisManager.icc (Version 11.1.3)


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