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

#include <G4SoQt.hh>

+ Inheritance diagram for G4SoQt:

Public Member Functions

virtual ~G4SoQt ()
 
G4bool Inited ()
 
void * GetEvent ()
 
void FlushAndWaitExecution ()
 
void SecondaryLoop ()
 
void ExitSecondaryLoop ()
 
bool IsExternalApp ()
 
- Public Member Functions inherited from G4VInteractorManager
 G4VInteractorManager ()
 
virtual ~G4VInteractorManager ()
 
void SetArguments (int, char **)
 
char ** GetArguments (int *)
 
void SetMainInteractor (G4Interactor)
 
G4Interactor GetMainInteractor ()
 
void AddDispatcher (G4DispatchFunction)
 
void RemoveDispatcher (G4DispatchFunction)
 
void AddSecondaryLoopPreAction (G4SecondaryLoopAction)
 
void AddSecondaryLoopPostAction (G4SecondaryLoopAction)
 
void AddShell (G4Interactor)
 
void RemoveShell (G4Interactor)
 
void EnableSecondaryLoop ()
 
void DisableSecondaryLoop ()
 
void SecondaryLoopPreActions ()
 
void SecondaryLoopPostActions ()
 
void RequireExitSecondaryLoop (int)
 
void DispatchEvent (void *)
 
int GetExitSecondaryLoopCode ()
 
void PutStringInResourceDatabase (char *)
 
void SetParentInteractor (G4Interactor)
 
G4Interactor GetParentInteractor ()
 
void SetCreatedInteractor (G4Interactor)
 
G4Interactor GetCreatedInteractor ()
 
void SetCreationString (char *)
 
char * GetCreationString ()
 

Static Public Member Functions

static G4SoQtgetInstance ()
 

Detailed Description

Definition at line 46 of file G4SoQt.hh.

Constructor & Destructor Documentation

◆ ~G4SoQt()

G4SoQt::~G4SoQt ( )
virtual

Definition at line 105 of file G4SoQt.cc.

106{
107 if(this==instance) {
108 instance = NULL;
109 }
110}

Member Function Documentation

◆ ExitSecondaryLoop()

void G4SoQt::ExitSecondaryLoop ( )

Definition at line 155 of file G4SoQt.cc.

156{
157 // FWJ DEBUG
158 // G4cout << "G4SoQt: EXIT SECONDARY LOOP externalApp=" <<
159 // externalApp << G4endl;
160
161 if (externalApp) return;
162 SoQt::exitMainLoop();
163}

◆ FlushAndWaitExecution()

void G4SoQt::FlushAndWaitExecution ( )
virtual

Implements G4VInteractorManager.

Definition at line 125 of file G4SoQt.cc.

126{
127 // FWJ the following is used in G4Qt:
128 // if(!qApp) return;
129 // This starts the Qt main loop:
130 // qApp->processEvents();
131
132 // FWJ no, should be done in secondaryLoop()!
133 // SoQt::mainLoop();
134}

◆ GetEvent()

void * G4SoQt::GetEvent ( )
virtual

Implements G4VInteractorManager.

Definition at line 118 of file G4SoQt.cc.

119{
120 return 0;
121}

◆ getInstance()

G4SoQt * G4SoQt::getInstance ( )
static

Definition at line 56 of file G4SoQt.cc.

57{
58 if (instance==NULL) {
59 instance = new G4SoQt();
60 }
61 return instance;
62}

◆ Inited()

G4bool G4SoQt::Inited ( )
virtual

Implements G4VInteractorManager.

Definition at line 112 of file G4SoQt.cc.

113{
114 return QtInited;
115}

◆ IsExternalApp()

bool G4SoQt::IsExternalApp ( )

Definition at line 165 of file G4SoQt.cc.

166{
167 return externalApp;
168}

◆ SecondaryLoop()

void G4SoQt::SecondaryLoop ( )
virtual

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Reimplemented from G4VInteractorManager.

Definition at line 138 of file G4SoQt.cc.

139{
140 if (externalApp) return;
141
142 // FWJ DEBUG
143 // G4cout <<
144 // "ENTERING OIQT VIEWER SECONDARY LOOP" << G4endl;
145 // else
146
147 G4warn <<
148 "ENTERING OIQT VIEWER SECONDARY LOOP... PRESS E KEY TO EXIT" << G4endl;
149
150 SoQt::mainLoop();
151}
#define G4warn
Definition G4Scene.cc:41
#define G4endl
Definition G4ios.hh:67

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