source: trunk/source/geometry/divisions/include/G4ParameterisationTrd.hh @ 1337

Last change on this file since 1337 was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

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