Geant4  10.00.p03
G4Scene Class Reference

#include <G4Scene.hh>

+ Collaboration diagram for G4Scene:

Classes

struct  Model
 

Public Types

enum  { UNLIMITED = -1 }
 

Public Member Functions

 G4Scene (const G4String &name="scene-with-unspecified-name")
 
 ~G4Scene ()
 
G4bool operator== (const G4Scene &) const
 
G4bool operator!= (const G4Scene &) const
 
const G4StringGetName () const
 
G4bool IsEmpty () const
 
const std::vector< Model > & GetRunDurationModelList () const
 
const std::vector< Model > & GetEndOfEventModelList () const
 
const std::vector< Model > & GetEndOfRunModelList () const
 
const G4VisExtentGetExtent () const
 
const G4Point3DGetStandardTargetPoint () const
 
G4bool GetRefreshAtEndOfEvent () const
 
G4int GetMaxNumberOfKeptEvents () const
 
G4bool GetRefreshAtEndOfRun () const
 
G4bool AddRunDurationModel (G4VModel *, G4bool warn=false)
 
G4bool AddWorldIfEmpty (G4bool warn=false)
 
G4bool AddEndOfEventModel (G4VModel *, G4bool warn=false)
 
G4bool AddEndOfRunModel (G4VModel *, G4bool warn=false)
 
void SetName (const G4String &)
 
std::vector< Model > & SetRunDurationModelList ()
 
std::vector< Model > & SetEndOfEventModelList ()
 
std::vector< Model > & SetEndOfRunModelList ()
 
void SetRefreshAtEndOfEvent (G4bool)
 
void SetMaxNumberOfKeptEvents (G4int)
 
void SetRefreshAtEndOfRun (G4bool)
 
void CalculateExtent ()
 

Private Attributes

G4String fName
 
std::vector< ModelfRunDurationModelList
 
std::vector< ModelfEndOfEventModelList
 
std::vector< ModelfEndOfRunModelList
 
G4VisExtent fExtent
 
G4Point3D fStandardTargetPoint
 
G4bool fRefreshAtEndOfEvent
 
G4bool fRefreshAtEndOfRun
 
G4int fMaxNumberOfKeptEvents
 

Friends

std::ostream & operator<< (std::ostream &os, const G4Scene &d)
 

Detailed Description

Definition at line 49 of file G4Scene.hh.

Member Enumeration Documentation

anonymous enum
Enumerator
UNLIMITED 

Definition at line 55 of file G4Scene.hh.

Constructor & Destructor Documentation

G4Scene::G4Scene ( const G4String name = "scene-with-unspecified-name")

Definition at line 40 of file G4Scene.cc.

G4Scene::~G4Scene ( )

Definition at line 47 of file G4Scene.cc.

Member Function Documentation

G4bool G4Scene::AddEndOfEventModel ( G4VModel pModel,
G4bool  warn = false 
)

Definition at line 190 of file G4Scene.cc.

References fEndOfEventModelList, fName, G4cout, and G4endl.

G4bool G4Scene::AddEndOfRunModel ( G4VModel pModel,
G4bool  warn = false 
)

Definition at line 210 of file G4Scene.cc.

References fEndOfRunModelList, fName, G4cout, and G4endl.

G4bool G4Scene::AddRunDurationModel ( G4VModel pModel,
G4bool  warn = false 
)

Definition at line 49 of file G4Scene.cc.

References CalculateExtent(), fName, fRunDurationModelList, G4cout, G4endl, and G4VModel::GetGlobalDescription().

Referenced by AddWorldIfEmpty().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4Scene::AddWorldIfEmpty ( G4bool  warn = false)

Definition at line 154 of file G4Scene.cc.

References AddRunDurationModel(), G4cout, G4endl, G4TransportationManager::GetTransportationManager(), and IsEmpty().

Referenced by G4RayTracerSceneHandler::G4RayTracerSceneHandler().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4Scene::CalculateExtent ( )

Definition at line 72 of file G4Scene.cc.

References G4BoundingSphereScene::AccrueBoundingSphere(), fEndOfEventModelList, fEndOfRunModelList, fExtent, fRunDurationModelList, fStandardTargetPoint, G4Exception(), G4BoundingSphereScene::GetBoundingSphereExtent(), GetExtent(), G4VisExtent::GetExtentCentre(), G4VisExtent::GetExtentRadius(), G4VModel::GetGlobalDescription(), and JustWarning.

Referenced by AddRunDurationModel(), G4VisManager::GeometryHasChanged(), G4VisManager::NotifyHandlers(), and G4VisCommandSceneNotifyHandlers::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const std::vector<Model>& G4Scene::GetEndOfEventModelList ( ) const

Referenced by G4GMocrenFileSceneHandler::GFBeginModeling().

+ Here is the caller graph for this function:

const std::vector<Model>& G4Scene::GetEndOfRunModelList ( ) const
G4int G4Scene::GetMaxNumberOfKeptEvents ( ) const

