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

#include <G4XXXViewer.hh>

+ Inheritance diagram for G4XXXViewer:

Public Member Functions

 G4XXXViewer (G4VSceneHandler &, const G4String &name)
 
virtual ~G4XXXViewer ()
 
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 41 of file G4XXXViewer.hh.

Constructor & Destructor Documentation

◆ G4XXXViewer()

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

Definition at line 39 of file G4XXXViewer.cc.

40 :
41 G4VViewer(sceneHandler, sceneHandler.IncrementViewCount(), name) {}
G4int IncrementViewCount()

◆ ~G4XXXViewer()

G4XXXViewer::~G4XXXViewer ( )
virtual

Definition at line 43 of file G4XXXViewer.cc.

43{}

Member Function Documentation

◆ ClearView()

void G4XXXViewer::ClearView ( void  )
virtual

Implements G4VViewer.

Definition at line 51 of file G4XXXViewer.cc.

51 {
52#ifdef G4XXXDEBUG
53 G4cout << "G4XXXViewer::ClearView() called." << G4endl;
54#endif
55}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

◆ DrawView()

void G4XXXViewer::DrawView ( )
virtual

Implements G4VViewer.

Definition at line 57 of file G4XXXViewer.cc.

57 {
58#ifdef G4XXXDEBUG
59 G4cout << "G4XXXViewer::DrawView() called." << G4endl;
60#endif
61
62 // First, a view should decide when to re-visit the G4 kernel.
63 // Sometimes it might not be necessary, e.g., if the scene is stored
64 // in a graphical database (e.g., OpenGL's display lists) and only
65 // the viewing angle has changed. But graphics systems without a
66 // graphical database will always need to visit the G4 kernel.
67
68 NeedKernelVisit (); // Default is - always visit G4 kernel.
69 // Note: this routine sets the fNeedKernelVisit flag of *all* the
70 // views of the scene.
71
72 ProcessView (); // The basic logic is here.
73
74 // Then a view may have more to do, e.g., display the graphical
75 // database. That code should come here...
76
77 // ...before finally...
78 FinishView (); // Flush streams and/or swap buffers.
79}
void ProcessView()
Definition: G4VViewer.cc:115
void NeedKernelVisit()
Definition: G4VViewer.cc:86
virtual void FinishView()
Definition: G4VViewer.cc:111

◆ SetView()

void G4XXXViewer::SetView ( )
virtual

Implements G4VViewer.

Definition at line 45 of file G4XXXViewer.cc.

45 {
46#ifdef G4XXXDEBUG
47 G4cout << "G4XXXViewer::SetView() called." << G4endl;
48#endif
49}

◆ ShowView()

void G4XXXViewer::ShowView ( void  )
virtual

Reimplemented from G4VViewer.

Definition at line 81 of file G4XXXViewer.cc.

81 {
82#ifdef G4XXXDEBUG
83 G4cout << "G4XXXViewer::ShowView() called." << G4endl;
84 static_cast<G4XXXSceneHandler&>(fSceneHandler).PrintStores();
85#endif
86}
G4VSceneHandler & fSceneHandler
Definition: G4VViewer.hh:133

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