Geant4  10.00.p01
G4VRML2FileViewer Class Reference

#include <G4VRML2FileViewer.hh>

+ Inheritance diagram for G4VRML2FileViewer:
+ Collaboration diagram for G4VRML2FileViewer:

Public Member Functions

 G4VRML2FileViewer (G4VRML2FileSceneHandler &scene, const G4String &name="")
 
virtual ~G4VRML2FileViewer ()
 
void ClearView ()
 
void DrawView ()
 
void ShowView ()
 
void FinishView ()
 
- Public Member Functions inherited from G4VViewer
 G4VViewer (G4VSceneHandler &, G4int id, const G4String &name="")
 
virtual ~G4VViewer ()
 
virtual void Initialise ()
 
virtual void ResetView ()
 
void RefreshView ()
 
const G4StringGetName () const
 
const G4StringGetShortName () const
 
void SetName (const G4String &)
 
G4int GetViewId () const
 
G4VSceneHandlerGetSceneHandler () const
 
const G4ViewParametersGetViewParameters () const
 
const G4ViewParametersGetDefaultViewParameters () const
 
virtual const std::vector
< G4ModelingParameters::VisAttributesModifier > * 
GetPrivateVisAttributesModifiers () const
 
void SetViewParameters (const G4ViewParameters &vp)
 
void SetDefaultViewParameters (const G4ViewParameters &vp)
 
const G4VisAttributesGetApplicableVisAttributes (const G4VisAttributes *) const
 
void SetNeedKernelVisit (G4bool need)
 
void NeedKernelVisit ()
 
void ProcessView ()
 

Private Member Functions

void SetView ()
 
void SendViewParameters ()
 

Private Attributes

G4VRML2FileSceneHandlerfSceneHandler
 
std::ofstream & fDest
 
G4double fViewHalfAngle
 
G4double fsin_VHA
 

Additional Inherited Members

- Protected Attributes inherited from G4VViewer
G4VSceneHandlerfSceneHandler
 
G4int fViewId
 
G4String fName
 
G4String fShortName
 
G4ViewParameters fVP
 
G4ViewParameters fDefaultVP
 
G4bool fNeedKernelVisit
 

Detailed Description

Definition at line 41 of file G4VRML2FileViewer.hh.

Constructor & Destructor Documentation

G4VRML2FileViewer::G4VRML2FileViewer ( G4VRML2FileSceneHandler scene,
const G4String name = "" 
)

Definition at line 45 of file G4VRML2FileViewer.cc.

References deg, fsin_VHA, and fViewHalfAngle.

G4VRML2FileViewer::~G4VRML2FileViewer ( )
virtual

Definition at line 57 of file G4VRML2FileViewer.cc.

Member Function Documentation

void G4VRML2FileViewer::ClearView ( void  )
virtual

Implements G4VViewer.

Definition at line 90 of file G4VRML2FileViewer.cc.

References G4VisManager::errors, G4VRML2FileSceneHandler::fDest, G4VRML2FileSceneHandler::fFlagDestOpen, fSceneHandler, G4VRML2FileSceneHandler::fVRMLFileName, G4cout, G4endl, and G4VisManager::GetVerbosity().

+ Here is the call graph for this function:

void G4VRML2FileViewer::DrawView ( )
virtual

Implements G4VViewer.

Definition at line 72 of file G4VRML2FileViewer.cc.

References G4VisManager::errors, FinishView(), fSceneHandler, G4cout, G4endl, G4VisManager::GetVerbosity(), G4VViewer::NeedKernelVisit(), G4VViewer::ProcessView(), SendViewParameters(), and G4VRML2FileSceneHandler::VRMLBeginModeling().

+ Here is the call graph for this function:

void G4VRML2FileViewer::FinishView ( void  )
virtual

Reimplemented from G4VViewer.

Definition at line 114 of file G4VRML2FileViewer.cc.

References G4VisManager::errors, G4cout, G4endl, and G4VisManager::GetVerbosity().

Referenced by DrawView().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4VRML2FileViewer::SendViewParameters ( )
private

Definition at line 122 of file G4VRML2FileViewer.cc.

References G4VisManager::errors, fDest, fSceneHandler, fsin_VHA, G4VViewer::fVP, G4cout, G4endl, G4ViewParameters::GetCurrentTargetPoint(), G4Scene::GetExtent(), G4VisExtent::GetExtentRadius(), G4VSceneHandler::GetScene(), G4Scene::GetStandardTargetPoint(), and G4VisManager::GetVerbosity().

Referenced by DrawView().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4VRML2FileViewer::SetView ( )
privatevirtual

Implements G4VViewer.

Definition at line 60 of file G4VRML2FileViewer.cc.

References G4VisManager::errors, G4cout, G4endl, and G4VisManager::GetVerbosity().

+ Here is the call graph for this function:

void G4VRML2FileViewer::ShowView ( void  )
virtual

Reimplemented from G4VViewer.

Definition at line 105 of file G4VRML2FileViewer.cc.

References G4VisManager::errors, fSceneHandler, G4cout, G4endl, G4VisManager::GetVerbosity(), and G4VRML2FileSceneHandler::VRMLEndModeling().

+ Here is the call graph for this function:

Member Data Documentation

std::ofstream& G4VRML2FileViewer::fDest
private

Definition at line 55 of file G4VRML2FileViewer.hh.

Referenced by SendViewParameters().

G4VRML2FileSceneHandler& G4VRML2FileViewer::fSceneHandler
private

Definition at line 54 of file G4VRML2FileViewer.hh.

Referenced by ClearView(), DrawView(), SendViewParameters(), and ShowView().

G4double G4VRML2FileViewer::fsin_VHA
private

Definition at line 58 of file G4VRML2FileViewer.hh.

Referenced by G4VRML2FileViewer(), and SendViewParameters().

G4double G4VRML2FileViewer::fViewHalfAngle
private

Definition at line 57 of file G4VRML2FileViewer.hh.

Referenced by G4VRML2FileViewer().


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