Import Geant4 10.5.0 source tree
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4OpenInventor.hh 91687 2015-07-31 09:44:16Z gcosmo $
|
||||
//
|
||||
// Guy Barrand 26 Mar 1998.
|
||||
// OpenInventor graphics system factory.
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
|
||||
// Frederick Jones TRIUMF 07 November 2017
|
||||
|
||||
|
||||
#ifndef G4OPENINVENTORQT_HH
|
||||
#define G4OPENINVENTORQT_HH
|
||||
|
||||
#ifdef G4VIS_BUILD_OIQT_DRIVER
|
||||
|
||||
#include "G4OpenInventor.hh"
|
||||
|
||||
class G4OpenInventorQt: public G4OpenInventor {
|
||||
public:
|
||||
G4OpenInventorQt();
|
||||
virtual ~G4OpenInventorQt ();
|
||||
G4VViewer* CreateViewer(G4VSceneHandler&,const G4String& name = "");
|
||||
private:
|
||||
virtual void Initialize();
|
||||
private:
|
||||
bool fInited;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,90 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
|
||||
// Frederick Jones TRIUMF 07 January 2018
|
||||
|
||||
|
||||
#ifndef G4OPENINVENTORQTEXAMINERVIEWER_HH
|
||||
#define G4OPENINVENTORQTEXAMINERVIEWER_HH
|
||||
|
||||
#ifdef G4VIS_BUILD_OIQT_DRIVER
|
||||
|
||||
//#include <map>
|
||||
//#include <vector>
|
||||
//#include <fstream>
|
||||
//#include <Inventor/SbLinear.h>
|
||||
//#include <Inventor/nodes/SoLineSet.h>
|
||||
#include <Inventor/nodes/SoEventCallback.h>
|
||||
#include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
|
||||
#include <Inventor/events/SoKeyboardEvent.h>
|
||||
|
||||
class SoCoordinate3;
|
||||
class SoFont;
|
||||
class SoText2;
|
||||
class SoPointSet;
|
||||
|
||||
class G4OpenInventorQtExaminerViewer : public SoQtExaminerViewer {
|
||||
|
||||
// friend class G4OpenInventorQtExaminerViewerMessenger;
|
||||
// FWJ
|
||||
friend class G4OpenInventorQtViewer;
|
||||
|
||||
private:
|
||||
|
||||
static G4OpenInventorQtExaminerViewer* viewer;
|
||||
// void (*escapeCallback)(void *);
|
||||
// void * examinerObject;
|
||||
// SbBool lshiftdown, rshiftdown, lctrldown, rctrldown;
|
||||
|
||||
public:
|
||||
|
||||
// Same constructor as the SoQtExaminerViewer
|
||||
G4OpenInventorQtExaminerViewer(QWidget* parent = NULL,
|
||||
const char* name = NULL,
|
||||
SbBool embed = TRUE,
|
||||
SoQtFullViewer::BuildFlag flag = BUILD_ALL,
|
||||
SoQtViewer::Type type = BROWSER);
|
||||
|
||||
~G4OpenInventorQtExaminerViewer();
|
||||
|
||||
protected:
|
||||
// FWJ why this?
|
||||
// Same constructor as the SoQtExaminerViewer
|
||||
// G4OpenInventorQtExaminerViewer(QWidget parent,
|
||||
// const char *name,
|
||||
// SbBool embed,
|
||||
// SoQtFullViewer::BuildFlag flag,
|
||||
// SoQtViewer::Type type,
|
||||
// SbBool build);
|
||||
|
||||
// FWJ try to handle events as in XtExaminerViewer
|
||||
SbBool processSoEvent(const SoEvent* const event);
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* G4OPENINVENTORQTEXAMINERVIEWER_HH */
|
||||
@@ -0,0 +1,90 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
|
||||
// Frederick Jones TRIUMF 07 November 2017
|
||||
// Open Inventor viewer using SoQt.
|
||||
|
||||
#ifndef G4OPENINVENTORQTVIEWER_HH
|
||||
#define G4OPENINVENTORQTVIEWER_HH
|
||||
|
||||
#ifdef G4VIS_BUILD_OIQT_DRIVER
|
||||
|
||||
// Inheritance :
|
||||
#include "G4OpenInventorViewer.hh"
|
||||
|
||||
// This causes clash with enum CursorShape in qnamespace.h !
|
||||
//#include <X11/Intrinsic.h>
|
||||
|
||||
#include <Inventor/nodes/SoEventCallback.h>
|
||||
|
||||
//class SoQtExaminerViewer;
|
||||
class G4OpenInventorQtExaminerViewer;
|
||||
|
||||
class G4OpenInventorQtViewer: public G4OpenInventorViewer {
|
||||
public:
|
||||
G4OpenInventorQtViewer(G4OpenInventorSceneHandler& scene,
|
||||
const G4String& name = "");
|
||||
virtual ~G4OpenInventorQtViewer();
|
||||
void Initialise();
|
||||
public: //G4VViewer
|
||||
virtual void FinishView();
|
||||
virtual void SetView();
|
||||
protected:
|
||||
virtual void ViewerRender();
|
||||
virtual SoCamera* GetCamera();
|
||||
|
||||
protected:
|
||||
|
||||
//SoQtExaminerViewer* fViewer;
|
||||
G4OpenInventorQtExaminerViewer* fViewer;
|
||||
|
||||
// FWJ from OpenInventorXtViewer.hh
|
||||
// Widget AddMenu(Widget,const G4String&,const G4String&);
|
||||
// void AddButton(Widget,const G4String&,XtCallbackProc);
|
||||
// static void PostScriptCbk(Widget,XtPointer,XtPointer);
|
||||
// static void PixmapPostScriptCbk(Widget,XtPointer,XtPointer);
|
||||
// static void WriteInventorCbk(Widget,XtPointer,XtPointer);
|
||||
// static void EscapeCbk(Widget,XtPointer,XtPointer);
|
||||
// static void SceneGraphStatisticsCbk(Widget,XtPointer,XtPointer);
|
||||
// static void EraseDetectorCbk(Widget,XtPointer,XtPointer);
|
||||
// static void EraseEventCbk(Widget,XtPointer,XtPointer);
|
||||
// static void SetSolidCbk(Widget,XtPointer,XtPointer);
|
||||
// static void SetWireFrameCbk(Widget,XtPointer,XtPointer);
|
||||
// static void SetReducedWireFrameCbk(Widget,XtPointer,XtPointer);
|
||||
// static void SetFullWireFrameCbk(Widget,XtPointer,XtPointer);
|
||||
// static void UpdateSceneCbk(Widget,XtPointer,XtPointer);
|
||||
// static void HelpCbk(Widget,XtPointer,XtPointer);
|
||||
// static void HelpCancelCbk(Widget,XtPointer,XtPointer);
|
||||
// static void SetPreviewCbk(Widget,XtPointer,XtPointer);
|
||||
// static void SetPreviewAndFullCbk(Widget,XtPointer,XtPointer);
|
||||
// Widget fShell;
|
||||
// Widget fHelpForm;
|
||||
// Widget fHelpForm;
|
||||
// Widget fHelpText;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4OpenInventorSceneHandler.hh 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
//
|
||||
// J Kallenbach 27th Aug 1996
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4OpenInventorTransform3D.hh 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
//
|
||||
// jck 17 Dec 1996
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4OpenInventorWin.hh 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
// OpenInventor graphics system factory.
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4OpenInventorWin32.hh 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
// OpenInventor graphics system factory.
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4OpenInventorWinViewer.hh 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
//
|
||||
// Jeff Kallenbach 01 Aug 1996
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4OpenInventorX.hh 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 27th March 1996
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4OpenInventorXt.hh 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 27th March 1996
|
||||
|
||||
@@ -337,6 +337,7 @@ private:
|
||||
int rotCnt; // # of steps rotation is split into
|
||||
|
||||
static void getViewPtNameCB(Widget, XtPointer, XtPointer);
|
||||
static void getViewPtNameCancelCB(Widget, XtPointer, XtPointer);
|
||||
std::string viewPtAutoName();
|
||||
|
||||
////////////////////////ANIM_SPEED_INDICATOR///////////////////////
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4OpenInventorXt.hh,v 1.3 2006-06-29 21:20:38 gunter Exp $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 27th March 1996
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4OpenInventorXtViewer.hh 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
//
|
||||
// Jeff Kallenbach 01 Aug 1996
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// F.W. Jones 05012018
|
||||
|
||||
#ifndef G4SOQT_HH
|
||||
#define G4SOQT_HH
|
||||
|
||||
#if defined(G4VIS_BUILD_OIQT_DRIVER)
|
||||
//#if defined(G4INTY_BUILD_QT) || defined(G4INTY_USE_QT)
|
||||
|
||||
#include "G4VInteractorManager.hh"
|
||||
|
||||
class QWidget;
|
||||
class QString;
|
||||
|
||||
// Class description :
|
||||
//
|
||||
// G4SoQt : a singleton to handle Open Inventor visualization
|
||||
// drivers built over Qt. It permits to have one Qt main loop for
|
||||
// the whole application. The SoQt toolkit is inited in the
|
||||
// constructor. It is done once for the whole application.
|
||||
//
|
||||
// Class description - end :
|
||||
|
||||
class G4SoQt : public G4VInteractorManager {
|
||||
public:
|
||||
static G4SoQt* getInstance();
|
||||
// FWJ no command line args for time being
|
||||
// static G4SoQt* getInstance(int, char**, char*);
|
||||
G4bool Inited();
|
||||
void* GetEvent();
|
||||
void FlushAndWaitExecution();
|
||||
void SecondaryLoop();
|
||||
virtual ~G4SoQt();
|
||||
bool IsExternalApp();
|
||||
|
||||
private:
|
||||
G4SoQt(const G4SoQt&);
|
||||
G4SoQt();
|
||||
// G4SoQt(int, char**, char*);
|
||||
G4SoQt& operator=(const G4SoQt&);
|
||||
static G4SoQt* instance; // Pointer to single instance.
|
||||
// int argn;
|
||||
// char** args;
|
||||
bool externalApp;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VisFeaturesOfOpenInventor.hh 66264 2012-12-14 10:17:44Z allison $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: SbMath.h 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
#ifndef HEPVis_SbMath_h
|
||||
#define HEPVis_SbMath_h
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: SoDetectorTreeKit.h 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
/*-----------------------------HEPVis----------------------------------------*/
|
||||
/* */
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: SoBox.h 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
/*-----------------------------Hepvis----------------------------------------*/
|
||||
/* */
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: SoCons.h 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
/*-----------------------------Hepvis----------------------------------------*/
|
||||
/* */
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: SoTrap.h 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
/*-----------------------------Hepvis----------------------------------------*/
|
||||
/* */
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: SoTrd.h 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
/*-----------------------------Hepvis----------------------------------------*/
|
||||
/* */
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: SoTubs.h 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
/*-----------------------------Hepvis----------------------------------------*/
|
||||
/* */
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: SoG4LineSet.h 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
// John Allison 26th October 2006
|
||||
// Extended SoLineSet to include G4Atts.
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: SoG4MarkerSet.h 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
// John Allison 26th October 2006
|
||||
// Extended SoMarkerSet to include G4Atts.
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: SoG4Polyhedron.h 66373 2012-12-18 09:41:34Z gcosmo $
|
||||
//
|
||||
// John Allison 26th October 2006
|
||||
// Extended Geant4_SoPolyhedron to include G4Atts.
|
||||
|
||||
Reference in New Issue
Block a user