source: trunk/source/persistency/gdml/include/G4STRead.hh @ 987

Last change on this file since 987 was 987, checked in by garnier, 15 years ago

fichiers manquants

File size: 3.1 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26//
27// $Id: G4STRead.hh,v 1.3 2008/07/17 14:05:50 gcosmo Exp $
28// GEANT4 tag $Name: geant4-09-02-ref-02 $
29//
30//
31// class G4STRead
32//
33// Class description:
34//
35// GDML class for import of triangularised geometry descriptions
36// (.geom and .tree structures) generated out of STEP files from
37// CAD systems (STWriter STEP Tool and similar...).
38
39// History:
40// - Created.                                  Zoltan Torzsok, November 2007
41// -------------------------------------------------------------------------
42
43#ifndef _G4STREAD_INCLUDED_
44#define _G4STREAD_INCLUDED_
45
46#include <fstream>
47#include <vector>
48#include <map>
49
50#include "G4TessellatedSolid.hh"
51#include "G4QuadrangularFacet.hh"
52#include "G4TriangularFacet.hh"
53#include "G4LogicalVolume.hh"
54#include "G4PVPlacement.hh"
55#include "G4Material.hh"
56#include "G4Box.hh"
57
58class G4STRead
59{
60  public:  // with description
61
62    G4LogicalVolume* Read(const G4String&, G4Material* mediumMaterial,
63                                           G4Material* solidMaterial);
64  private:
65
66    void TessellatedRead(const std::string&);
67    void FacetRead(const std::string&);
68    void PhysvolRead(const std::string&);
69    void ReadGeom(const G4String&);
70    void ReadTree(const G4String&);
71
72  private:
73
74    G4Box* world_box;
75    G4ThreeVector world_extent;
76    G4Material* solid_material;
77    G4Material* medium_material;
78    G4LogicalVolume* world_volume;
79    std::vector<G4TessellatedSolid*> tessellatedList;
80    std::map<G4TessellatedSolid*,G4LogicalVolume*> volumeMap;
81};
82
83#endif
Note: See TracBrowser for help on using the repository browser.