source: trunk/source/persistency/gdml/include/G4GDMLWriteSolids.hh @ 1202

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

fichiers manquants

File size: 4.8 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: G4GDMLWriteSolids.hh,v 1.32 2008/11/21 09:32:46 gcosmo Exp $
28// GEANT4 tag $Name: geant4-09-02-ref-02 $
29//
30//
31// class G4GDMLWriteSolids
32//
33// Class description:
34//
35// GDML class for writing solids.
36
37// History:
38// - Created.                                  Zoltan Torzsok, November 2007
39// -------------------------------------------------------------------------
40
41#ifndef _G4GDMLWRITESOLIDS_INCLUDED_
42#define _G4GDMLWRITESOLIDS_INCLUDED_
43
44#include "G4BooleanSolid.hh"
45#include "G4Box.hh"
46#include "G4Cons.hh"
47#include "G4Ellipsoid.hh"
48#include "G4EllipticalCone.hh"
49#include "G4EllipticalTube.hh"
50#include "G4ExtrudedSolid.hh"
51#include "G4Hype.hh"
52#include "G4Orb.hh"
53#include "G4Para.hh"
54#include "G4Paraboloid.hh"
55#include "G4IntersectionSolid.hh"
56#include "G4Polycone.hh"
57#include "G4Polyhedra.hh"
58#include "G4ReflectedSolid.hh"
59#include "G4Sphere.hh"
60#include "G4SubtractionSolid.hh"
61#include "G4TessellatedSolid.hh"
62#include "G4Tet.hh"
63#include "G4Torus.hh"
64#include "G4Trap.hh"
65#include "G4Trd.hh"
66#include "G4Tubs.hh"
67#include "G4TwistedBox.hh"
68#include "G4TwistedTrap.hh"
69#include "G4TwistedTrd.hh"
70#include "G4TwistedTubs.hh"
71#include "G4UnionSolid.hh"
72
73#include "G4GDMLWriteMaterials.hh"
74
75class G4GDMLWriteSolids : public G4GDMLWriteMaterials
76{
77
78 protected:
79
80   void AddSolid(const G4VSolid* const);
81
82 private:
83
84   void BooleanWrite(xercesc::DOMElement*, const G4BooleanSolid* const);
85   void BoxWrite(xercesc::DOMElement*, const G4Box* const);
86   void ConeWrite(xercesc::DOMElement*, const G4Cons* const);
87   void ElconeWrite(xercesc::DOMElement*, const G4EllipticalCone* const);
88   void EllipsoidWrite(xercesc::DOMElement*, const G4Ellipsoid* const);
89   void EltubeWrite(xercesc::DOMElement*, const G4EllipticalTube* const);
90   void XtruWrite(xercesc::DOMElement*, const G4ExtrudedSolid* const);
91   void HypeWrite(xercesc::DOMElement*, const G4Hype* const);
92   void OrbWrite(xercesc::DOMElement*, const G4Orb* const);
93   void ParaWrite(xercesc::DOMElement*, const G4Para* const);
94   void ParaboloidWrite(xercesc::DOMElement*, const G4Paraboloid* const);
95   void PolyconeWrite(xercesc::DOMElement*, const G4Polycone* const);
96   void PolyhedraWrite(xercesc::DOMElement*, const G4Polyhedra* const);
97   void SphereWrite(xercesc::DOMElement*, const G4Sphere* const);
98   void TessellatedWrite(xercesc::DOMElement*, const G4TessellatedSolid* const);
99   void TetWrite(xercesc::DOMElement*, const G4Tet* const);
100   void TorusWrite(xercesc::DOMElement*, const G4Torus* const);
101   void TrapWrite(xercesc::DOMElement*, const G4Trap* const);
102   void TrdWrite(xercesc::DOMElement*, const G4Trd* const);
103   void TubeWrite(xercesc::DOMElement*, const G4Tubs* const);
104   void TwistedboxWrite(xercesc::DOMElement*, const G4TwistedBox* const);
105   void TwistedtrapWrite(xercesc::DOMElement*, const G4TwistedTrap* const);
106   void TwistedtrdWrite(xercesc::DOMElement*, const G4TwistedTrd* const);
107   void TwistedtubsWrite(xercesc::DOMElement*, const G4TwistedTubs* const);
108   void ZplaneWrite(xercesc::DOMElement*, const G4double&,
109                    const G4double&, const G4double&);
110   void SolidsWrite(xercesc::DOMElement*);
111
112 private:
113
114   std::vector<const G4VSolid*> solidList;
115   xercesc::DOMElement* solidsElement;
116};
117
118#endif
Note: See TracBrowser for help on using the repository browser.