source: trunk/source/geometry/divisions/include/G4ParameterisationPolyhedra.hh @ 1202

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

update

File size: 9.7 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: G4ParameterisationPolyhedra.hh,v 1.8 2006/06/29 18:18:20 gunter Exp $
28// GEANT4 tag $Name: geant4-09-02-ref-02 $
29//
30// classes G4ParameterisationPolyhedraRho,
31//         G4ParameterisationPolyhedraPhi,
32//         G4ParameterisationPolyhedraZ
33//
34// Class description:
35//
36// These classes represent the parameterised positioning equivalent to
37// dividing a G4Polyhedra along one of each axis Rho, Phi, Z.
38
39// History:
40// -------
41// 09.05.01 - P.Arce, Initial version
42// 08.04.04 - I.Hrivnacova, Implemented reflection
43//---------------------------------------------------------------------
44#ifndef G4ParameterisationPolyhedra_H
45#define G4ParameterisationPolyhedra_H 1
46
47#include "G4VDivisionParameterisation.hh"
48#include "G4Polyhedra.hh"
49
50class G4VPhysicalVolume;
51
52// Dummy declarations to get rid of warnings ...
53class G4Trd;
54class G4Trap;
55class G4Cons;
56class G4Sphere;
57class G4Orb;
58class G4Torus;
59class G4Para;
60class G4Hype;
61class G4Tubs;
62class G4Polycone;
63
64class G4VParameterisationPolyhedra : public G4VDivisionParameterisation
65{ 
66  public:  // with description
67 
68    G4VParameterisationPolyhedra( EAxis axis, G4int nCopies,
69                            G4double offset, G4double step,
70                            G4VSolid* msolid, DivisionType divType );
71 
72    virtual ~G4VParameterisationPolyhedra();
73
74  private:
75
76    G4double ConvertRadiusFactor(const G4Polyhedra& phedra) const;
77      // Converts radius of the sides to radius of the corners:
78      // r_corners = r_sides/factor
79};
80
81//---------------------------------------------------------------------
82// Class G4ParameterisationPolyhedraRho
83//---------------------------------------------------------------------
84
85class G4ParameterisationPolyhedraRho : public G4VParameterisationPolyhedra
86{ 
87  public:  // with description
88
89    G4ParameterisationPolyhedraRho( EAxis axis, G4int nCopies,
90                                    G4double offset, G4double step,
91                                    G4VSolid* motherSolid,
92                                    DivisionType divType );
93    virtual ~G4ParameterisationPolyhedraRho();
94
95    virtual void CheckParametersValidity();
96
97    virtual G4double GetMaxParameter() const;
98
99    virtual void ComputeTransformation( const G4int copyNo,
100                                        G4VPhysicalVolume* physVol ) const;
101    void ComputeDimensions( G4Polyhedra& phedra, const G4int copyNo,
102                            const G4VPhysicalVolume* physVol ) const;
103
104  private:  // Dummy declarations to get rid of warnings ...
105
106    void ComputeDimensions (G4Trd&,const G4int,
107                            const G4VPhysicalVolume*) const {}
108    void ComputeDimensions (G4Trap&,const G4int,
109                            const G4VPhysicalVolume*) const {}
110    void ComputeDimensions (G4Box&,const G4int,
111                            const G4VPhysicalVolume*) const {}
112    void ComputeDimensions (G4Sphere&,const G4int,
113                            const G4VPhysicalVolume*) const {}
114    void ComputeDimensions (G4Orb&,const G4int,
115                            const G4VPhysicalVolume*) const {}
116    void ComputeDimensions (G4Torus&,const G4int,
117                            const G4VPhysicalVolume*) const {}
118    void ComputeDimensions (G4Para&,const G4int,
119                            const G4VPhysicalVolume*) const {}
120    void ComputeDimensions (G4Hype&,const G4int,
121                            const G4VPhysicalVolume*) const {}
122    void ComputeDimensions (G4Tubs&,const G4int,
123                            const G4VPhysicalVolume*) const {}
124    void ComputeDimensions (G4Cons&,const G4int,
125                            const G4VPhysicalVolume*) const {}
126    void ComputeDimensions (G4Polycone&,const G4int,
127                            const G4VPhysicalVolume*) const {}
128};
129
130//---------------------------------------------------------------------
131// Class G4ParameterisationPolyhedraPhi
132//---------------------------------------------------------------------
133
134class G4ParameterisationPolyhedraPhi : public G4VParameterisationPolyhedra
135{ 
136  public:  // with description
137
138    G4ParameterisationPolyhedraPhi( EAxis axis, G4int nCopies,
139                                   G4double offset, G4double step,
140                                   G4VSolid* motherSolid,
141                                   DivisionType divType );
142    virtual ~G4ParameterisationPolyhedraPhi();
143
144    virtual void CheckParametersValidity();
145
146    virtual G4double GetMaxParameter() const;
147
148    virtual void ComputeTransformation( const G4int copyNo,
149                                        G4VPhysicalVolume* physVol ) const;
150    void ComputeDimensions( G4Polyhedra& phedra, const G4int copyNo,
151                            const G4VPhysicalVolume* physVol ) const;
152
153  private:  // Dummy declarations to get rid of warnings ...
154
155    void ComputeDimensions (G4Trd&,const G4int,
156                            const G4VPhysicalVolume*) const {}
157    void ComputeDimensions (G4Trap&,const G4int,
158                            const G4VPhysicalVolume*) const {}
159    void ComputeDimensions (G4Box&,const G4int,
160                            const G4VPhysicalVolume*) const {}
161    void ComputeDimensions (G4Sphere&,const G4int,
162                            const G4VPhysicalVolume*) const {}
163    void ComputeDimensions (G4Orb&,const G4int,
164                            const G4VPhysicalVolume*) const {}
165    void ComputeDimensions (G4Torus&,const G4int,
166                            const G4VPhysicalVolume*) const {}
167    void ComputeDimensions (G4Para&,const G4int,
168                            const G4VPhysicalVolume*) const {}
169    void ComputeDimensions (G4Hype&,const G4int,
170                            const G4VPhysicalVolume*) const {}
171    void ComputeDimensions (G4Tubs&,const G4int,
172                            const G4VPhysicalVolume*) const {}
173    void ComputeDimensions (G4Cons&,const G4int,
174                            const G4VPhysicalVolume*) const {}
175    void ComputeDimensions (G4Polycone&,const G4int,
176                            const G4VPhysicalVolume*) const {}
177};
178
179//---------------------------------------------------------------------
180// Class G4ParameterisationPolyhedraZ
181//---------------------------------------------------------------------
182
183class G4ParameterisationPolyhedraZ : public G4VParameterisationPolyhedra
184{ 
185  public:  // with description
186
187    G4ParameterisationPolyhedraZ( EAxis axis, G4int nCopies,
188                                  G4double offset, G4double step,
189                                  G4VSolid* motherSolid,
190                                  DivisionType divType );
191    virtual ~G4ParameterisationPolyhedraZ();
192
193    virtual void CheckParametersValidity();
194
195    virtual G4double GetMaxParameter() const;
196
197    virtual void ComputeTransformation( const G4int copyNo,
198                                        G4VPhysicalVolume* physVol ) const;
199    void ComputeDimensions( G4Polyhedra& phedra, const G4int copyNo,
200                            const G4VPhysicalVolume* physVol ) const;
201
202  private:  // Dummy declarations to get rid of warnings ...
203
204    void ComputeDimensions (G4Trd&,const G4int,
205                            const G4VPhysicalVolume*) const {}
206    void ComputeDimensions (G4Trap&,const G4int,
207                            const G4VPhysicalVolume*) const {}
208    void ComputeDimensions (G4Box&,const G4int,
209                            const G4VPhysicalVolume*) const {}
210    void ComputeDimensions (G4Sphere&,const G4int,
211                            const G4VPhysicalVolume*) const {}
212    void ComputeDimensions (G4Orb&,const G4int,
213                            const G4VPhysicalVolume*) const {}
214    void ComputeDimensions (G4Torus&,const G4int,
215                            const G4VPhysicalVolume*) const {}
216    void ComputeDimensions (G4Para&,const G4int,
217                            const G4VPhysicalVolume*) const {}
218    void ComputeDimensions (G4Hype&,const G4int,
219                            const G4VPhysicalVolume*) const {}
220    void ComputeDimensions (G4Tubs&,const G4int,
221                            const G4VPhysicalVolume*) const {}
222    void ComputeDimensions (G4Cons&,const G4int,
223                            const G4VPhysicalVolume*) const {}
224    void ComputeDimensions (G4Polycone&,const G4int,
225                            const G4VPhysicalVolume*) const {}
226};
227
228#endif
Note: See TracBrowser for help on using the repository browser.