G4Root
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
g4root
include
TG4RootSolid.h
Go to the documentation of this file.
1
// @(#)root/g4root:$Id$
2
// Author: Andrei Gheata 07/08/06
3
4
/*************************************************************************
5
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
16
17
#ifndef ROOT_TG4RootSolid
18
#define ROOT_TG4RootSolid
19
20
#include "G4VSolid.hh"
21
#include "G4Version.hh"
22
23
class
TGeoShape;
24
30
31
class
TG4RootSolid
:
public
G4VSolid
32
{
33
34
protected
:
35
TGeoShape*
fShape
;
36
37
public
:
38
TG4RootSolid
() :
G4VSolid
(
""
),
fShape
(0) {}
39
TG4RootSolid
(TGeoShape* shape);
40
virtual
~TG4RootSolid
() {}
41
42
virtual
G4bool
CalculateExtent
(
const
EAxis pAxis,
43
const
G4VoxelLimits& pVoxelLimit,
const
G4AffineTransform& pTransform,
44
G4double& pMin, G4double& pMax)
const
;
45
virtual
EInside
Inside
(
const
G4ThreeVector& p)
const
;
46
virtual
G4ThreeVector
SurfaceNormal
(
const
G4ThreeVector& p)
const
;
47
virtual
G4double
DistanceToIn
(
48
const
G4ThreeVector& p,
const
G4ThreeVector& v)
const
;
49
virtual
G4double
DistanceToIn
(
const
G4ThreeVector& p)
const
;
50
virtual
G4double
DistanceToOut
(
const
G4ThreeVector& p,
const
G4ThreeVector& v,
51
const
G4bool calcNorm =
false
, G4bool* validNorm = 0,
52
G4ThreeVector* n = 0)
const
;
53
virtual
G4double
DistanceToOut
(
const
G4ThreeVector& p)
const
;
54
virtual
void
ComputeDimensions
(
55
G4VPVParameterisation* p,
const
G4int n,
const
G4VPhysicalVolume* pRep);
56
virtual
G4double
GetCubicVolume
();
57
virtual
G4GeometryType
GetEntityType
()
const
;
58
virtual
G4ThreeVector
GetPointOnSurface
()
const
;
59
virtual
std::ostream&
StreamInfo
(std::ostream& os)
const
;
60
virtual
void
DescribeYourselfTo
(G4VGraphicsScene& scene)
const
;
61
virtual
G4VisExtent
GetExtent
()
const
;
62
virtual
G4Polyhedron*
CreatePolyhedron
()
const
;
63
#if G4VERSION_NUMBER < 1000
64
virtual
G4NURBS*
CreateNURBS
()
const
;
65
#endif
66
virtual
G4Polyhedron*
GetPolyhedron
()
const
;
67
virtual
const
G4VSolid
*
GetConstituentSolid
(G4int no)
const
;
68
virtual
G4VSolid
*
GetConstituentSolid
(G4int no);
69
virtual
const
G4DisplacedSolid*
GetDisplacedSolidPtr
()
const
;
70
virtual
G4DisplacedSolid*
GetDisplacedSolidPtr
();
71
72
// ClassDef(TG4RootSolid,0) // Class defining a G4Solid based on a ROOT
73
// shape
74
};
75
#endif
G4VSolid
TG4RootSolid::GetEntityType
virtual G4GeometryType GetEntityType() const
Definition
TG4RootSolid.cxx:221
TG4RootSolid::GetConstituentSolid
virtual const G4VSolid * GetConstituentSolid(G4int no) const
Definition
TG4RootSolid.cxx:310
TG4RootSolid::DistanceToIn
virtual G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const
Definition
TG4RootSolid.cxx:109
TG4RootSolid::GetDisplacedSolidPtr
virtual const G4DisplacedSolid * GetDisplacedSolidPtr() const
Definition
TG4RootSolid.cxx:325
TG4RootSolid::DistanceToOut
virtual G4double DistanceToOut(const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const
Definition
TG4RootSolid.cxx:143
TG4RootSolid::StreamInfo
virtual std::ostream & StreamInfo(std::ostream &os) const
Definition
TG4RootSolid.cxx:238
TG4RootSolid::GetPolyhedron
virtual G4Polyhedron * GetPolyhedron() const
Definition
TG4RootSolid.cxx:302
TG4RootSolid::fShape
TGeoShape * fShape
TGeo associated shape.
Definition
TG4RootSolid.h:35
TG4RootSolid::CalculateExtent
virtual G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const
Definition
TG4RootSolid.cxx:53
TG4RootSolid::GetCubicVolume
virtual G4double GetCubicVolume()
Definition
TG4RootSolid.cxx:209
TG4RootSolid::ComputeDimensions
virtual void ComputeDimensions(G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
Definition
TG4RootSolid.cxx:199
TG4RootSolid::TG4RootSolid
TG4RootSolid()
Default ctor.
Definition
TG4RootSolid.h:38
TG4RootSolid::CreateNURBS
virtual G4NURBS * CreateNURBS() const
Definition
TG4RootSolid.cxx:293
TG4RootSolid::DistanceToIn
virtual G4double DistanceToIn(const G4ThreeVector &p) const
TG4RootSolid::GetPointOnSurface
virtual G4ThreeVector GetPointOnSurface() const
Definition
TG4RootSolid.cxx:229
TG4RootSolid::GetExtent
virtual G4VisExtent GetExtent() const
Definition
TG4RootSolid.cxx:268
TG4RootSolid::CreatePolyhedron
virtual G4Polyhedron * CreatePolyhedron() const
Definition
TG4RootSolid.cxx:282
TG4RootSolid::Inside
virtual EInside Inside(const G4ThreeVector &p) const
Definition
TG4RootSolid.cxx:66
TG4RootSolid::SurfaceNormal
virtual G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const
Definition
TG4RootSolid.cxx:85
TG4RootSolid::DescribeYourselfTo
virtual void DescribeYourselfTo(G4VGraphicsScene &scene) const
Definition
TG4RootSolid.cxx:260
TG4RootSolid::~TG4RootSolid
virtual ~TG4RootSolid()
Destructor.
Definition
TG4RootSolid.h:40
Generated on
for G4Root by
1.17.0