00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 // 00030 // John Allison 19th July 1996. 00031 00032 inline G4VGraphicsSystem* G4VSceneHandler::GetGraphicsSystem () const { 00033 return &fSystem; 00034 } 00035 00036 inline G4int G4VSceneHandler::GetSceneHandlerId () const { 00037 return fSceneHandlerId; 00038 } 00039 00040 inline G4int G4VSceneHandler::GetViewCount () const { 00041 return fViewCount; 00042 } 00043 00044 inline 00045 G4double G4VSceneHandler::GetMarkerDiameter 00046 (const G4VMarker& marker, G4VSceneHandler::MarkerSizeType& sizeType) { 00047 return GetMarkerSize (marker, sizeType); 00048 } 00049 00050 inline 00051 G4double G4VSceneHandler::GetMarkerRadius 00052 (const G4VMarker& marker, G4VSceneHandler::MarkerSizeType& sizeType) { 00053 return GetMarkerSize (marker, sizeType) / 2.; 00054 } 00055 00056 inline G4int G4VSceneHandler::IncrementViewCount () { 00057 return fViewCount++; 00058 } 00059 00060 inline const G4String& G4VSceneHandler::GetName () const { 00061 return fName; 00062 } 00063 00064 inline void G4VSceneHandler::SetName (const G4String& name) { 00065 fName = name; 00066 } 00067 00068 inline G4Scene* G4VSceneHandler::GetScene () const { 00069 return fpScene; 00070 } 00071 00072 inline const G4ViewerList& G4VSceneHandler::GetViewerList () const { 00073 return fViewerList; 00074 } 00075 00076 inline G4VModel* G4VSceneHandler::GetModel () const { 00077 return fpModel; 00078 } 00079 00080 inline G4VViewer* G4VSceneHandler::GetCurrentViewer () const { 00081 return fpViewer; 00082 } 00083 00084 inline G4bool G4VSceneHandler::GetMarkForClearingTransientStore () const { 00085 return fMarkForClearingTransientStore; 00086 } 00087 00088 inline G4bool G4VSceneHandler::IsReadyForTransients () const { 00089 return fReadyForTransients; 00090 } 00091 00092 inline G4bool G4VSceneHandler::GetTransientsDrawnThisEvent () const { 00093 return fTransientsDrawnThisEvent; 00094 } 00095 00096 inline G4bool G4VSceneHandler::GetTransientsDrawnThisRun () const { 00097 return fTransientsDrawnThisRun; 00098 } 00099 00100 inline const G4Transform3D& G4VSceneHandler::GetObjectTransformation () const { 00101 return fObjectTransformation; 00102 } 00103 00104 inline void G4VSceneHandler::SetCurrentViewer (G4VViewer* pViewer) { 00105 fpViewer = pViewer; 00106 } 00107 00108 inline G4ViewerList& G4VSceneHandler::SetViewerList () { 00109 return fViewerList; 00110 } 00111 00112 inline void 00113 G4VSceneHandler::SetModel (G4VModel* pModel) { 00114 fpModel = pModel; 00115 } 00116 00117 inline void G4VSceneHandler::SetMarkForClearingTransientStore (G4bool mark) { 00118 fMarkForClearingTransientStore = mark; 00119 } 00120 00121 inline void G4VSceneHandler::SetTransientsDrawnThisEvent (G4bool drawn) { 00122 fTransientsDrawnThisEvent = drawn; 00123 } 00124 00125 inline void G4VSceneHandler::SetTransientsDrawnThisRun (G4bool drawn) { 00126 fTransientsDrawnThisRun = drawn; 00127 } 00128 00129 inline void G4VSceneHandler::SetObjectTransformation (const G4Transform3D& t) { 00130 fObjectTransformation = t; 00131 } 00132 00133 00134 inline const G4Colour& G4VSceneHandler::GetColor (const G4Visible& visible) { 00135 return GetColour (visible); 00136 } 00137 00138 inline const G4Colour& G4VSceneHandler::GetTextColor (const G4Text& text) { 00139 return GetTextColour (text); 00140 }