// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // // $Id: G4VisManager.icc,v 1.20 2007/01/11 16:40:58 allison Exp $ // GEANT4 tag $Name: HEAD $ // // // GEANT4 Visualization Manager - John Allison 02/Jan/1996. inline void G4VisManager::Initialize () { Initialise (); } inline G4VisExtent G4VisManager::GetUserActionExtent () const { return fUserVisActionExtent; } inline G4VUserVisAction* G4VisManager::GetUserAction () const { return fpUserVisAction; } inline G4VSceneHandler* G4VisManager::GetCurrentSceneHandler () const { return fpSceneHandler; } inline G4VViewer* G4VisManager::GetCurrentViewer () const { return fpViewer; } inline G4Scene* G4VisManager::GetCurrentScene () const { return fpScene; } inline const G4SceneHandlerList& G4VisManager::GetAvailableSceneHandlers () const { return fAvailableSceneHandlers; } inline const G4SceneList& G4VisManager::GetSceneList () const { return fSceneList; } inline G4VGraphicsSystem* G4VisManager::GetCurrentGraphicsSystem () const { return fpGraphicsSystem; } inline G4VisManager::Verbosity G4VisManager::GetVerbosity () const { return fVerbosity; } inline void G4VisManager::GetWindowSizeHint (G4int& xHint, G4int& yHint) const { xHint = fWindowSizeHintX; yHint = fWindowSizeHintY; } inline void G4VisManager::GetWindowLocationHint (G4int& xHint, G4int& yHint) const { xHint = fpViewer->GetViewParameters().GetWindowLocationHintX(); yHint = fpViewer->GetViewParameters().GetWindowLocationHintY(); } inline const G4String& G4VisManager::GetXGeometryString () const { return fXGeometryString; } inline G4bool G4VisManager::GetTransientsDrawnThisEvent() const { return fTransientsDrawnThisEvent; } inline G4bool G4VisManager::GetTransientsDrawnThisRun() const { return fTransientsDrawnThisRun; } inline const G4Event* G4VisManager::GetRequestedEvent() const { return fpRequestedEvent; } inline G4bool G4VisManager::GetAbortReviewKeptEvents() const { return fAbortReviewKeptEvents; } inline void G4VisManager::SetUserActionExtent (const G4VisExtent& extent) { fUserVisActionExtent = extent; } inline G4SceneList& G4VisManager::SetSceneList () { return fSceneList; } inline G4SceneHandlerList& G4VisManager::SetAvailableSceneHandlers () { return fAvailableSceneHandlers; } inline void G4VisManager::SetVerboseLevel (G4VisManager::Verbosity verbosity) { fVerbosity = verbosity; } inline void G4VisManager::SetWindowSizeHint (G4int xHint, G4int yHint) { fWindowSizeHintX = xHint; fWindowSizeHintY = yHint; } inline void G4VisManager::SetWindowLocationHint (G4int xHint, G4int yHint) { #ifdef G4DEBUG printf("G4VisManager::SetWindowLocationHint () :: %d %d\n",xHint,yHint); #endif G4ViewParameters vp = fpViewer->GetViewParameters(); vp.SetWindowLocationHint(xHint,yHint); fpViewer->SetViewParameters(vp); } inline void G4VisManager::SetXGeometryString (const G4String& geomString) { fXGeometryString = geomString; } inline void G4VisManager::SetEventRefreshing (G4bool eventRefreshing) { fEventRefreshing = eventRefreshing; } inline void G4VisManager::RegisterMessenger(G4UImessenger* msgr) { fMessengerList.push_back(msgr); } inline void G4VisManager::SetRequestedEvent (const G4Event* event) { fpRequestedEvent = event; } inline void G4VisManager::SetAbortReviewKeptEvents (G4bool abort) { fAbortReviewKeptEvents = abort; }