Message: Re: GUI problems in example N03 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: GUI problems in example N03 

Forum: (Graphical) User Interfaces
Re: Question GUI problems in example N03 (Neoh)
Date: 03 Nov, 2009
From: John Allison <John Allison>

Dear Neoh,

It is a user choice. This is because only the user can know what libraries are available on his/her machine.

So you have 4 OGL possibilities.

I = "immediate mode" - the viewer draws to the screen without storing the graphical information. This is probably best for a complex detector or a view with many trajectories because memory for graphical information can become a problem. But if you want to change views the viewer has to revisit the Geant4 kernel to regenerate the view, which can be slow.

S = "stored mode" - the viewer draws and stores. The graphical information is stored in OpenGL "display lists". It forms a sort of graphical database. These display lists are often stored in the graphics hardware so to regenerate a view, say from another viewpoint, can be very fast.

X = X windows. This window is not interactive except for picking (/vis/viewer/set/picking).

Xm = Motif, an interactive layer above X Windows. This gets you some pull down menues and interaction panels, as you have noticed.

Qt = another type of interactive layer. Currently the Geant4 driver is only available in beta release. You have to install Qt.

So for a simple detector with maximum interactivity in your case:

  /vis/open OGLSXm 600x600-0+0

(the 2nd argument (optional) places it in the top right corner, otherwise the window manager puts it where it likes.)

You can open as many viewers as you like.

I would advise against trying to close the windows and panels - we are not very good at handling such events. They will be closed when you exit Geant4.

You can use X and Xm from any session, even from a terminal. For Xm you get the interactive buttons in the viewer.

The user also has a choice of user interface, which we call a session. Again, you will see from exampleN03.cc how this choice is made - it depends on environment variables that are translated into cpp (C-pre-processor) names that are queried by the #ifdef statements. Anyway, you should arrange to instantiate only one either by editing exampleN03.cc or choosing your environment.

If you choose G4UIXm you get an interactive session and access to /gui/ commands. Again, you will see from exampleN03.cc that visTutor/gui.mac is executed for you in this case, but you could, if you like, remove that line from exampleN03.cc and execute it yourself in the command window at the bottom of the Xm session.

If you want OGLSQt you must choose a G4UIQt session (and, of course, you must have Qt installed).

I hope this helps.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: GUI problems in example N03   (Neoh - 03 Nov, 2009)
(_ More: Re: GUI problems in example N03   (garnier - 03 Nov, 2009)
(_ None: Re: GUI problems in example N03   (Neoh - 03 Nov, 2009)
 Add Message Add Message
to: "Re: GUI problems in example N03"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]