Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4BREPSolidOpenPCone.hh
Go to the documentation of this file.
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$
28//
29// ----------------------------------------------------------------------
30// Class G4BREPSolidOpenPCone
31//
32// Class description:
33//
34// Definition of a generic BREP open polyconical solid:
35//
36// G4BREPSolidOpenPCone ( const G4String& name,
37// G4double start_angle,
38// G4double opening_angle,
39// G4int num_z_planes,
40// G4double z_start,
41// G4double z_values[],
42// G4double RMIN[],
43// G4double RMAX[])
44
45// Authors: J.Sulkimo, P.Urban.
46// Revisions by: L.Broglia, G.Cosmo.
47// ----------------------------------------------------------------------
48#ifndef G4BREPSolidOpenPCone_hh
49#define G4BREPSolidOpenPCone_hh
50
52
54{
55
56 public: // with description
57
58 G4BREPSolidOpenPCone( const G4String& name,
59 G4double start_angle,
60 G4double opening_angle,
61 G4int num_z_planes, // sections
62 G4double z_start,
63 G4double z_values[],
64 G4double RMIN[],
65 G4double RMAX[] );
66 // Constructor defining the polycone through its
67 // conical/cylindrical surfaces.
68
70 // Empty destructor.
71
72 void DescribeYourselfTo (G4VGraphicsScene& scene) const;
73 // Dispatch function which identifies the solid to the graphics scene.
74
75 G4VSolid* Clone() const;
76 // Returns a pointer of a dynamically allocated copy of the solid.
77
78 std::ostream& StreamInfo(std::ostream& os) const;
79 // Streams solid contents to output stream.
80
81 public: // without description
82
83 G4BREPSolidOpenPCone(__void__&);
84 // Fake default constructor for usage restricted to direct object
85 // persistency for clients requiring preallocation of memory for
86 // persistifiable objects.
87
90
91 private:
92
93 void InitializeOPCone();
94
95 private:
96
97 struct G4BREPOpenPConeParams
98 {
99 G4double start_angle, opening_angle;
100 G4int num_z_planes; // sections
101 G4double z_start;
102 G4double *z_values, *RMIN, *RMAX;
103 } constructorParams;
104};
105
106#endif
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
std::ostream & StreamInfo(std::ostream &os) const
G4BREPSolidOpenPCone & operator=(const G4BREPSolidOpenPCone &rhs)
G4VSolid * Clone() const
void DescribeYourselfTo(G4VGraphicsScene &scene) const