source: trunk/source/visualization/test/include/ParametrisedBox.hh@ 1308

Last change on this file since 1308 was 954, checked in by garnier, 17 years ago

remise a jour

File size: 3.6 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: ParametrisedBox.hh,v 1.5 2006/06/29 21:34:02 gunter Exp $
28// GEANT4 tag $Name: $
29//
30//
31// Original class written by Hans-Peter Wellisch.
32
33#ifndef PARAMETRISEDBOX_HH
34#define PARAMETRISEDBOX_HH
35
36#include "G4VPVParameterisation.hh"
37
38#include "globals.hh"
39
40class G4VPhysicalVolume;
41class G4Box;
42class G4Material;
43
44class ParametrisedBox: public G4VPVParameterisation
45{
46public:
47 ParametrisedBox (G4Material* a, G4Material* b);
48 void ComputeTransformation(const G4int n,
49 G4VPhysicalVolume* pRep) const;
50 G4Material* ComputeMaterial(const G4int n, G4VPhysicalVolume*);
51 void ComputeDimensions(G4Box& box,
52 const G4int n,
53 const G4VPhysicalVolume* pRep) const;
54 void ComputeDimensions(G4Tubs& shape,
55 const G4int n,
56 const G4VPhysicalVolume* pV) const {
57 G4VPVParameterisation::ComputeDimensions(shape,n,pV);
58 }
59 void ComputeDimensions(G4Trd& shape,
60 const G4int n,
61 const G4VPhysicalVolume* pV) const {
62 G4VPVParameterisation::ComputeDimensions(shape,n,pV);
63 }
64 void ComputeDimensions(G4Trap& shape,
65 const G4int n,
66 const G4VPhysicalVolume* pV) const {
67 G4VPVParameterisation::ComputeDimensions(shape,n,pV);
68 }
69 void ComputeDimensions(G4Cons& shape,
70 const G4int n,
71 const G4VPhysicalVolume* pV) const {
72 G4VPVParameterisation::ComputeDimensions(shape,n,pV);
73 }
74 void ComputeDimensions(G4Sphere& shape,
75 const G4int n,
76 const G4VPhysicalVolume* pV) const {
77 G4VPVParameterisation::ComputeDimensions(shape,n,pV);
78 }
79 void ComputeDimensions(G4Torus& shape,
80 const G4int n,
81 const G4VPhysicalVolume* pV) const {
82 G4VPVParameterisation::ComputeDimensions(shape,n,pV);
83 }
84 void ComputeDimensions(G4Para& shape,
85 const G4int n,
86 const G4VPhysicalVolume* pV) const {
87 G4VPVParameterisation::ComputeDimensions(shape,n,pV);
88 }
89 void ComputeDimensions(G4Hype& shape,
90 const G4int n,
91 const G4VPhysicalVolume* pV) const {
92 G4VPVParameterisation::ComputeDimensions(shape,n,pV);
93 }
94private:
95 G4Material* fpMaterialA;
96 G4Material* fpMaterialB;
97};
98
99#endif
Note: See TracBrowser for help on using the repository browser.