Geant4-11
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
G4Qt Class Reference

#include <G4Qt.hh>

Inheritance diagram for G4Qt:
G4VInteractorManager

Public Member Functions

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

Static Public Member Functions

static G4QtgetInstance ()
 
static G4QtgetInstance (int, char **, char *)
 

Private Member Functions

 G4Qt (const G4Qt &)
 
 G4Qt (int, char **, char *)
 
G4Qtoperator= (const G4Qt &)
 

Private Attributes

G4bool alreadyInSecondaryLoop
 
int argc
 
int argn
 
char ** args
 
char ** argv
 
G4Interactor createdInteractor
 
char * creationString
 
std::vector< G4DispatchFunctiondispatchers
 
int exitSecondaryLoop
 
bool externalApp
 
G4Interactor mainInteractor
 
G4Interactor parentInteractor
 
std::vector< G4SecondaryLoopActionpostActions
 
std::vector< G4SecondaryLoopActionpreActions
 
G4bool secondaryLoopEnabled
 
std::vector< G4Interactorshells
 

Static Private Attributes

static G4Qtinstance = NULL
 

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}
static G4Qt * instance
Definition: G4Qt.hh:63

References instance.

◆ G4Qt() [1/2]

G4Qt::G4Qt ( const G4Qt )
private

Referenced by getInstance().

◆ G4Qt() [2/2]

G4Qt::G4Qt ( int  a_argn,
char **  a_args,
char *   
)
private

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

Definition at line 73 of file G4Qt.cc.

80{
81 argn = 0;
82 args = NULL;
83 externalApp = false;
84
85 // Check if Qt already init in another external app
86 if(qApp) {
87 externalApp = true;
88 QtInited = TRUE;
89 SetMainInteractor (qApp);
90 SetArguments (a_argn,a_args);
91
92 } else {
93
94 if(QtInited==FALSE) { //Qt should be Inited once !
95 // Then two cases :
96 // - It is the first time we create G4UI (argc!=0)
97 // -> Inited and register
98 // - It is the first time we create G4VIS (argc == 0)
99 // -> Inited and NOT register
100
101 if (a_argn != 0) {
102 argn = a_argn;
103 args = a_args;
104
105 } else { //argc = 0
106
107 // FIXME : That's not the good arguments, but I don't know how to get args from other Interactor.
108 // Ex: How to get them from G4Xt ?
109 argn = 1;
110 args = (char **)malloc( 1 * sizeof(char *) );
111 args[0] = (char *)malloc(10 * sizeof(char));
112 strncpy(args[0], "my_app \0", 9);
113 }
114
115 int *p_argn = (int*)malloc(sizeof(int));
116 *p_argn = argn;
117#ifdef WIN32
118 qApp->setAttribute( Qt::AA_UseDesktopOpenGL );
119#endif
120
121#ifdef G4VIS_USE_VTK_QT
122 QSurfaceFormat::setDefaultFormat(QVTKOpenGLNativeWidget::defaultFormat());
123#endif
124 new QApplication (*p_argn, args);
125 if(!qApp) {
126
128 G4int verbose = UImanager->GetVerboseLevel();
129 if (verbose >= 2) {
130 G4cout << "G4Qt : Unable to init Qt." << G4endl;
131 }
132 } else {
133 QtInited = TRUE;
134 if (a_argn != 0) {
135 SetMainInteractor (qApp);
136 }
137 SetArguments (a_argn,a_args);
138 }
139 }
140 }
141 // AddDispatcher ((G4DispatchFunction)XtDispatchEvent);
142
143 /*
144 * On some non-English locale, comma is used for the decimal separator instead of dot
145 * bringing to weird behavior of strtod (string to double) function in user application.
146 * This is "by design" from Qt, see https://bugreports.qt-project.org/browse/QTBUG-10994
147 *
148 * $ LC_NUMERIC=fr_FR.UTF-8 ./qtstrtod
149 * strtod(0.1) = 0
150 * $ LC_NUMERIC=C ./qtstrtod
151 * strtod(0.1) = 0.1
152 *
153 * Jerome Suhard, jerome@suhard.fr
154 */
155
156 // explicitly set the LC_NUMBERIC locale to "C"
157 setlocale (LC_NUMERIC, "C");
158}
static G4bool QtInited
Definition: G4Qt.cc:48
int G4int
Definition: G4Types.hh:85
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
#define TRUE
Definition: Globals.hh:27
#define FALSE
Definition: Globals.hh:23
char ** args
Definition: G4Qt.hh:65
bool externalApp
Definition: G4Qt.hh:66
int argn
Definition: G4Qt.hh:64
G4int GetVerboseLevel() const
Definition: G4UImanager.hh:200
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:77
void SetMainInteractor(G4Interactor)
void SetArguments(int, char **)

