Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
geometry
solids
CSG
include
G4Orb.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: G4Orb.hh 69788 2013-05-15 12:06:57Z gcosmo $
28
//
29
//
30
// --------------------------------------------------------------------
31
// GEANT 4 class header file
32
//
33
// G4Orb
34
//
35
// Class description:
36
//
37
// A G4Orb is a simple case of G4Sphere. It has only:
38
// fRmax outer radius
39
40
// History:
41
// 20.08.03 V.Grichine - created
42
// --------------------------------------------------------------------
43
44
#ifndef G4Orb_HH
45
#define G4Orb_HH
46
47
#include <
CLHEP/Units/PhysicalConstants.h
>
48
49
#include "
G4CSGSolid.hh
"
50
51
class
G4Orb
:
public
G4CSGSolid
52
{
53
public
:
// with description
54
55
G4Orb
(
const
G4String
& pName,
G4double
pRmax);
56
57
virtual
~G4Orb
() ;
58
59
// Accessors
60
61
inline
G4double
GetRadius
()
const
;
62
63
// Modifiers
64
65
inline
void
SetRadius
(
G4double
newRmax);
66
67
// Methods for solid
68
69
inline
G4double
GetCubicVolume
();
70
inline
G4double
GetSurfaceArea
();
71
72
void
ComputeDimensions
(
G4VPVParameterisation
*
p
,
73
const
G4int
n
,
74
const
G4VPhysicalVolume
* pRep);
75
76
G4bool
CalculateExtent
(
const
EAxis
pAxis,
77
const
G4VoxelLimits
& pVoxelLimit,
78
const
G4AffineTransform
& pTransform,
79
G4double
& pmin,
G4double
& pmax)
const
;
80
81
EInside
Inside
(
const
G4ThreeVector
& p)
const
;
82
83
G4ThreeVector
SurfaceNormal
(
const
G4ThreeVector
& p)
const
;
84
85
G4double
DistanceToIn
(
const
G4ThreeVector
& p,
86
const
G4ThreeVector
&
v
)
const
;
87
88
G4double
DistanceToIn
(
const
G4ThreeVector
& p)
const
;
89
90
G4double
DistanceToOut
(
const
G4ThreeVector
& p,
91
const
G4ThreeVector
& v,
92
const
G4bool
calcNorm=
G4bool
(
false
),
93
G4bool
*validNorm=0,
94
G4ThreeVector
*n=0)
const
;
95
96
G4double
DistanceToOut
(
const
G4ThreeVector
& p)
const
;
97
98
G4GeometryType
GetEntityType
()
const
;
99
100
G4ThreeVector
GetPointOnSurface
()
const
;
101
102
G4VSolid
*
Clone
()
const
;
103
104
std::ostream&
StreamInfo
(std::ostream& os)
const
;
105
106
// Visualisation functions
107
108
void
DescribeYourselfTo
(
G4VGraphicsScene
& scene)
const
;
109
G4Polyhedron
*
CreatePolyhedron
()
const
;
110
G4NURBS
*
CreateNURBS
()
const
;
111
112
public
:
// without description
113
114
G4Orb
(__void__&);
115
// Fake default constructor for usage restricted to direct object
116
// persistency for clients requiring preallocation of memory for
117
// persistifiable objects.
118
119
G4Orb
(
const
G4Orb
& rhs);
120
G4Orb
&
operator=
(
const
G4Orb
& rhs);
121
// Copy constructor and assignment operator.
122
123
protected
:
124
125
// Used by distanceToOut
126
127
enum
ESide
{
kNull
,
kRMax
};
128
129
// used by normal
130
131
enum
ENorm
{
kNRMax
};
132
133
private
:
134
135
G4double
fRmax;
136
G4double
fRmaxTolerance;
137
};
138
139
#include "G4Orb.icc"
140
141
#endif
Generated on Sat May 25 2013 14:33:14 for Geant4 by
1.8.4