Geant4-11
Public Member Functions | Private Member Functions | Private Attributes | Friends
G4VisStateDependent Class Reference

#include <G4VisStateDependent.hh>

Inheritance diagram for G4VisStateDependent:
G4VStateDependent

Public Member Functions

G4bool operator!= (const G4VStateDependent &right) const
 
G4bool operator== (const G4VStateDependent &right) const
 

Private Member Functions

 G4VisStateDependent (G4VisManager *)
 
G4bool Notify (G4ApplicationState requestedState)
 

Private Attributes

G4VisManagerfpVisManager
 

Friends

class G4VisManager
 

Detailed Description

Definition at line 43 of file G4VisStateDependent.hh.

Constructor & Destructor Documentation

◆ G4VisStateDependent()

G4VisStateDependent::G4VisStateDependent ( G4VisManager pVisManager)
private

Definition at line 33 of file G4VisStateDependent.cc.

33 :
34 fpVisManager (pVisManager) {}
G4VisManager * fpVisManager

Member Function Documentation

◆ Notify()

G4bool G4VisStateDependent::Notify ( G4ApplicationState  requestedState)
privatevirtual

Implements G4VStateDependent.

Definition at line 36 of file G4VisStateDependent.cc.

36 {
38 G4ApplicationState previousState = stateManager->GetPreviousState();
39 if (previousState == G4State_Idle && requestedState == G4State_GeomClosed) {
40 fpVisManager -> BeginOfRun ();
41 }
42 else if (previousState == G4State_GeomClosed && requestedState == G4State_EventProc) {
43 fpVisManager -> BeginOfEvent ();
44 }
45 else if (previousState == G4State_EventProc && requestedState == G4State_GeomClosed) {
46 fpVisManager -> EndOfEvent ();
47 }
48 else if (previousState == G4State_GeomClosed && requestedState == G4State_Idle) {
49 fpVisManager -> EndOfRun ();
50 }
51 return true;
52}
G4ApplicationState
@ G4State_EventProc
@ G4State_Idle
@ G4State_GeomClosed
static G4StateManager * GetStateManager()
const G4ApplicationState & GetPreviousState() const

References fpVisManager, G4State_EventProc, G4State_GeomClosed, G4State_Idle, G4StateManager::GetPreviousState(), and G4StateManager::GetStateManager().

◆ operator!=()

G4bool G4VStateDependent::operator!= ( const G4VStateDependent right) const
inherited

Definition at line 66 of file G4VStateDependent.cc.

67{
68 return (this != &right);
69}

◆ operator==()

G4bool G4VStateDependent::operator== ( const G4VStateDependent right) const
inherited

Definition at line 61 of file G4VStateDependent.cc.

62{
63 return (this == &right);
64}

Friends And Related Function Documentation

◆ G4VisManager

friend class G4VisManager
friend

Definition at line 44 of file G4VisStateDependent.hh.

Field Documentation

◆ fpVisManager

G4VisManager* G4VisStateDependent::fpVisManager
private

Definition at line 48 of file G4VisStateDependent.hh.

Referenced by Notify().


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