References argn, args, externalApp, FALSE, G4cout, G4endl, G4UImanager::GetUIpointer(), G4UImanager::GetVerboseLevel(), QtInited, G4VInteractorManager::SetArguments(), G4VInteractorManager::SetMainInteractor(), and TRUE.

Member Function Documentation

◆ AddDispatcher()

void G4VInteractorManager::AddDispatcher ( G4DispatchFunction  a_dispatcher)
inherited

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

Definition at line 150 of file G4VInteractorManager.cc.

155{
156 if(a_dispatcher==NULL) return;
157 if(std::find(dispatchers.begin(),dispatchers.end(),a_dispatcher)!=dispatchers.end()) return;
158 dispatchers.push_back(a_dispatcher);
159}
std::vector< G4DispatchFunction > dispatchers

References G4VInteractorManager::dispatchers.

Referenced by G4Win32::G4Win32(), and G4Xt::G4Xt().

◆ AddSecondaryLoopPostAction()

void G4VInteractorManager::AddSecondaryLoopPostAction ( G4SecondaryLoopAction  a_postAction)
inherited

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

Definition at line 214 of file G4VInteractorManager.cc.

219{
220 if(a_postAction==NULL) return;
221 if(std::find(postActions.begin(),postActions.end(),a_postAction)!=postActions.end()) return;
222 postActions.push_back(a_postAction);
223}
std::vector< G4SecondaryLoopAction > postActions

References G4VInteractorManager::postActions.

◆ AddSecondaryLoopPreAction()

void G4VInteractorManager::AddSecondaryLoopPreAction ( G4SecondaryLoopAction  a_preAction)
inherited

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

Definition at line 192 of file G4VInteractorManager.cc.

197{
198 if(a_preAction==NULL) return;
199 if(std::find(preActions.begin(),preActions.end(),a_preAction)!=preActions.end()) return;
200 preActions.push_back(a_preAction);
201}
std::vector< G4SecondaryLoopAction > preActions

References G4VInteractorManager::preActions.

◆ AddShell()

void G4VInteractorManager::AddShell ( G4Interactor  a_shell)
inherited

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

Definition at line 287 of file G4VInteractorManager.cc.

292{
293 if(a_shell==NULL) return;
294 if(std::find(shells.begin(),shells.end(),a_shell)!=shells.end()) return;
295 shells.push_back(a_shell);
296}
std::vector< G4Interactor > shells

References G4VInteractorManager::shells.

Referenced by G4OpenGLXmViewer::GetXmConnection(), G4OpenInventorWinViewer::Initialise(), G4OpenInventorXtExtendedViewer::Initialise(), and G4OpenInventorXtViewer::Initialise().

◆ DisableSecondaryLoop()

void G4VInteractorManager::DisableSecondaryLoop ( )
inherited

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

Definition at line 142 of file G4VInteractorManager.cc.

References FALSE, and G4VInteractorManager::secondaryLoopEnabled.

Referenced by G4UIQt::SessionStart(), G4UIXm::SessionStart(), and G4UIWin32::SessionStart().

◆ DispatchEvent()

void G4VInteractorManager::DispatchEvent ( void *  a_event)
inherited

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

Definition at line 176 of file G4VInteractorManager.cc.

181{
182 G4int dispatchern = dispatchers.size();
184 for(G4int count=0;count<dispatchern;count++) {
185 func = dispatchers[count];
186 if(func!=NULL) {
187 if(func(a_event)==true) return;
188 }
189 }
190}
G4bool(* G4DispatchFunction)(void *)

References G4VInteractorManager::dispatchers.

