69 lines
1.8 KiB
C++
69 lines
1.8 KiB
C++
// 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: G4AssemblyCreator.hh,v 1.3 2000/11/09 16:35:42 gcosmo Exp $
|
|
// GEANT4 tag $Name: geant4-03-00 $
|
|
//
|
|
// ----------------------------------------------------------------------
|
|
// Class G4AssemblyCreator
|
|
//
|
|
// Class description:
|
|
//
|
|
// Main class for detector geometry assembly read from a STEP file.
|
|
// Currently the default STEP reader is assumed to be the NIST reader
|
|
// from the SCL NIST public domain library.
|
|
|
|
// Authors: J.Sulkimo, P.Urban.
|
|
// Revisions by: L.Broglia, G.Cosmo.
|
|
//
|
|
// History:
|
|
// 18-Nov-1999: First step of re-engineering - G.Cosmo
|
|
// ----------------------------------------------------------------------
|
|
#ifndef G4ASSEMBLYCREATOR_HH
|
|
#define G4ASSEMBLYCREATOR_HH
|
|
|
|
#include "G4GeometryCreator.hh"
|
|
|
|
class G4StepFileReader;
|
|
|
|
class G4AssemblyCreator: public G4GeometryCreator
|
|
{
|
|
public: // with description
|
|
|
|
// Constructors
|
|
|
|
G4AssemblyCreator();
|
|
G4AssemblyCreator(const G4String&, const G4String& reader="NIST");
|
|
|
|
// Destructor
|
|
|
|
~G4AssemblyCreator();
|
|
|
|
// Member functions
|
|
|
|
void ReadStepFile();
|
|
void CreateG4Geometry(STEPentity&);
|
|
void CreateSTEPGeometry(void* G4obj);
|
|
const char* Name() const { return "Assembly"; }
|
|
static G4AssemblyCreator GetInstance() { return ci; }
|
|
|
|
private:
|
|
|
|
G4AssemblyCreator(const G4AssemblyCreator&);
|
|
G4AssemblyCreator& operator=(const G4AssemblyCreator&);
|
|
// Private copy constructor and assignment operator.
|
|
|
|
private:
|
|
|
|
G4int index; // memory for get STEP entity - L.Broglia
|
|
G4StepFileReader* StepReader;
|
|
G4String STEPfileName;
|
|
static G4AssemblyCreator ci;
|
|
};
|
|
|
|
#endif
|