Import Geant4 1.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:28:20 +02:00
parent aaa409b6ee
commit ca1c8cb059
2995 changed files with 106830 additions and 299600 deletions
@@ -8,16 +8,16 @@
//#include "G4Placement.hh"
#include "G4Axis2Placement3D.hh"
//typedef RWTPtrOrderedVector<G4Curve> G4CurveVector;
//typedef RWTPtrOrderedVector<G4CurveVector> G4BoundaryVector;
typedef RWTPtrOrderedVector<G4PlacedSolid> G4PlacedSolidVector;
//typedef RWTPtrOrderedVector<G4GeometryCreator> G4CreatorVector;
typedef RWTPtrOrderedVector<G4Surface> G4SurfaceVector;
typedef RWTPtrOrderedVector<G4BREPSolid> G4SolidVector;
//typedef RWTPtrOrderedVector<G4Placement> G4PlacementVector;
//typedef G4RWTPtrOrderedVector<G4Curve> G4CurveVector;
//typedef G4RWTPtrOrderedVector<G4CurveVector> G4BoundaryVector;
typedef G4RWTPtrOrderedVector<G4PlacedSolid> G4PlacedSolidVector;
//typedef G4RWTPtrOrderedVector<G4GeometryCreator> G4CreatorVector;
typedef G4RWTPtrOrderedVector<G4Surface> G4SurfaceVector;
typedef G4RWTPtrOrderedVector<G4BREPSolid> G4SolidVector;
//typedef G4RWTPtrOrderedVector<G4Placement> G4PlacementVector;
//#include "G4STEPEntity.hh"
//erator ==(class RWTPtrOrderedVector<G4Curve> a, class RWTPtrOrderedVector<G4Curve> b){}
//erator ==(class G4RWTPtrOrderedVector<G4Curve> a, class G4RWTPtrOrderedVector<G4Curve> b){}
#include "globals.hh"
#include "instmgr.h"
#include "STEPentity.h"
@@ -5,17 +5,17 @@
//#include "G4OrderedTable.hh"
//#include "G4NISTStepReader.hh"
//typedef RWTPtrOrderedVector<G4Curve> G4CurveVector;
//typedef RWTPtrOrderedVector<G4CurveVector> G4BoundaryVector;
//typedef RWTPtrOrderedVector<G4PlacedSolid> G4PlacedSolidVector;
//typedef RWTPtrOrderedVector<G4GeometryCreator*> G4CreatorVector;
typedef RWTPtrOrderedVector<G4GeometryCreator> G4CreatorVector;
//typedef RWTPtrOrderedVector<G4Surface> G4SurfaceVector;
//typedef RWTPtrOrderedVector<G4BREPSolid> G4SolidVector;
//typedef G4RWTPtrOrderedVector<G4Curve> G4CurveVector;
//typedef G4RWTPtrOrderedVector<G4CurveVector> G4BoundaryVector;
//typedef G4RWTPtrOrderedVector<G4PlacedSolid> G4PlacedSolidVector;
//typedef G4RWTPtrOrderedVector<G4GeometryCreator*> G4CreatorVector;
typedef G4RWTPtrOrderedVector<G4GeometryCreator> G4CreatorVector;
//typedef G4RWTPtrOrderedVector<G4Surface> G4SurfaceVector;
//typedef G4RWTPtrOrderedVector<G4BREPSolid> G4SolidVector;
//operator ==(class RWTPtrOrderedVector<G4Curve> a, class RWTPtrOrderedVector<G4Curve> b){}
//operator ==(class G4RWTPtrOrderedVector<G4Curve> a, class G4RWTPtrOrderedVector<G4Curve> b){}
class G4GeometryTable
@@ -0,0 +1,88 @@
// 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.
//
// $Id: G4NISTStepReader.hh,v 1.1.4.1 1999/12/07 20:48:37 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef G4NISTSTEPFILEREADER_HH
#define G4NISTSTEPFILEREADER_HH
#include "G4StepFileReader.hh"
#include "STEPfile.h" /* STEPfile class and others used by SCL */
#include "sdai.h" /* definitions of for EXRPESS built-in types */
#include "schema.h"
#include "instmgr.h"
//#include "G4StepFile.h" /* or suitable substitute */
#ifdef __O3DB__
#include <OpenOODB.h>
#endif
#include "instmgr.h"
#include "Registry.h"
//#include "STEPfile.h"
#include "STEPentity.h"
#include "STEPaggregate.h"
///////////////////////////////////////////////////////////////////////////////
// Function defined as a stub (necessary to use the scl)
// The purpose of this function is to allow the DisplayNode object to delete
// an object that it knows nothing about. It was made generic so that the scl
// could be used with any display toolkit.
//
// This function is called by the DisplayNode object
// This function needs to be defined outside the SCL libraries. It needs to do
// two things:
// 1) unmap the StepEntityEditor window if it is mapped.
// 2) delete the StepEntityEditor window
// To see an example of this function used with the Data Probe look in
// ../clprobe-ui/StepEntEditor.cc Look at DeleteSEE() and ~StepEntityEditor().
///////////////////////////////////////////////////////////////////////////////
// this function illustrates a good way to Generate and assign file identifiers
/*
void AssignFileId (STEPentity *se, InstMgr& instance_list)
{
int fId = instance_list.MaxFileId() + 1;
se->STEPfile_id = (fId > 0) ? fId : 1;
}
*/
// define this to be the name of the display window object for
// STEP entity instance editing or define your own.
// This is only needed as there's a link to these from the toolkit
class STEPentity;
class InstMgr;
class StepEntityEditor
{
public:
StepEntityEditor() {};
~StepEntityEditor() {};
};
extern void AssignFileId (STEPentity *se, InstMgr& instance_list);
extern STEPentity *GetEntity (STEPnode *node, InstMgr *im);
// This needs to be defined for the STEPfile reader
extern void SchemaInit (Registry &);
class G4NISTStepReader: public G4StepFileReader
{
public:
void ReadSTEPFile(G4String);
void SaveSTEPFile();
void UpdateSTEPFile();
InstMgr GetInstanceManager(){return InstanceList;}
private:
InstMgr InstanceList;
};
#endif
@@ -0,0 +1,26 @@
// 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.
//
// $Id: G4StepFileReader.hh,v 1.1.4.1 1999/12/07 20:48:38 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef G4STEPFILEREADER_HH
#define G4STEPFILEREADER_HH
#include "globals.hh"
#include "instmgr.h"
class G4StepFileReader
{
public:
virtual void ReadSTEPFile(G4String)=0;
virtual void SaveSTEPFile()=0;
virtual void UpdateSTEPFile()=0;
virtual InstMgr GetInstanceManager()=0;
};
#endif