Message: Problem with examples using OpenGLStore and Visual C++ Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Note Problem with examples using OpenGLStore and Visual C++ 

Forum: Documentation and Examples
Date: 09 Jan, 2014
From: John Watts <John Watts>

For some of the examples using OpenGLStoreQt the detector is not displayed and the list of touchable on the left only shows the "World" volume. (This appears to be specific to VisualC++. I don't see it on my Scientific Linux machine.)

In example B4a when I do:

/vis/geometry/list

I get:

Logical Volume "World": vis attributes:
G4VisAttributes: visible, daughters invisible, colour: (-1.68976e+299,4.55526e-304,1.14503e-125,-1.15056e+297)
  linestyle: unrecognised, line width: 1.14503e-125
  drawing style: forced to: unrecognized, auxiliary edge visibility: forced
  line segments per circle: forced to 15990152
  time range: (1.14503e-125,-8.05742e+292)
  G4AttValue pointer is non-zero, G4AttDef pointer is non-zero
Logical Volume "Calorimeter": vis attributes:
G4VisAttributes: visible, daughters visible, colour: (1,1,1,1) (white)
  linestyle: solid, line width: 1
  drawing style: not forced, auxiliary edge visibility: not forced
  line segments per circle: not forced.
  time range: (-1.79769e+308,1.79769e+308)
  G4AttValue pointer is zero, G4AttDef pointer is zero
Logical Volume "Layer": vis attributes:
G4VisAttributes:  zero G4VisAttributes pointer
Logical Volume "Abso": vis attributes:
G4VisAttributes:  zero G4VisAttributes pointer
Logical Volume "Gap": vis attributes:
G4VisAttributes:  zero G4VisAttributes pointer

The problem was fixed by replacing line 265 of B4DetectorConstruction.cc by:

  worldLV->SetVisAttributes (new G4VisAttributes(false,G4Colour::White()));

which defines a color for the world volume.

I am using Geant4.10.00, VisualC++10, and Qt4.8.4 under 64-bit Windows 7.

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

1 None: Re: Problem with examples using OpenGLStore and Visual C++   (John Allison - 16 Jan, 2014)
(_ None: Re: Problem with examples using OpenGLStore and Visual C++   (John Allison - 16 Jan, 2014)
(_ None: Re: Problem with examples using OpenGLStore and Visual C++   (John Watts - 16 Jan, 2014)
 Add Message Add Message
to: "Problem with examples using OpenGLStore and Visual C++"

 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 ]