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

#include <G4Xt.hh>

Inheritance diagram for G4Xt:
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 ()
 
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 ~G4Xt ()
 

Static Public Member Functions

static G4XtgetInstance ()
 
static G4XtgetInstance (int, char **, char *)
 
static bool xt_dispatch_event (void *a_event)
 

Private Member Functions

 G4Xt (const G4Xt &)
 
 G4Xt (int, char **, char *)
 
G4Xtoperator= (const G4Xt &)
 

Private Attributes

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

Static Private Attributes

static G4Xtinstance = NULL
 

Detailed Description

Definition at line 48 of file G4Xt.hh.

Constructor & Destructor Documentation

◆ ~G4Xt()

G4Xt::~G4Xt ( )
virtual

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

Definition at line 132 of file G4Xt.cc.

136{
137 if(this==instance) {
138 instance = NULL;
139 }
140}
static G4Xt * instance
Definition: G4Xt.hh:65

References instance.

◆ G4Xt() [1/2]

G4Xt::G4Xt ( const G4Xt )
private

Referenced by getInstance().

◆ G4Xt() [2/2]

G4Xt::G4Xt ( int  a_argn,
char **  a_args,
char *  a_class 
)
private

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

Definition at line 77 of file G4Xt.cc.

84{
85 if(XtInited==FALSE) { //Xt should be Inited once !
86 if(a_argn!=0) { //Save args.
87 args = (char**)malloc(a_argn * sizeof(char*));
88 if(args!=NULL) {
89 argn = a_argn;
90 for(int argi=0;argi<a_argn;argi++) {
91 args[argi] = (char*)NewString (a_args[argi]);
92 }
93 }
94 }
95#if XtSpecificationRelease == 4
96 Cardinal narg;
97 narg = (Cardinal)a_argn;
98#else
99 int narg;
100 narg = a_argn;
101#endif
102 Arg xargs[1];
103 XtSetArg (xargs[0],XtNgeometry,"100x100");
104 topWidget = XtAppInitialize (&appContext,a_class,
105 NULL,(Cardinal)0,
106 &narg,a_args,NULL,
107 xargs,1);
108 if(topWidget==NULL) {
109 G4cout << "G4Xt : Unable to init Xt." << G4endl;
110 }
111 // Restore a_args. XtAppInitialize corrupts the given ones !!!
112 if( (a_argn!=0) && (args!=NULL)) {
113 for(int argi=0;argi<a_argn;argi++) {
114 if(args[argi]!=NULL)
115 strcpy(a_args[argi],args[argi]);
116 else
117 a_args[argi] = NULL;
118 }
119 }
120 // If topWidget not realized, pbs with Inventor shells.
121 XtSetMappedWhenManaged (topWidget,False);
122 XtRealizeWidget (topWidget);
123 XtInited = TRUE;
124 }
128 // Coverity gcc8 cast warning
129 // AddDispatcher ((G4DispatchFunction)XtDispatchEvent);
130}
static Widget topWidget
Definition: G4Xt.cc:53
static G4bool XtInited
Definition: G4Xt.cc:49
#define NewString(str)
Definition: G4Xt.cc:40
static XtAppContext appContext
Definition: G4Xt.cc:52
static int argn
Definition: G4Xt.cc:50
static char ** args
Definition: G4Xt.cc:51
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
#define TRUE
Definition: Globals.hh:27
#define FALSE
Definition: Globals.hh:23
void AddDispatcher(G4DispatchFunction)
void SetMainInteractor(G4Interactor)
void SetArguments(int, char **)
static bool xt_dispatch_event(void *a_event)
Definition: G4Xt.hh:58

References G4VInteractorManager::AddDispatcher(), appContext, argn, args, FALSE, G4cout, G4endl, NewString, G4VInteractorManager::SetArguments(), G4VInteractorManager::SetMainInteractor(), topWidget, TRUE, xt_dispatch_event(), and XtInited.

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().

◆ 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}
int G4int
Definition: G4Types.hh:85
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 G4Xt::FlushAndWaitExecution ( )
virtual

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

Implements G4VInteractorManager.

Definition at line 181 of file G4Xt.cc.

185{
186 if(topWidget==NULL) return;
187 XSync(XtDisplay(topWidget),False);
188}

References topWidget.

◆ 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 * G4Xt::GetEvent ( )
virtual

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

Implements G4VInteractorManager.

Definition at line 150 of file G4Xt.cc.

154{
155 static XEvent event;
156 if(appContext==NULL) return NULL;
157 if(topWidget==NULL) return NULL;
158 XtAppNextEvent (appContext, &event);
159 return &event;
160}

References appContext, and topWidget.

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

◆ GetExitSecondaryLoopCode()

G4int G4VInteractorManager::GetExitSecondaryLoopCode ( )
inherited

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

Definition at line 279 of file G4VInteractorManager.cc.

283{
284 return exitSecondaryLoop;
285}

References G4VInteractorManager::exitSecondaryLoop.

◆ getInstance() [1/2]

G4Xt * G4Xt::getInstance ( )
static

◆ getInstance() [2/2]

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

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

Definition at line 63 of file G4Xt.cc.

70{
71 if (instance==NULL) {
72 instance = new G4Xt(a_argn,a_args,a_class);
73 }
74 return instance;
75}
G4Xt(const G4Xt &)

References G4Xt(), 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 G4Xt::Inited ( )
virtual

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

Implements G4VInteractorManager.

Definition at line 142 of file G4Xt.cc.

146{
147 return XtInited;
148}

References XtInited.

◆ operator=()

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

◆ PutStringInResourceDatabase()

void G4Xt::PutStringInResourceDatabase ( char *  a_string)

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

Definition at line 162 of file G4Xt.cc.

167{
168 if(topWidget==NULL) return;
169 if(a_string==NULL) return;
170 Display* dpy = XtDisplay(topWidget);
171 XrmDatabase dbres = XrmGetStringDatabase (a_string);
172 if(dbres==NULL) return;
173 XrmDatabase database = XrmGetDatabase (dpy);
174 if(database!=NULL) {
175 XrmMergeDatabases (dbres,&database);
176 } else {
177 XrmSetDatabase (dpy,dbres);
178 }
179}

References topWidget.

Referenced by G4OpenGLXmViewer::GetXmConnection().

◆ 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::G4Qt(), and 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::G4Qt(), G4SoQt::G4SoQt(), G4Win32::G4Win32(), and 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.

◆ xt_dispatch_event()

static bool G4Xt::xt_dispatch_event ( void *  a_event)
inlinestatic

Definition at line 58 of file G4Xt.hh.

58 {
59 return XtDispatchEvent((XEvent*)a_event);
60 }

Referenced by G4Xt(), G4OpenInventorXt::Initialize(), and G4OpenInventorXtExtended::Initialize().

Field Documentation

◆ alreadyInSecondaryLoop

G4bool G4VInteractorManager::alreadyInSecondaryLoop
privateinherited

◆ argc

int G4VInteractorManager::argc
privateinherited

◆ 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

◆ instance

G4Xt * G4Xt::instance = NULL
staticprivate

Definition at line 65 of file G4Xt.hh.

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

◆ 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: