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

#include <G4Qt.hh>

+ Inheritance diagram for G4Qt:

Public Member Functions

G4bool Inited () override
 
void * GetEvent () override
 
void FlushAndWaitExecution () override
 
 ~G4Qt () override
 
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 *)
 
virtual void SecondaryLoop ()
 
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 G4QtgetInstance ()
 
static G4QtgetInstance (int, char **, char *)
 

Detailed Description

Definition at line 49 of file G4Qt.hh.

Constructor & Destructor Documentation

◆ ~G4Qt()

G4Qt::~G4Qt ( )
override

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

Definition at line 151 of file G4Qt.cc.

154{
155 if (this == instance) {
156 instance = nullptr;
157 }
158}

Member Function Documentation

◆ FlushAndWaitExecution()

void G4Qt::FlushAndWaitExecution ( )
overridevirtual

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

Implements G4VInteractorManager.

Definition at line 174 of file G4Qt.cc.

177{
178 if (! qApp) return;
179 qApp->processEvents();
180}

Referenced by G4ToolsSGQtGLESViewer::Initialise(), and G4ToolsSGQtZBViewer::Initialise().

◆ GetEvent()

void * G4Qt::GetEvent ( )
overridevirtual

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

Implements G4VInteractorManager.

Definition at line 167 of file G4Qt.cc.

170{
171 return nullptr;
172}

◆ getInstance() [1/2]

◆ getInstance() [2/2]

G4Qt * G4Qt::getInstance ( int a_argn,
char ** a_args,
char * a_class )
static

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

Definition at line 58 of file G4Qt.cc.

61{
62 if (instance == nullptr) {
63 instance = new G4Qt(a_argn, a_args, a_class);
64 }
65 return instance;
66}
Definition G4Qt.hh:50

◆ Inited()

G4bool G4Qt::Inited ( )
overridevirtual

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

Implements G4VInteractorManager.

Definition at line 160 of file G4Qt.cc.

163{
164 return QtInited;
165}

◆ IsExternalApp()

bool G4Qt::IsExternalApp ( )

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

Definition at line 183 of file G4Qt.cc.

186{
187 return externalApp;
188}

Referenced by G4OpenGLQtViewer::CreateMainWindow(), G4ToolsSGQtGLESViewer::Initialise(), G4ToolsSGQtZBViewer::Initialise(), and G4OpenGLQtViewer::isCurrentWidget().


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