2 // ********************************************************************
3 // * License and Disclaimer *
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. *
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. *
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 // ********************************************************************
27 // $Id: G4VSceneHandler.icc 66373 2012-12-18 09:41:34Z gcosmo $
30 // John Allison 19th July 1996.
32 inline G4VGraphicsSystem* G4VSceneHandler::GetGraphicsSystem () const {
36 inline G4int G4VSceneHandler::GetSceneHandlerId () const {
37 return fSceneHandlerId;
40 inline G4int G4VSceneHandler::GetViewCount () const {
45 G4double G4VSceneHandler::GetMarkerDiameter
46 (const G4VMarker& marker, G4VSceneHandler::MarkerSizeType& sizeType) {
47 return GetMarkerSize (marker, sizeType);
51 G4double G4VSceneHandler::GetMarkerRadius
52 (const G4VMarker& marker, G4VSceneHandler::MarkerSizeType& sizeType) {
53 return GetMarkerSize (marker, sizeType) / 2.;
56 inline G4int G4VSceneHandler::IncrementViewCount () {
60 inline const G4String& G4VSceneHandler::GetName () const {
64 inline void G4VSceneHandler::SetName (const G4String& name) {
68 inline G4Scene* G4VSceneHandler::GetScene () const {
72 inline const G4ViewerList& G4VSceneHandler::GetViewerList () const {
76 inline G4VModel* G4VSceneHandler::GetModel () const {
80 inline G4VViewer* G4VSceneHandler::GetCurrentViewer () const {
84 inline G4bool G4VSceneHandler::GetMarkForClearingTransientStore () const {
85 return fMarkForClearingTransientStore;
88 inline G4bool G4VSceneHandler::IsReadyForTransients () const {
89 return fReadyForTransients;
92 inline G4bool G4VSceneHandler::GetTransientsDrawnThisEvent () const {
93 return fTransientsDrawnThisEvent;
96 inline G4bool G4VSceneHandler::GetTransientsDrawnThisRun () const {
97 return fTransientsDrawnThisRun;
100 inline const G4Transform3D& G4VSceneHandler::GetObjectTransformation () const {
101 return fObjectTransformation;
104 inline void G4VSceneHandler::SetCurrentViewer (G4VViewer* pViewer) {
108 inline G4ViewerList& G4VSceneHandler::SetViewerList () {
113 G4VSceneHandler::SetModel (G4VModel* pModel) {
117 inline void G4VSceneHandler::SetMarkForClearingTransientStore (G4bool mark) {
118 fMarkForClearingTransientStore = mark;
121 inline void G4VSceneHandler::SetTransientsDrawnThisEvent (G4bool drawn) {
122 fTransientsDrawnThisEvent = drawn;
125 inline void G4VSceneHandler::SetTransientsDrawnThisRun (G4bool drawn) {
126 fTransientsDrawnThisRun = drawn;
129 inline void G4VSceneHandler::SetObjectTransformation (const G4Transform3D& t) {
130 fObjectTransformation = t;
134 inline const G4Colour& G4VSceneHandler::GetColor (const G4Visible& visible) {
135 return GetColour (visible);
138 inline const G4Colour& G4VSceneHandler::GetTextColor (const G4Text& text) {
139 return GetTextColour (text);