Referenced by G4VisManager::EndOfEvent(), and G4VisManager::EndOfRun().

+ Here is the caller graph for this function:

const G4String& G4Scene::GetName ( ) const

Referenced by G4VisManager::GeometryHasChanged(), G4VisManager::NotifyHandlers(), G4VisCommandSceneList::SetNewValue(), and G4VisCommandViewerRefresh::SetNewValue().

+ Here is the caller graph for this function:

G4bool G4Scene::GetRefreshAtEndOfEvent ( ) const

Referenced by G4VisManager::EndOfEvent(), G4VSceneHandler::ProcessScene(), G4VisCommandSceneEndOfEventAction::SetNewValue(), G4VisCommandReviewKeptEvents::SetNewValue(), and G4VisCommandSceneEndOfRunAction::SetNewValue().

+ Here is the caller graph for this function:

G4bool G4Scene::GetRefreshAtEndOfRun ( ) const

Referenced by G4VisManager::EndOfRun(), G4VSceneHandler::ProcessScene(), G4VisCommandSceneEndOfEventAction::SetNewValue(), and G4VisCommandSceneEndOfRunAction::SetNewValue().

+ Here is the caller graph for this function:

const std::vector<Model>& G4Scene::GetRunDurationModelList ( ) const

Referenced by G4ASCIITreeSceneHandler::EndModeling(), and G4VisCommandViewerRefresh::SetNewValue().

+ Here is the caller graph for this function:

const G4Point3D& G4Scene::GetStandardTargetPoint ( ) const

Referenced by G4VRML2FileViewer::SendViewParameters(), G4DAWNFILEViewer::SendViewParameters(), G4VisCommandsViewerSet::SetNewValue(), G4VisCommandViewerSave::SetNewValue(), and G4RayTracerViewer::SetView().

+ Here is the caller graph for this function:

G4bool G4Scene::IsEmpty ( ) const

Referenced by AddWorldIfEmpty().

+ Here is the caller graph for this function:

G4bool G4Scene::operator== ( const G4Scene ) const
std::vector<Model>& G4Scene::SetEndOfEventModelList ( )

Referenced by G4VisCommandSceneActivateModel::SetNewValue().

+ Here is the caller graph for this function:

std::vector<Model>& G4Scene::SetEndOfRunModelList ( )

Referenced by G4VisCommandSceneActivateModel::SetNewValue().

+ Here is the caller graph for this function:

void G4Scene::SetMaxNumberOfKeptEvents ( G4int  )

Referenced by G4VisCommandSceneEndOfEventAction::SetNewValue().

+ Here is the caller graph for this function:

void G4Scene::SetName ( const G4String )
void G4Scene::SetRefreshAtEndOfEvent ( G4bool  )

Referenced by G4VisCommandSceneEndOfEventAction::SetNewValue(), and G4VisCommandReviewKeptEvents::SetNewValue().

+ Here is the caller graph for this function:

void G4Scene::SetRefreshAtEndOfRun ( G4bool  )

Referenced by G4VisCommandSceneEndOfRunAction::SetNewValue().

+ Here is the caller graph for this function:

std::vector<Model>& G4Scene::SetRunDurationModelList ( )

Referenced by G4VisCommandSceneActivateModel::SetNewValue().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const G4Scene d 
)
friend

Definition at line 230 of file G4Scene.cc.

Member Data Documentation

std::vector<Model> G4Scene::fEndOfEventModelList
private

Definition at line 180 of file G4Scene.hh.

Referenced by AddEndOfEventModel(), CalculateExtent(), operator!=(), and operator<<().

std::vector<Model> G4Scene::fEndOfRunModelList
private

Definition at line 181 of file G4Scene.hh.

Referenced by AddEndOfRunModel(), CalculateExtent(), operator!=(), and operator<<().

G4VisExtent G4Scene::fExtent
private

Definition at line 182 of file G4Scene.hh.

Referenced by CalculateExtent(), operator!=(), and operator<<().

G4int G4Scene::fMaxNumberOfKeptEvents
private

Definition at line 186 of file G4Scene.hh.

Referenced by operator!=(), and operator<<().

G4String G4Scene::fName
private

Definition at line 178 of file G4Scene.hh.

Referenced by AddEndOfEventModel(), AddEndOfRunModel(), and AddRunDurationModel().

G4bool G4Scene::fRefreshAtEndOfEvent
private

Definition at line 184 of file G4Scene.hh.

Referenced by operator!=(), and operator<<().

G4bool G4Scene::fRefreshAtEndOfRun
private

Definition at line 185 of file G4Scene.hh.

Referenced by operator!=(), and operator<<().

std::vector<Model> G4Scene::fRunDurationModelList
private

Definition at line 179 of file G4Scene.hh.

Referenced by AddRunDurationModel(), CalculateExtent(), operator!=(), and operator<<().

G4Point3D G4Scene::fStandardTargetPoint
private

Definition at line 183 of file G4Scene.hh.

Referenced by CalculateExtent(), operator!=(), and operator<<().


The documentation for this class was generated from the following files: