Geant4  10.00.p03
G4VSceneHandler.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: G4VSceneHandler.icc 66373 2012-12-18 09:41:34Z gcosmo $
28 //
29 //
30 // John Allison 19th July 1996.
31 
32 inline G4VGraphicsSystem* G4VSceneHandler::GetGraphicsSystem () const {
33  return &fSystem;
34 }
35 
36 inline G4int G4VSceneHandler::GetSceneHandlerId () const {
37  return fSceneHandlerId;
38 }
39 
40 inline G4int G4VSceneHandler::GetViewCount () const {
41  return fViewCount;
42 }
43 
44 inline
45 G4double G4VSceneHandler::GetMarkerDiameter
46 (const G4VMarker& marker, G4VSceneHandler::MarkerSizeType& sizeType) {
47  return GetMarkerSize (marker, sizeType);
48 }
49 
50 inline
51 G4double G4VSceneHandler::GetMarkerRadius
52 (const G4VMarker& marker, G4VSceneHandler::MarkerSizeType& sizeType) {
53  return GetMarkerSize (marker, sizeType) / 2.;
54 }
55 
56 inline G4int G4VSceneHandler::IncrementViewCount () {
57  return fViewCount++;
58 }
59 
60 inline const G4String& G4VSceneHandler::GetName () const {
61  return fName;
62 }
63 
64 inline void G4VSceneHandler::SetName (const G4String& name) {
65  fName = name;
66 }
67 
68 inline G4Scene* G4VSceneHandler::GetScene () const {
69  return fpScene;
70 }
71 
72 inline const G4ViewerList& G4VSceneHandler::GetViewerList () const {
73  return fViewerList;
74 }
75 
76 inline G4VModel* G4VSceneHandler::GetModel () const {
77  return fpModel;
78 }
79 
80 inline G4VViewer* G4VSceneHandler::GetCurrentViewer () const {
81  return fpViewer;
82 }
83 
84 inline G4bool G4VSceneHandler::GetMarkForClearingTransientStore () const {
85  return fMarkForClearingTransientStore;
86 }
87 
88 inline G4bool G4VSceneHandler::IsReadyForTransients () const {
89  return fReadyForTransients;
90 }
91 
92 inline G4bool G4VSceneHandler::GetTransientsDrawnThisEvent () const {
93  return fTransientsDrawnThisEvent;
94 }
95 
96 inline G4bool G4VSceneHandler::GetTransientsDrawnThisRun () const {
97  return fTransientsDrawnThisRun;
98 }
99 
100 inline const G4Transform3D& G4VSceneHandler::GetObjectTransformation () const {
101  return fObjectTransformation;
102 }
103 
104 inline void G4VSceneHandler::SetCurrentViewer (G4VViewer* pViewer) {
105  fpViewer = pViewer;
106 }
107 
108 inline G4ViewerList& G4VSceneHandler::SetViewerList () {
109  return fViewerList;
110 }
111 
112 inline void
113 G4VSceneHandler::SetModel (G4VModel* pModel) {
114  fpModel = pModel;
115 }
116 
117 inline void G4VSceneHandler::SetMarkForClearingTransientStore (G4bool mark) {
118  fMarkForClearingTransientStore = mark;
119 }
120 
121 inline void G4VSceneHandler::SetTransientsDrawnThisEvent (G4bool drawn) {
122  fTransientsDrawnThisEvent = drawn;
123 }
124 
125 inline void G4VSceneHandler::SetTransientsDrawnThisRun (G4bool drawn) {
126  fTransientsDrawnThisRun = drawn;
127 }
128 
129 inline void G4VSceneHandler::SetObjectTransformation (const G4Transform3D& t) {
130  fObjectTransformation = t;
131 }
132 
133 
134 inline const G4Colour& G4VSceneHandler::GetColor (const G4Visible& visible) {
135  return GetColour (visible);
136 }
137 
138 inline const G4Colour& G4VSceneHandler::GetTextColor (const G4Text& text) {
139  return GetTextColour (text);
140 }