Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HepRepFileViewer Class Reference

#include <G4HepRepFileViewer.hh>

+ Inheritance diagram for G4HepRepFileViewer:

Public Member Functions

 G4HepRepFileViewer (G4VSceneHandler &, const G4String &name)
 
virtual ~G4HepRepFileViewer ()
 
void SetView ()
 
void ClearView ()
 
void DrawView ()
 
void ShowView ()
 
- Public Member Functions inherited from G4VViewer
 G4VViewer (G4VSceneHandler &, G4int id, const G4String &name="")
 
virtual ~G4VViewer ()
 
virtual void Initialise ()
 
virtual void ResetView ()
 
virtual void SetView ()=0
 
virtual void ClearView ()=0
 
virtual void DrawView ()=0
 
void RefreshView ()
 
virtual void ShowView ()
 
virtual void FinishView ()
 
const G4StringGetName () const
 
const G4StringGetShortName () const
 
void SetName (const G4String &)
 
G4int GetViewId () const
 
G4VSceneHandlerGetSceneHandler () const
 
const G4ViewParametersGetViewParameters () const
 
const G4ViewParametersGetDefaultViewParameters () const
 
void SetViewParameters (const G4ViewParameters &vp)
 
void SetDefaultViewParameters (const G4ViewParameters &vp)
 
const G4VisAttributesGetApplicableVisAttributes (const G4VisAttributes *) const
 
void SetNeedKernelVisit (G4bool need)
 
void NeedKernelVisit ()
 
void ProcessView ()
 

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 43 of file G4HepRepFileViewer.hh.

Constructor & Destructor Documentation

◆ G4HepRepFileViewer()

G4HepRepFileViewer::G4HepRepFileViewer ( G4VSceneHandler sceneHandler,
const G4String name 
)

Definition at line 37 of file G4HepRepFileViewer.cc.

38 :
39 G4VViewer(sceneHandler, sceneHandler.IncrementViewCount(), name) {
40 hepRepXMLWriter = ((G4HepRepFileSceneHandler*)(&sceneHandler))->GetHepRepXMLWriter();
41 // Make changes to view parameters for HepRep...
42 fVP.SetCulling(false);
44}
G4int IncrementViewCount()
G4ViewParameters fDefaultVP
Definition: G4VViewer.hh:138
G4ViewParameters fVP
Definition: G4VViewer.hh:137
void SetCulling(G4bool)

◆ ~G4HepRepFileViewer()

G4HepRepFileViewer::~G4HepRepFileViewer ( )
virtual

Definition at line 46 of file G4HepRepFileViewer.cc.

46 {
47 ShowView ();
48}

Member Function Documentation

◆ ClearView()

void G4HepRepFileViewer::ClearView ( void  )
virtual

Implements G4VViewer.

Definition at line 56 of file G4HepRepFileViewer.cc.

56 {
57#ifdef G4HEPREPFILEDEBUG
58 G4cout << "G4HepRepFileViewer::ClearView() called." << G4endl;
59#endif
60}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

◆ DrawView()

void G4HepRepFileViewer::DrawView ( )
virtual

Implements G4VViewer.

Definition at line 62 of file G4HepRepFileViewer.cc.

62 {
63#ifdef G4HEPREPFILEDEBUG
64 G4cout << "G4HepRepFileViewer::DrawView() called." << G4endl;
65#endif
66 NeedKernelVisit (); // Always need to visit G4 kernel.
67 ProcessView ();
68}
void ProcessView()
Definition: G4VViewer.cc:115
void NeedKernelVisit()
Definition: G4VViewer.cc:86

◆ SetView()

void G4HepRepFileViewer::SetView ( )
virtual

Implements G4VViewer.

Definition at line 50 of file G4HepRepFileViewer.cc.

50 {
51#ifdef G4HEPREPFILEDEBUG
52 G4cout << "G4HepRepFileViewer::SetView() called.=" << G4endl;
53#endif
54}

◆ ShowView()

void G4HepRepFileViewer::ShowView ( void  )
virtual

Reimplemented from G4VViewer.

Definition at line 70 of file G4HepRepFileViewer.cc.

70 {
71#ifdef G4HEPREPFILEDEBUG
72 G4cout << "G4HepRepFileViewer::ShowView" << G4endl;
73#endif
75
76 if (hepRepXMLWriter->isOpen)
77 hepRepXMLWriter->close();
78}
virtual void ShowView()
Definition: G4VViewer.cc:113

Referenced by ~G4HepRepFileViewer().


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