Import Geant4 4.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:18:25 +02:00
parent 36c080dca6
commit 921d3b1cda
3990 changed files with 185376 additions and 82884 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4OpenInventor.hh,v 1.5.4.1 2001/06/28 19:15:48 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4OpenInventor.hh,v 1.6 2001/07/11 10:08:59 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// Guy Barrand 26 Mar 1998.
// OpenInventor graphics system factory.
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4OpenInventorSceneHandler.hh,v 1.9.4.1 2001/06/28 19:15:48 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4OpenInventorSceneHandler.hh,v 1.12 2001/08/24 21:48:32 johna Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// J Kallenbach 27th Aug 1996
@@ -57,6 +57,12 @@ public:
void AddPrimitive (const G4Polyhedron& p);
void AddPrimitive (const G4NURBS& nurb);
void AddPrimitive (const G4Polymarker&);
////////////////////////////////////////////////////////////////
// Explicitly invoke base class methods to avoid warnings about
// hiding of base class methods.
void AddPrimitive (const G4Scale& scale) {
G4VSceneHandler::AddPrimitive (scale);
}
//
// Primitives for use of HEPVis
@@ -89,6 +95,11 @@ private:
static G4int fSceneIdCount; // static counter for OpenInventor scenes.
static G4int fSceneCount; // No. of extanct scene handlers.
G4double GetMarkerSize ( const G4VMarker& mark ) ;
G4ViewParameters fLastVP; // Keeps memory of last view parameters,
// namely the ones which go with the graphical database
// (display lists). A view may interrogate this to decide if
// it needs to visit the kernel, i.e., to remake the
// graphical database.
//
// Stop-gap solution of structure re-use.
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4OpenInventorSceneHandler.icc,v 1.3.4.1 2001/06/28 19:15:48 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4OpenInventorSceneHandler.icc,v 1.4 2001/07/11 10:08:59 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// J Kallenbach 27th Aug 1996
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4OpenInventorTransform3D.hh,v 1.3.4.1 2001/06/28 19:15:48 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4OpenInventorTransform3D.hh,v 1.4 2001/07/11 10:09:00 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// jck 17 Dec 1996
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4OpenInventorViewer.hh,v 1.7.2.1 2001/06/28 19:15:48 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4OpenInventorViewer.hh,v 1.10 2001/11/14 14:56:11 barrand Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// Jeff Kallenbach 01 Aug 1996
@@ -39,7 +39,7 @@
class SoXtComponent;
class SoSelection;
class SoWindow;
class G4SoWindow;
class G4OpenInventorSceneHandler;
class G4VInteractorManager;
@@ -59,10 +59,12 @@ private:
void FinishView ();
void SetView ();
void KernelVisitDecision ();
G4bool CompareForKernelVisit(G4ViewParameters&);
G4OpenInventorSceneHandler& fSceneHandler; // Graphics Scene for this view.
G4OpenInventorSceneHandler& fG4OpenInventorSceneHandler;
G4ViewParameters fLastVP; // Memory for making kernel visit decisions.
Widget fShell;
SoWindow* fWindow;
G4SoWindow* fWindow;
SoXtComponent* fViewer; // The Inventor Viewer
SoSelection* fSelection;
G4VInteractorManager* fInteractorManager;
@@ -71,5 +73,3 @@ private:
#endif
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4OpenInventorWin32.hh,v 1.4.4.1 2001/06/28 19:15:48 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4OpenInventorWin32.hh,v 1.5 2001/07/11 10:09:00 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
// OpenInventor graphics system factory.
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4OpenInventorX.hh,v 1.4.4.1 2001/06/28 19:15:49 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4OpenInventorX.hh,v 1.5 2001/07/11 10:09:00 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// Andrew Walkden 27th March 1996
@@ -0,0 +1,59 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * 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. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
#ifndef G4SOWINDOW_h
#define G4SOWINDOW_h
#include <Inventor/Xt/SoXt.h>
#include <HEPVis/SbBasic.h>
class SbDict;
class G4SoWindow {
public:
G4SoWindow(const char*,SbBool=FALSE);
virtual ~G4SoWindow();
Widget getWidget() const;
void show();
void hide();
void setTitle(const char*);
void setSize(const SbVec2s&);
SbVec2s getSize();
void setWMClose(SbBool);
SbBool getWMClose() const;
static void clearClass();
protected:
void registerWidget(Widget);
void unregisterWidget(Widget);
static G4SoWindow* getWindow(Widget);
private:
Widget fWidget;
SbBool fWMClose;
static SbDict* fWidgetDictionary;
#ifdef HEPVisXt
static void widgetDestroyedCB(Widget,XtPointer,XtPointer);
public:
static void closeWindow(Widget,XEvent*,char**,Cardinal*);
#endif
};
#endif