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

Last change on this file since 1315 was 1228, checked in by garnier, 16 years ago

update geant4.9.3 tag

File size: 3.0 KB
RevLine 
[987]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//
[1228]27// $Id: G4STRead.hh,v 1.4 2009/04/24 15:34:20 gcosmo Exp $
28// GEANT4 tag $Name: geant4-09-03 $
[987]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 <vector>
47#include <map>
48
[1228]49#include "G4ThreeVector.hh"
[987]50
[1228]51class G4Material;
52class G4Box;
53class G4TessellatedSolid;
54class G4LogicalVolume;
55
[987]56class G4STRead
57{
58 public: // with description
59
60 G4LogicalVolume* Read(const G4String&, G4Material* mediumMaterial,
61 G4Material* solidMaterial);
62 private:
63
64 void TessellatedRead(const std::string&);
65 void FacetRead(const std::string&);
66 void PhysvolRead(const std::string&);
67 void ReadGeom(const G4String&);
68 void ReadTree(const G4String&);
69
70 private:
71
72 G4Box* world_box;
73 G4ThreeVector world_extent;
74 G4Material* solid_material;
75 G4Material* medium_material;
76 G4LogicalVolume* world_volume;
77 std::vector<G4TessellatedSolid*> tessellatedList;
78 std::map<G4TessellatedSolid*,G4LogicalVolume*> volumeMap;
79};
80
81#endif
Note: See TracBrowser for help on using the repository browser.