Geant4  10.02.p02
G4VisManager.icc
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 // $Id: G4VisManager.icc 93026 2015-09-30 16:07:07Z gcosmo $
28 //
29 //
30 // GEANT4 Visualization Manager - John Allison 02/Jan/1996.
31 
32 inline void G4VisManager::Initialize () {
33  Initialise ();
34 }
35 
36 inline const std::vector<G4VisManager::UserVisAction>&
37 G4VisManager::GetRunDurationUserVisActions () const {
38  return fRunDurationUserVisActions;
39 }
40 
41 inline const std::vector<G4VisManager::UserVisAction>&
42 G4VisManager::GetEndOfEventUserVisActions () const {
43  return fEndOfEventUserVisActions;
44 }
45 
46 inline const std::vector<G4VisManager::UserVisAction>&
47 G4VisManager::GetEndOfRunUserVisActions () const {
48  return fEndOfRunUserVisActions;
49 }
50 
51 inline const std::map<G4VUserVisAction*,G4VisExtent>&
52 G4VisManager::GetUserVisActionExtents () const {
53  return fUserVisActionExtents;
54 }
55 
56 inline G4VSceneHandler* G4VisManager::GetCurrentSceneHandler () const {
57  return fpSceneHandler;
58 }
59 
60 inline G4VViewer* G4VisManager::GetCurrentViewer () const {
61  return fpViewer;
62 }
63 
64 inline G4Scene* G4VisManager::GetCurrentScene () const {
65  return fpScene;
66 }
67 
68 inline const G4SceneHandlerList&
69 G4VisManager::GetAvailableSceneHandlers () const {
70  return fAvailableSceneHandlers;
71 }
72 
73 inline const G4SceneList& G4VisManager::GetSceneList () const {
74  return fSceneList;
75 }
76 
77 inline G4VGraphicsSystem*
78 G4VisManager::GetCurrentGraphicsSystem () const {
79  return fpGraphicsSystem;
80 }
81 
82 inline G4bool G4VisManager::GetTransientsDrawnThisEvent() const {
83  return fTransientsDrawnThisEvent;
84 }
85 
86 inline G4bool G4VisManager::GetTransientsDrawnThisRun() const {
87  return fTransientsDrawnThisRun;
88 }
89 
90 inline const G4Event* G4VisManager::GetRequestedEvent() const {
91  return fpRequestedEvent;
92 }
93 
94 inline G4bool G4VisManager::GetAbortReviewKeptEvents() const {
95  return fAbortReviewKeptEvents;
96 }
97 
98 inline const G4ViewParameters& G4VisManager::GetDefaultViewParameters() const {
99  return fDefaultViewParameters;
100 }
101 
102 #ifdef G4MULTITHREADED
103 
104 inline G4int G4VisManager::GetMaxEventQueueSize() const {
105  return fMaxEventQueueSize;
106 }
107 
108 inline G4bool G4VisManager::GetWaitOnEventQueueFull () const {
109  return fWaitOnEventQueueFull;
110 }
111 
112 #endif
113 
114 inline void G4VisManager::SetUserAction
115 (G4VUserVisAction* pVisAction,
116  const G4VisExtent& extent) {
117  RegisterRunDurationUserVisAction("SetUserAction",pVisAction,extent);
118 }
119 
120 inline G4SceneList& G4VisManager::SetSceneList () {
121  return fSceneList;
122 }
123 
124 inline G4SceneHandlerList& G4VisManager::SetAvailableSceneHandlers () {
125  return fAvailableSceneHandlers;
126 }
127 
128 inline void G4VisManager::SetVerboseLevel (G4VisManager::Verbosity verbosity) {
129  fVerbosity = verbosity;
130 }
131 
132 inline void G4VisManager::SetEventRefreshing (G4bool eventRefreshing) {
133  fEventRefreshing = eventRefreshing;
134 }
135 
136 inline void G4VisManager::RegisterMessenger(G4UImessenger* msgr)
137 {
138  fMessengerList.push_back(msgr);
139 }
140 
141 inline void G4VisManager::SetTransientsDrawnThisRun (G4bool b) {
142  fTransientsDrawnThisRun = b;
143 }
144 
145 inline void G4VisManager::SetTransientsDrawnThisEvent (G4bool b) {
146  fTransientsDrawnThisEvent = b;
147 }
148 
149 inline void G4VisManager::SetRequestedEvent (const G4Event* event) {
150  fpRequestedEvent = event;
151 }
152 
153 inline void G4VisManager::SetAbortReviewKeptEvents (G4bool abort) {
154  fAbortReviewKeptEvents = abort;
155 }
156 
157 inline void G4VisManager::SetDefaultViewParameters
158 (const G4ViewParameters& vp) {
159  fDefaultViewParameters = vp;
160 }
161 
162 #ifdef G4MULTITHREADED
163 
164 inline void G4VisManager::SetMaxEventQueueSize (G4int size) {
165  fMaxEventQueueSize = size;
166 }
167 
168 inline void G4VisManager::SetWaitOnEventQueueFull (G4bool wait) {
169  fWaitOnEventQueueFull = wait;
170 }
171 
172 #endif