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

#include <G4Win32.hh>

+ Inheritance diagram for G4Win32:

Public Member Functions

G4bool Inited ()
 
void * GetEvent ()
 
void FlushAndWaitExecution ()
 
virtual ~G4Win32 ()
 
- 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 G4Win32getInstance ()
 
static G4bool DispatchWin32Event (void *)
 

Detailed Description

Definition at line 46 of file G4Win32.hh.

Constructor & Destructor Documentation

◆ ~G4Win32()

G4Win32::~G4Win32 ( )
virtual

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

Definition at line 98 of file G4Win32.cc.

102{
103 if(this==instance) {
104 instance = NULL;
105 }
106}

Member Function Documentation

◆ DispatchWin32Event()

G4bool G4Win32::DispatchWin32Event ( void *  a_event)
static

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

Definition at line 139 of file G4Win32.cc.

144{
145 ::TranslateMessage((MSG*)a_event);
146 ::DispatchMessage ((MSG*)a_event);
147 return TRUE;
148}
#define TRUE
Definition: globals.hh:41

◆ FlushAndWaitExecution()

void G4Win32::FlushAndWaitExecution ( )
virtual

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

Implements G4VInteractorManager.

Definition at line 127 of file G4Win32.cc.

131{
132 MSG event;
133 while ( ::PeekMessage(&event, NULL, 0, 0, PM_REMOVE) ) {
134 ::TranslateMessage(&event);
135 ::DispatchMessage (&event);
136 }
137}

◆ GetEvent()

void * G4Win32::GetEvent ( )
virtual

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

Implements G4VInteractorManager.

Definition at line 116 of file G4Win32.cc.

120{
121 static MSG event;
122 BOOL status = ::GetMessage(&event, NULL, 0, 0);
123 if(status==FALSE) return NULL;
124 return &event;
125}
#define FALSE
Definition: globals.hh:38

◆ getInstance()

G4Win32 * G4Win32::getInstance ( )
static

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

Definition at line 43 of file G4Win32.cc.

47{
48 if (instance==NULL) {
49 instance = new G4Win32();
50 }
51 return instance;
52}

Referenced by G4UIWin32::G4UIWin32().

◆ Inited()

G4bool G4Win32::Inited ( )
virtual

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

Implements G4VInteractorManager.

Definition at line 108 of file G4Win32.cc.

112{
113 return Win32Inited;
114}

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