Import Geant4 6.0.0 source tree
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4XXX.cc,v 1.3 2001/08/25 00:22:20 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 5th April 2001
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4XXXSceneHandler.cc,v 1.11 2003/05/30 13:01:26 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
// $Id: G4XXXSceneHandler.cc,v 1.12 2003/11/12 13:16:56 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 5th April 2001
|
||||
@@ -394,3 +394,12 @@ void G4XXXSceneHandler::EstablishSpecials
|
||||
&fpCurrentPV,
|
||||
&fpCurrentLV);
|
||||
}
|
||||
|
||||
void G4XXXSceneHandler::ClearTransientStore () {
|
||||
G4VSceneHandler::ClearTransientStore ();
|
||||
if (fpViewer) {
|
||||
fpViewer -> SetView ();
|
||||
fpViewer -> ClearView ();
|
||||
fpViewer -> DrawView ();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4XXXViewer.cc,v 1.5 2003/06/16 17:14:01 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
// $Id: G4XXXViewer.cc,v 1.6 2003/11/06 15:06:51 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
|
||||
#include "G4XXXViewer.hh"
|
||||
|
||||
@@ -53,6 +53,21 @@ void G4XXXViewer::DrawView() {
|
||||
#ifdef G4XXXDEBUG
|
||||
G4cout << "G4XXXViewer::DrawView() called." << G4endl;
|
||||
#endif
|
||||
NeedKernelVisit (); // Always need to visit G4 kernel.
|
||||
ProcessView ();
|
||||
|
||||
// First, a view should decide when to re-visit the G4 kernel.
|
||||
// Sometimes it might not be necessary, e.g., if the scene is stored
|
||||
// in a graphical database (e.g., OpenGL's display lists) and only
|
||||
// the viewing angle has changed. But graphics systems without a
|
||||
// graphical database will always need to visit the G4 kernel.
|
||||
|
||||
NeedKernelVisit (); // Default is - always visit G4 kernel.
|
||||
// Note: this routine sets the fNeedKernelVisit flag of *all* the
|
||||
// views of the scene.
|
||||
|
||||
ProcessView (); // The basic logic is here.
|
||||
|
||||
// Then a view may have more to do, e.g., display the graphical
|
||||
// database. That code should come here before finally...
|
||||
|
||||
FinishView (); // Flush streams and/or swap buffers.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user