Problem 202 - OGLIXm and OIX visualisation driver
Summary: OGLIXm and OIX visualisation driver
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: visualization (show other problems)
Version: other
Hardware: PC Linux
: P2 normal
Assignee: John.Allison
URL:
Depends on:
Blocks:
 
Reported: 2001-01-24 09:24 CET by ob214
Modified: 2002-03-18 05:02 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description ob214 2001-01-24 09:24:51 CET
When I use OGLIXm or OGLSXm, the menu bars title and background appear both in
white so I can't read them. If I open another window like the panning action,
the writing appears fine back on white.
I've modified the file G4OpenGLXmViewer.cc:
bgnd = XBlackPixelOfScreen (XtScreen(shell));
instead of
bgnd = XWhitePixelOfScreen (XtScreen(shell));
It works like that.

Also, when I use OIX, the viewer Hepviewer is called fine but then seems to be
frozen. I can't manipulate the picture.

Also, I tried to use /vis/set/sides to change the default number of sides of a
circle (24) to something else but it doesn't seem to work.
Comment 1 John.Allison 2001-02-06 18:42:59 CET
Dear ob214@wbic.cam.ac.uk (Oliver?),

Pleased to know someone is using our code.  The original author of
OpenGLXm has left and we who remain struggle sometimes to understand
the code.  Perhps you can help.

> When I use OGLIXm or OGLSXm, the menu bars title and background appear both in
> white so I can't read them. If I open another window like the panning action,
> the writing appears fine back on white.
> I've modified the file G4OpenGLXmViewer.cc:
> bgnd = XBlackPixelOfScreen (XtScreen(shell));
> instead of
> bgnd = XWhitePixelOfScreen (XtScreen(shell));
> It works like that.

void G4OpenGLXmViewer::CreateMainWindow () {

  bgnd = XWhitePixelOfScreen (XtScreen(shell));
  borcol = XBlackPixelOfScreen (XtScreen(shell));

On my machine (linux RedHat 6.2) all seems OK - see attached image.  As you say,
the panning action window is OK.  It's just your first window.  Do you have your
Xdefaults set so that borders are generally white on black - or v.v?

> Also, when I use OIX, the viewer Hepviewer is called fine but then seems to be
> frozen. I can't manipulate the picture.

You need to issue /vis/viewer/update to transfer control to the OIX window.

> Also, I tried to use /vis/set/sides to change the default number of sides of a
> circle (24) to something else but it doesn't seem to work.

Works for me in OpenGL.  If you are using OpenGLStored mode, you might
have to clear the scene.

All vis commands are under review.  Please be patient.
Comment 2 John.Allison 2001-11-21 10:09:59 CET
Oliver, Are you still having trouble with this?  May we close this report
pending the release Geant4 4.0 due this month?
Comment 3 John.Allison 2002-03-18 05:02:59 CET
Closing report.  No further report of problems.