Import Geant4 11.0.0 source tree
This commit is contained in:
committed by
Ben Morgan
parent
6399a014b6
commit
80e2389dd8
@@ -29,8 +29,6 @@
|
||||
// Class G4OpenGLStoredQtViewer : a class derived from G4OpenGLQtViewer and
|
||||
// G4OpenGLStoredViewer.
|
||||
|
||||
#ifdef G4VIS_BUILD_OPENGLQT_DRIVER
|
||||
|
||||
#include "G4OpenGLStoredQtViewer.hh"
|
||||
|
||||
#include "G4OpenGLStoredSceneHandler.hh"
|
||||
@@ -103,6 +101,8 @@ void G4OpenGLStoredQtViewer::initializeGL () {
|
||||
// Set the component visible
|
||||
// setVisible(true) ;
|
||||
|
||||
// Set jpg as default export format for Qt viewer
|
||||
setExportImageFormat("jpg");
|
||||
}
|
||||
|
||||
G4bool G4OpenGLStoredQtViewer::CompareForKernelVisit(G4ViewParameters& lastVP)
|
||||
@@ -121,13 +121,15 @@ G4bool G4OpenGLStoredQtViewer::CompareForKernelVisit(G4ViewParameters& lastVP)
|
||||
(lastVP.IsCullingCovered () != fVP.IsCullingCovered ()) ||
|
||||
(lastVP.GetCBDAlgorithmNumber() !=
|
||||
fVP.GetCBDAlgorithmNumber()) ||
|
||||
// Note: Section and Cutaway can reveal back-facing faces. If
|
||||
// backface culling is implemented, the image can look strange because
|
||||
// the back-facing faces are not there. For the moment, we have disabled
|
||||
// (commented out) backface culling (it seems not to affect performance -
|
||||
// in fact, performance seems to improve), so there is no problem.
|
||||
(lastVP.IsSection () != fVP.IsSection ()) ||
|
||||
// Section (DCUT) implemented locally. But still need to visit
|
||||
// kernel if status changes so that back plane culling can be
|
||||
// switched.
|
||||
(lastVP.IsCutaway () != fVP.IsCutaway ()) ||
|
||||
// Cutaways implemented locally. But still need to visit kernel
|
||||
// if status changes so that back plane culling can be switched.
|
||||
// Section (DCUT) is NOT implemented locally so we need to visit the kernel.
|
||||
// (lastVP.IsCutaway () != fVP.IsCutaway ()) ||
|
||||
// Cutaways are implemented locally so we do not need to visit the kernel.
|
||||
(lastVP.IsExplode () != fVP.IsExplode ()) ||
|
||||
(lastVP.GetNoOfSides () != fVP.GetNoOfSides ()) ||
|
||||
(lastVP.GetGlobalMarkerScale() != fVP.GetGlobalMarkerScale()) ||
|
||||
@@ -451,5 +453,3 @@ G4Colour& c,
|
||||
size_t poIndex) {
|
||||
c = getColorForPoIndex(poIndex);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user