Geant4-11
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//
28//
29// GEANT4 Visualization Manager - John Allison 02/Jan/1996.
30
31inline void G4VisManager::Initialize () {
32 Initialise ();
33}
34
35inline const std::vector<G4VisManager::UserVisAction>&
36G4VisManager::GetRunDurationUserVisActions () const {
37 return fRunDurationUserVisActions;
38}
39
40inline const std::vector<G4VisManager::UserVisAction>&
41G4VisManager::GetEndOfEventUserVisActions () const {
42 return fEndOfEventUserVisActions;
43}
44
45inline const std::vector<G4VisManager::UserVisAction>&
46G4VisManager::GetEndOfRunUserVisActions () const {
47 return fEndOfRunUserVisActions;
48}
49
50inline const std::map<G4VUserVisAction*,G4VisExtent>&
51G4VisManager::GetUserVisActionExtents () const {
52 return fUserVisActionExtents;
53}
54
55inline G4VSceneHandler* G4VisManager::GetCurrentSceneHandler () const {
56 return fpSceneHandler;
57}
58
59inline G4VViewer* G4VisManager::GetCurrentViewer () const {
60 return fpViewer;
61}
62
63inline G4Scene* G4VisManager::GetCurrentScene () const {
64 return fpScene;
65}
66
67inline const G4SceneHandlerList&
68G4VisManager::GetAvailableSceneHandlers () const {
69 return fAvailableSceneHandlers;
70}
71
72inline const G4SceneList& G4VisManager::GetSceneList () const {
73 return fSceneList;
74}
75
76inline G4VGraphicsSystem*
77G4VisManager::GetCurrentGraphicsSystem () const {
78 return fpGraphicsSystem;
79}
80
81inline G4bool G4VisManager::GetTransientsDrawnThisEvent() const {
82 return fTransientsDrawnThisEvent;
83}
84
85inline G4bool G4VisManager::GetTransientsDrawnThisRun() const {
86 return fTransientsDrawnThisRun;
87}
88
89inline G4bool G4VisManager::GetDrawEventOnlyIfToBeKept() const {
90 return fDrawEventOnlyIfToBeKept;
91}
92
93inline const G4Event* G4VisManager::GetRequestedEvent() const {
94 return fpRequestedEvent;
95}
96
97inline G4int G4VisManager::GetNKeepRequests () const {
98 return fNKeepRequests;
99}
100
101inline G4bool G4VisManager::GetReviewingKeptEvents() const {
102 return fReviewingKeptEvents;
103}
104
105inline G4bool G4VisManager::GetAbortReviewKeptEvents() const {
106 return fAbortReviewKeptEvents;
107}
108
109inline const G4ViewParameters& G4VisManager::GetDefaultViewParameters() const {
110 return fDefaultViewParameters;
111}
112
113#ifdef G4MULTITHREADED
114
115inline G4int G4VisManager::GetMaxEventQueueSize() const {
116 return fMaxEventQueueSize;
117}
118
119inline G4bool G4VisManager::GetWaitOnEventQueueFull () const {
120 return fWaitOnEventQueueFull;
121}
122
123#endif
124
125inline G4SceneList& G4VisManager::SetSceneList () {
126 return fSceneList;
127}
128
129inline G4SceneHandlerList& G4VisManager::SetAvailableSceneHandlers () {
130 return fAvailableSceneHandlers;
131}
132
133inline void G4VisManager::SetVerboseLevel (G4VisManager::Verbosity verbosity) {
134 fVerbosity = verbosity;
135}
136
137inline void G4VisManager::SetEventRefreshing (G4bool eventRefreshing) {
138 fEventRefreshing = eventRefreshing;
139}
140
141inline void G4VisManager::RegisterMessenger(G4UImessenger* msgr)
142{
143 fMessengerList.push_back(msgr);
144}
145
146inline void G4VisManager::SetTransientsDrawnThisRun (G4bool b) {
147 fTransientsDrawnThisRun = b;
148}
149
150inline void G4VisManager::SetTransientsDrawnThisEvent (G4bool b) {
151 fTransientsDrawnThisEvent = b;
152}
153
154inline void G4VisManager::SetDrawEventOnlyIfToBeKept (G4bool b) {
155 fDrawEventOnlyIfToBeKept = b;
156}
157
158inline void G4VisManager::SetRequestedEvent (const G4Event* event) {
159 fpRequestedEvent = event;
160}
161
162inline void G4VisManager::SetReviewingKeptEvents (G4bool reveiwing) {
163 fReviewingKeptEvents = reveiwing;
164}
165inline void G4VisManager::SetAbortReviewKeptEvents (G4bool abort) {
166 fAbortReviewKeptEvents = abort;
167}
168
169inline void G4VisManager::SetDefaultViewParameters
170(const G4ViewParameters& vp) {
171 fDefaultViewParameters = vp;
172}
173
174#ifdef G4MULTITHREADED
175
176inline void G4VisManager::SetMaxEventQueueSize (G4int size) {
177 fMaxEventQueueSize = size;
178}
179
180inline void G4VisManager::SetWaitOnEventQueueFull (G4bool wait) {
181 fWaitOnEventQueueFull = wait;
182}
183
184#endif