Import Geant4 4.0.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4OpenGLXmViewer.cc,v 1.8.2.1 2001/06/28 19:15:47 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4OpenGLXmViewer.cc,v 1.10 2001/07/30 23:34:22 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 10th February 1997
|
||||
@@ -56,25 +56,12 @@
|
||||
#include "G4Xt.hh"
|
||||
#include <X11/Shell.h>
|
||||
|
||||
static G4ViewParameters viewingParameters;
|
||||
void G4OpenGLXmViewerSecondaryLoopPostAction ();
|
||||
|
||||
void G4OpenGLXmViewer::ShowView () {
|
||||
|
||||
viewingParameters = fVP;
|
||||
G4Xt::getInstance () -> SecondaryLoop ();
|
||||
|
||||
}
|
||||
|
||||
void G4OpenGLXmViewerSecondaryLoopPostAction ()
|
||||
{
|
||||
if(G4Xt::getInstance () -> GetExitSecondaryLoopCode ()==OGL_EXIT_CODE)
|
||||
{
|
||||
G4VisManager::GetInstance() -> SetCurrentViewParameters() = viewingParameters;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void G4OpenGLXmViewer::GetXmConnection () {
|
||||
|
||||
G4Xt* interactorManager = G4Xt::getInstance ();
|
||||
@@ -109,7 +96,7 @@ void G4OpenGLXmViewer::GetXmConnection () {
|
||||
*toplevel*primaryColorSetId: 3\n\
|
||||
*toplevel*secondaryColorSetId: 3\n\
|
||||
");
|
||||
interactorManager->AddSecondaryLoopPostAction ((G4SecondaryLoopAction)G4OpenGLXmViewerSecondaryLoopPostAction);
|
||||
// interactorManager->AddSecondaryLoopPostAction ((G4SecondaryLoopAction)G4OpenGLXmViewerSecondaryLoopPostAction);
|
||||
|
||||
shell = XtAppCreateShell ((String)fName.data(),(String)fName.data(),topLevelShellWidgetClass,XtDisplay(toplevel),NULL,0);
|
||||
interactorManager->AddShell (shell);
|
||||
|
||||
Reference in New Issue
Block a user