Referenced by G4UIXm::GetHelpChoice(), G4UIWin32::GetHelpChoice(), G4VInteractorManager::SecondaryLoop(), G4UIWin32::SecondaryLoop(), G4UIXm::SecondaryLoop(), G4UIXm::SessionStart(), and G4UIWin32::SessionStart().

◆ EnableSecondaryLoop()

void G4VInteractorManager::EnableSecondaryLoop ( )
inherited

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

Definition at line 134 of file G4VInteractorManager.cc.

138{
140}

References G4VInteractorManager::secondaryLoopEnabled, and TRUE.

Referenced by G4UIQt::SessionStart(), G4UIXm::SessionStart(), and G4UIWin32::SessionStart().

◆ 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 G4UIQt::CommandEnteredCallback(), and G4ToolsSGQtViewer::Initialise().

◆ GetArguments()

char ** G4VInteractorManager::GetArguments ( int *  a_argc)
inherited

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

Definition at line 107 of file G4VInteractorManager.cc.

112{
113 if(a_argc!=NULL) *a_argc = argc;
114 return argv;
115}

References G4VInteractorManager::argc, and G4VInteractorManager::argv.

◆ GetCreatedInteractor()

G4Interactor G4VInteractorManager::GetCreatedInteractor ( )
inherited

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

Definition at line 339 of file G4VInteractorManager.cc.

343{
344 return createdInteractor;
345}

References G4VInteractorManager::createdInteractor.

◆ GetCreationString()

char * G4VInteractorManager::GetCreationString ( )
inherited

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

Definition at line 356 of file G4VInteractorManager.cc.

360{
361 return creationString;
362}

References G4VInteractorManager::creationString.

Referenced by G4OpenInventorWinViewer::Initialise(), G4OpenInventorXtExtendedViewer::Initialise(), and G4OpenInventorXtViewer::Initialise().

◆ GetEvent()

void * G4Qt::GetEvent ( )
virtual

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

Implements G4VInteractorManager.

Definition at line 178 of file G4Qt.cc.

182{
183 return 0;
184}

◆ GetExitSecondaryLoopCode()

G4int G4VInteractorManager::GetExitSecondaryLoopCode ( )
inherited

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

Definition at line 279 of file G4VInteractorManager.cc.

283{
284 return exitSecondaryLoop;
285}

References G4VInteractorManager::exitSecondaryLoop.

◆ getInstance() [1/2]

G4Qt * G4Qt::getInstance ( )
static

◆ 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}
G4Qt(const G4Qt &)

References G4Qt(), and instance.

◆ GetMainInteractor()

G4Interactor G4VInteractorManager::GetMainInteractor ( )
inherited

◆ GetParentInteractor()

G4Interactor G4VInteractorManager::GetParentInteractor ( )
inherited

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

Definition at line 322 of file G4VInteractorManager.cc.

326{
327 return parentInteractor;
328}

References G4VInteractorManager::parentInteractor.

Referenced by G4OpenInventorWinViewer::Initialise(), G4OpenInventorXtExtendedViewer::Initialise(), and G4OpenInventorXtViewer::Initialise().

◆ Inited()

G4bool G4Qt::Inited ( )
virtual

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

Implements G4VInteractorManager.

Definition at line 170 of file G4Qt.cc.

174{
175 return QtInited;
176}

References QtInited.

◆ IsExternalApp()

bool G4Qt::IsExternalApp ( )

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

Definition at line 196 of file G4Qt.cc.

200{
201 return externalApp;
202}

References externalApp.

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

◆ operator=()

G4Qt & G4Qt::operator= ( const G4Qt )
private

◆ PutStringInResourceDatabase()

void G4VInteractorManager::PutStringInResourceDatabase ( char *  )
inherited

◆ RemoveDispatcher()

void G4VInteractorManager::RemoveDispatcher ( G4DispatchFunction  a_dispatcher)
inherited

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

Definition at line 161 of file G4VInteractorManager.cc.

166{
167 std::vector<G4DispatchFunction>::iterator it;
168 for (it = dispatchers.begin(); it != dispatchers.end(); it++) {
169 if (*it == a_dispatcher) {
170 dispatchers.erase(it);
171 break;
172 }
173 }
174}

References G4VInteractorManager::dispatchers.

