Geant4 10.7.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 ()
 
std::vector< G4ThreeVectorComputeFlyThrough (G4Vector3D *)
 
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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from G4VViewer
void SetTouchable (const std::vector< G4PhysicalVolumeModel::G4PhysicalVolumeNodeID > &fullPath)
 
void TouchableSetVisibility (const std::vector< G4PhysicalVolumeModel::G4PhysicalVolumeNodeID > &fullPath, G4bool visibility)
 
void TouchableSetColour (const std::vector< G4PhysicalVolumeModel::G4PhysicalVolumeNodeID > &fullPath, const G4Colour &)
 
- Protected Attributes inherited from G4VViewer
G4VSceneHandlerfSceneHandler
 
G4int fViewId
 
G4String fName
 
G4String fShortName
 
G4ViewParameters fVP
 
G4ViewParameters fDefaultVP
 
G4bool fNeedKernelVisit
 

Detailed Description

Definition at line 42 of file G4HepRepFileViewer.hh.

Constructor & Destructor Documentation

◆ G4HepRepFileViewer()

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

Definition at line 36 of file G4HepRepFileViewer.cc.

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

◆ ~G4HepRepFileViewer()

G4HepRepFileViewer::~G4HepRepFileViewer ( )
virtual

Definition at line 45 of file G4HepRepFileViewer.cc.

45 {
46 ShowView ();
47}

Member Function Documentation

◆ ClearView()

void G4HepRepFileViewer::ClearView ( void  )
virtual

Implements G4VViewer.

Definition at line 55 of file G4HepRepFileViewer.cc.

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

◆ DrawView()

void G4HepRepFileViewer::DrawView ( )
virtual

Implements G4VViewer.

Definition at line 61 of file G4HepRepFileViewer.cc.

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

◆ SetView()

void G4HepRepFileViewer::SetView ( )
virtual

Implements G4VViewer.

Definition at line 49 of file G4HepRepFileViewer.cc.

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

◆ ShowView()

void G4HepRepFileViewer::ShowView ( void  )
virtual

Reimplemented from G4VViewer.

Definition at line 69 of file G4HepRepFileViewer.cc.

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

Referenced by ~G4HepRepFileViewer().


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