Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:24

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 //
0028 // 
0029 // GEANT4 Visualization Manager - John Allison 02/Jan/1996.
0030 
0031 inline void G4VisManager::Initialize () {
0032   Initialise ();
0033 }
0034 
0035 inline G4bool G4VisManager::IsEnabled () const{
0036   return GetConcreteInstance();
0037 }
0038 
0039 inline const std::vector<G4VisManager::UserVisAction>&
0040 G4VisManager::GetRunDurationUserVisActions () const {
0041   return fRunDurationUserVisActions;
0042 }
0043 
0044 inline const std::vector<G4VisManager::UserVisAction>&
0045 G4VisManager::GetEndOfEventUserVisActions () const {
0046   return fEndOfEventUserVisActions;
0047 }
0048 
0049 inline const std::vector<G4VisManager::UserVisAction>&
0050 G4VisManager::GetEndOfRunUserVisActions () const {
0051   return fEndOfRunUserVisActions;
0052 }
0053 
0054 inline const std::map<G4VUserVisAction*,G4VisExtent>&
0055 G4VisManager::GetUserVisActionExtents () const {
0056   return fUserVisActionExtents;
0057 }
0058 
0059 inline G4VSceneHandler* G4VisManager::GetCurrentSceneHandler () const {
0060   return fpSceneHandler;
0061 }
0062 
0063 inline G4VViewer* G4VisManager::GetCurrentViewer () const {
0064   return fpViewer;
0065 }
0066 
0067 inline G4Scene* G4VisManager::GetCurrentScene () const {
0068   return fpScene;
0069 }
0070 
0071 inline const G4SceneHandlerList&
0072 G4VisManager::GetAvailableSceneHandlers () const {
0073   return fAvailableSceneHandlers;
0074 }
0075 
0076 inline const G4SceneList& G4VisManager::GetSceneList () const {
0077   return fSceneList;
0078 }
0079 
0080 inline G4VGraphicsSystem*
0081 G4VisManager::GetCurrentGraphicsSystem () const {
0082   return fpGraphicsSystem;
0083 }
0084 
0085 inline G4bool G4VisManager::GetTransientsDrawnThisEvent() const {
0086   return fTransientsDrawnThisEvent;
0087 }
0088 
0089 inline G4bool G4VisManager::GetTransientsDrawnThisRun() const {
0090   return fTransientsDrawnThisRun;
0091 }
0092 
0093 inline G4bool G4VisManager::GetDrawEventOnlyIfToBeKept() const {
0094   return fDrawEventOnlyIfToBeKept;
0095 }
0096 
0097 inline const G4Event* G4VisManager::GetRequestedEvent() const {
0098   return fpRequestedEvent;
0099 }
0100 
0101 inline G4int G4VisManager::GetNKeepRequests () const {
0102   return fNKeepRequests;
0103 }
0104 
0105 inline G4bool G4VisManager::GetReviewingKeptEvents() const {
0106   return fReviewingKeptEvents;
0107 }
0108 
0109 inline G4bool G4VisManager::GetAbortReviewKeptEvents() const {
0110   return fAbortReviewKeptEvents;
0111 }
0112 
0113 inline G4bool G4VisManager::GetReviewingPlots() const {
0114   return fReviewingPlots;
0115 }
0116 
0117 inline G4bool G4VisManager::GetAbortReviewPlots() const {
0118   return fAbortReviewPlots;
0119 }
0120 
0121 inline const G4ViewParameters& G4VisManager::GetDefaultViewParameters() const {
0122   return fDefaultViewParameters;
0123 }
0124 
0125 #ifdef G4MULTITHREADED
0126 
0127 inline G4int G4VisManager::GetMaxEventQueueSize() const {
0128   return fMaxEventQueueSize;
0129 }
0130 
0131 inline G4bool G4VisManager::GetWaitOnEventQueueFull () const {
0132   return fWaitOnEventQueueFull;
0133 }
0134 
0135 #endif
0136 
0137 inline const G4String& G4VisManager::GetDefaultGraphicsSystemName () const {
0138   return fDefaultGraphicsSystemName;
0139 }
0140 
0141 inline const G4String& G4VisManager::GetDefaultXGeometryString () const {
0142   return fDefaultXGeometryString;
0143 }
0144 
0145 inline const G4String& G4VisManager::GetDefaultGraphicsSystemBasis () const {
0146   return fDefaultGraphicsSystemBasis;
0147 }
0148 
0149 inline const G4String& G4VisManager::GetDefaultXGeometryStringBasis () const {
0150   return fDefaultXGeometryStringBasis;
0151 }
0152 
0153 inline G4SceneList& G4VisManager::SetSceneList () {
0154   return fSceneList;
0155 }
0156 
0157 inline G4SceneHandlerList& G4VisManager::SetAvailableSceneHandlers () {
0158   return fAvailableSceneHandlers;
0159 }
0160 
0161 inline void G4VisManager::SetVerboseLevel (G4VisManager::Verbosity verbosity) {
0162   fVerbosity = verbosity;
0163 }
0164 
0165 inline void G4VisManager::SetEventRefreshing (G4bool eventRefreshing) {
0166   fEventRefreshing = eventRefreshing;
0167 }
0168 
0169 inline void G4VisManager::RegisterMessenger(G4UImessenger* msgr)
0170 {
0171   fMessengerList.push_back(msgr);
0172 }
0173 
0174 inline void G4VisManager::SetTransientsDrawnThisRun (G4bool b) {
0175   fTransientsDrawnThisRun = b;
0176 }
0177 
0178 inline void G4VisManager::SetTransientsDrawnThisEvent (G4bool b) {
0179   fTransientsDrawnThisEvent = b;
0180 }
0181 
0182 inline void G4VisManager::SetDrawEventOnlyIfToBeKept (G4bool b) {
0183   fDrawEventOnlyIfToBeKept = b;
0184 }
0185 
0186 inline void G4VisManager::SetRequestedEvent (const G4Event* event) {
0187   fpRequestedEvent = event;
0188 }
0189 
0190 inline void G4VisManager::SetReviewingKeptEvents (G4bool reveiwing) {
0191   fReviewingKeptEvents = reveiwing;
0192 }
0193 
0194 inline void G4VisManager::SetAbortReviewKeptEvents (G4bool abort) {
0195   fAbortReviewKeptEvents = abort;
0196 }
0197 
0198 inline void G4VisManager::SetReviewingPlots (G4bool reveiwing) {
0199   fReviewingPlots = reveiwing;
0200 }
0201 
0202 inline void G4VisManager::SetAbortReviewPlots (G4bool abort) {
0203   fAbortReviewPlots = abort;
0204 }
0205 
0206 inline void G4VisManager::SetDefaultViewParameters
0207 (const G4ViewParameters& vp) {
0208   fDefaultViewParameters = vp;
0209 }
0210 
0211 #ifdef G4MULTITHREADED
0212 
0213 inline void G4VisManager::SetMaxEventQueueSize (G4int size) {
0214   fMaxEventQueueSize = size;
0215 }
0216 
0217 inline void G4VisManager::SetWaitOnEventQueueFull (G4bool wait) {
0218   fWaitOnEventQueueFull = wait;
0219 }
0220 
0221 #endif
0222 
0223 inline void G4VisManager::SetDefaultGraphicsSystemName (const G4String& name) {
0224   fDefaultGraphicsSystemName = name;
0225 }
0226 
0227 inline void G4VisManager::SetDefaultXGeometryString (const G4String& string) {
0228   fDefaultXGeometryString = string;
0229 }
0230 
0231 inline void G4VisManager::SetDefaultGraphicsSystemBasis (const G4String& basis) {
0232   fDefaultGraphicsSystemBasis = basis;
0233 }
0234 
0235 inline void G4VisManager::SetDefaultXGeometryStringBasis (const G4String& basis) {
0236   fDefaultXGeometryStringBasis = basis;
0237 }