Geant4 11.2.2
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 *)
 
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 87 of file G4Win32.cc.

90{
91 if (this == instance) {
92 instance = NULL;
93 }
94}

Member Function Documentation

◆ DispatchWin32Event()

G4bool G4Win32::DispatchWin32Event ( void * a_event)
static

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

Definition at line 124 of file G4Win32.cc.

127{
128 ::TranslateMessage((MSG*)a_event);
129 ::DispatchMessage((MSG*)a_event);
130 return true;
131}

◆ FlushAndWaitExecution()

void G4Win32::FlushAndWaitExecution ( )
virtual

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

Implements G4VInteractorManager.

Definition at line 113 of file G4Win32.cc.

116{
117 MSG event;
118 while (::PeekMessage(&event, NULL, 0, 0, PM_REMOVE)) {
119 ::TranslateMessage(&event);
120 ::DispatchMessage(&event);
121 }
122}

◆ GetEvent()

void * G4Win32::GetEvent ( )
virtual

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

Implements G4VInteractorManager.

Definition at line 103 of file G4Win32.cc.

106{
107 static MSG event;
108 BOOL status = ::GetMessage(&event, NULL, 0, 0);
109 if (status == FALSE) return NULL;
110 return &event;
111}
#define FALSE
Definition globals.hh:38

◆ getInstance()

G4Win32 * G4Win32::getInstance ( )
static

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

Definition at line 42 of file G4Win32.cc.

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

Referenced by G4UIWin32::G4UIWin32().

◆ Inited()

G4bool G4Win32::Inited ( )
virtual

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

Implements G4VInteractorManager.

Definition at line 96 of file G4Win32.cc.

99{
100 return Win32Inited;
101}

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