◆ RemoveShell()

void G4VInteractorManager::RemoveShell ( G4Interactor  a_shell)
inherited

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

Definition at line 298 of file G4VInteractorManager.cc.

303{
304 std::vector<G4Interactor>::iterator it;
305 for (it = shells.begin(); it != shells.end(); it++) {
306 if (*it == a_shell) {
307 shells.erase(it);
308 break;
309 }
310 }
311}

References G4VInteractorManager::shells.

Referenced by G4OpenGLXmViewer::~G4OpenGLXmViewer(), G4OpenInventorWinViewer::~G4OpenInventorWinViewer(), G4OpenInventorXtExtendedViewer::~G4OpenInventorXtExtendedViewer(), and G4OpenInventorXtViewer::~G4OpenInventorXtViewer().

◆ RequireExitSecondaryLoop()

void G4VInteractorManager::RequireExitSecondaryLoop ( int  a_code)
inherited

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

Definition at line 265 of file G4VInteractorManager.cc.

270{
271 if(secondaryLoopEnabled==FALSE) return;
272 if(a_code==0) a_code = 1;
273 exitSecondaryLoop = a_code;
275 // for(G4int count=0;count<shelln;count++) XWidgetIconify(shells[count]);
276 // if(shelln!=0) XSync(XtDisplay(topWidget),False);
277}

References G4VInteractorManager::alreadyInSecondaryLoop, G4VInteractorManager::exitSecondaryLoop, FALSE, and G4VInteractorManager::secondaryLoopEnabled.

Referenced by G4OpenInventorViewer::Escape().

◆ SecondaryLoop()

void G4VInteractorManager::SecondaryLoop ( )
virtualinherited

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

Reimplemented in G4SoQt.

Definition at line 236 of file G4VInteractorManager.cc.

240{
241 if(Inited()==FALSE) return;
242
243 if(secondaryLoopEnabled==FALSE) return;
244
246 G4cout << "------------------------------------------" << G4endl;
247 G4cout << "You have entered a viewer secondary X event loop." << G4endl;
248 G4cout << "Quit it with an 'Escape' viewer button" << G4endl;
252 //for(G4int count=0;count<shelln;count++) XWidgetUniconify(shells[count]);
253 void* event;
254 while(1) {
255 event = GetEvent();
256 if(event==NULL) break;
257 DispatchEvent (event);
258 if(exitSecondaryLoop!=0) break;
259 }
260 G4cout << "Secondary X event loop exited." << G4endl;
262 }
263}
virtual void * GetEvent()=0
virtual G4bool Inited()=0

References G4VInteractorManager::alreadyInSecondaryLoop, G4VInteractorManager::DispatchEvent(), G4VInteractorManager::exitSecondaryLoop, FALSE, G4cout, G4endl, G4VInteractorManager::GetEvent(), G4VInteractorManager::Inited(), G4VInteractorManager::secondaryLoopEnabled, G4VInteractorManager::SecondaryLoopPostActions(), G4VInteractorManager::SecondaryLoopPreActions(), and TRUE.

◆ SecondaryLoopPostActions()

void G4VInteractorManager::SecondaryLoopPostActions ( )
inherited

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

Definition at line 225 of file G4VInteractorManager.cc.

229{
230 G4int postActionn = postActions.size();
231 for(G4int count=0;count<postActionn;count++) {
232 if(postActions[count]!=NULL) postActions[count]();
233 }
234}

References G4VInteractorManager::postActions.

Referenced by G4VInteractorManager::SecondaryLoop().

◆ SecondaryLoopPreActions()

void G4VInteractorManager::SecondaryLoopPreActions ( )
inherited

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

Definition at line 203 of file G4VInteractorManager.cc.

207{
208 G4int preActionn = preActions.size();
209 for(G4int count=0;count<preActionn;count++) {
210 if(preActions[count]!=NULL) preActions[count]();
211 }
212}

References G4VInteractorManager::preActions.

Referenced by G4VInteractorManager::SecondaryLoop().

◆ SetArguments()

void G4VInteractorManager::SetArguments ( int  a_argc,
char **  a_argv 
)
inherited

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

Definition at line 79 of file G4VInteractorManager.cc.

