Geant4 11.1.1
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 ()
 
void * GetEvent ()
 
void FlushAndWaitExecution ()
 
virtual ~G4Qt ()
 
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 *)
 
virtual G4bool Inited ()=0
 
virtual void * GetEvent ()=0
 
virtual void FlushAndWaitExecution ()=0
 
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 ( )
virtual

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

Definition at line 160 of file G4Qt.cc.

164{
165 if(this==instance) {
166 instance = NULL;
167 }
168}

Member Function Documentation

◆ FlushAndWaitExecution()

void G4Qt::FlushAndWaitExecution ( )
virtual

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

Implements G4VInteractorManager.

Definition at line 186 of file G4Qt.cc.

190{
191 if(!qApp) return;
192 qApp->processEvents();
193}

Referenced by G4ToolsSGQtViewer::Initialise().

◆ GetEvent()

void * G4Qt::GetEvent ( )
virtual

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

Implements G4VInteractorManager.

Definition at line 178 of file G4Qt.cc.

182{
183 return 0;
184}

◆ getInstance() [1/2]

G4Qt * G4Qt::getInstance ( )
static

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

Definition at line 51 of file G4Qt.cc.

55{
56 return G4Qt::getInstance (0,NULL,(char*)"Geant4");
57}
static G4Qt * getInstance()
Definition: G4Qt.cc:51

Referenced by G4OpenGLQtViewer::CreateMainWindow(), G4OpenGLQtViewer::G4MouseReleaseEvent(), G4OpenGLQtViewer::G4OpenGLQtViewer(), G4UIQt::G4UIQt(), getInstance(), G4ToolsSGQtViewer::Initialise(), G4OpenGLQtViewer::isCurrentWidget(), G4OpenGLQtViewer::moveScene(), G4UIQt::SessionStart(), and G4UIQt::SessionTerminate().

◆ getInstance() [2/2]

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

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

Definition at line 59 of file G4Qt.cc.

66{
67 if (instance==NULL) {
68 instance = new G4Qt(a_argn,a_args,a_class);
69 }
70 return instance;
71}
Definition: G4Qt.hh:49

◆ Inited()

G4bool G4Qt::Inited ( )
virtual

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

Implements G4VInteractorManager.

Definition at line 170 of file G4Qt.cc.

174{
175 return QtInited;
176}

◆ IsExternalApp()

bool G4Qt::IsExternalApp ( )

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

Definition at line 196 of file G4Qt.cc.

200{
201 return externalApp;
202}

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


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