85{
86 // Free previous values.
87 if(argv!=NULL) {
88 for(G4int argi=0;argi<argc;argi++) {
89 if(argv[argi]!=NULL) free(argv[argi]);
90 }
91 free(argv);
92 }
93 argv = NULL;
94 argc = 0;
95 // Set new values.
96 if(a_argc!=0) {
97 argv = (char**)malloc(a_argc * sizeof(char*));
98 if(argv!=NULL) {
99 argc = a_argc;
100 for(G4int argi=0;argi<a_argc;argi++) {
101 argv[argi] = (char*)NewString (a_argv[argi]);
102 }
103 }
104 }
105}
#define NewString(str)

References G4VInteractorManager::argc, G4VInteractorManager::argv, free, and NewString.

Referenced by G4Qt(), and G4Xt::G4Xt().

◆ SetCreatedInteractor()

void G4VInteractorManager::SetCreatedInteractor ( G4Interactor  a_interactor)
inherited

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

Definition at line 330 of file G4VInteractorManager.cc.

335{
336 createdInteractor = a_interactor;
337}

References G4VInteractorManager::createdInteractor.

Referenced by G4OpenInventorQtViewer::Initialise(), G4OpenInventorWinViewer::Initialise(), G4OpenInventorXtExtendedViewer::Initialise(), and G4OpenInventorXtViewer::Initialise().

◆ SetCreationString()

void G4VInteractorManager::SetCreationString ( char *  a_string)
inherited

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

Definition at line 347 of file G4VInteractorManager.cc.

352{
353 creationString = a_string;
354}

References G4VInteractorManager::creationString.

◆ SetMainInteractor()

void G4VInteractorManager::SetMainInteractor ( G4Interactor  a_main)
inherited

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

Definition at line 117 of file G4VInteractorManager.cc.

122{
123 mainInteractor = a_main;
124}

References G4VInteractorManager::mainInteractor.

Referenced by G4Qt(), G4SoQt::G4SoQt(), G4Win32::G4Win32(), and G4Xt::G4Xt().

◆ SetParentInteractor()

void G4VInteractorManager::SetParentInteractor ( G4Interactor  a_interactor)
inherited

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

Definition at line 313 of file G4VInteractorManager.cc.

318{
319 parentInteractor = a_interactor;
320}

References G4VInteractorManager::parentInteractor.

Field Documentation

◆ alreadyInSecondaryLoop

G4bool G4VInteractorManager::alreadyInSecondaryLoop
privateinherited

◆ argc

int G4VInteractorManager::argc
privateinherited

◆ argn

int G4Qt::argn
private

Definition at line 64 of file G4Qt.hh.

Referenced by G4Qt().

◆ args

char** G4Qt::args
private

Definition at line 65 of file G4Qt.hh.

Referenced by G4Qt().

◆ argv

char** G4VInteractorManager::argv
privateinherited

◆ createdInteractor

G4Interactor G4VInteractorManager::createdInteractor
privateinherited

◆ creationString

char* G4VInteractorManager::creationString
privateinherited

◆ dispatchers

std::vector<G4DispatchFunction> G4VInteractorManager::dispatchers
privateinherited

◆ exitSecondaryLoop

int G4VInteractorManager::exitSecondaryLoop
privateinherited

◆ externalApp

bool G4Qt::externalApp
private

Definition at line 66 of file G4Qt.hh.

Referenced by G4Qt(), and IsExternalApp().

◆ instance

G4Qt * G4Qt::instance = NULL
staticprivate

Definition at line 63 of file G4Qt.hh.

Referenced by getInstance(), and ~G4Qt().

◆ mainInteractor

G4Interactor G4VInteractorManager::mainInteractor
privateinherited

◆ parentInteractor

G4Interactor G4VInteractorManager::parentInteractor
privateinherited

◆ postActions

std::vector<G4SecondaryLoopAction> G4VInteractorManager::postActions
privateinherited

◆ preActions

std::vector<G4SecondaryLoopAction> G4VInteractorManager::preActions
privateinherited

◆ secondaryLoopEnabled

G4bool G4VInteractorManager::secondaryLoopEnabled
privateinherited

◆ shells

std::vector<G4Interactor> G4VInteractorManager::shells
privateinherited

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