#include <G4VisExtent.hh>
Definition at line 54 of file G4VisExtent.hh.
Definition at line 40 of file G4VisExtent.cc.
43 fXmin(xmin), fXmax(xmax), fYmin(ymin), fYmax(ymax), fZmin(zmin), fZmax(zmax),
44 fRadiusCached(
false), fCentreCached(
false), fRadius(0.)
Definition at line 47 of file G4VisExtent.cc.
48 fRadiusCached(
true), fCentreCached(
true),
49 fRadius(radius), fCentre(centre)
52 G4double halfSide (radius / std::sqrt (3.));
53 fXmin = centre.
x () - halfSide;
54 fXmax = centre.
x () + halfSide;
55 fYmin = centre.
y () - halfSide;
56 fYmax = centre.
y () + halfSide;
57 fZmin = centre.
z () - halfSide;
58 fZmax = centre.
z () + halfSide;
G4VisExtent::~G4VisExtent |
( |
| ) |
|
const G4Point3D & G4VisExtent::GetExtentCenter |
( |
| ) |
const |
|
inline |
Definition at line 96 of file G4VisExtent.hh.
const G4Point3D & GetExtentCentre() const
const G4Point3D & G4VisExtent::GetExtentCentre |
( |
| ) |
const |
Definition at line 63 of file G4VisExtent.cc.
65 fCentre =
G4Point3D (((fXmin + fXmax) / 2.),
66 ((fYmin + fYmax) / 2.),
67 ((fZmin + fZmax) / 2.));
HepGeom::Point3D< G4double > G4Point3D
G4double G4VisExtent::GetExtentRadius |
( |
| ) |
const |
Definition at line 73 of file G4VisExtent.cc.
75 fRadius = std::sqrt (((fXmax - fXmin) * (fXmax - fXmin)) +
76 ((fYmax - fYmin) * (fYmax - fYmin)) +
77 ((fZmax - fZmin) * (fZmax - fZmin))) / 2.;
Definition at line 102 of file G4VisExtent.hh.
103 {fXmax = xmax; fRadiusCached =
false; fCentreCached =
false;}
Definition at line 100 of file G4VisExtent.hh.
101 {fXmin = xmin; fRadiusCached =
false; fCentreCached =
false;}
Definition at line 106 of file G4VisExtent.hh.
107 {fYmax = ymax; fRadiusCached =
false; fCentreCached =
false;}
Definition at line 104 of file G4VisExtent.hh.
105 {fYmin = ymin; fRadiusCached =
false; fCentreCached =
false;}
Definition at line 110 of file G4VisExtent.hh.
111 {fZmax = zmax; fRadiusCached =
false; fCentreCached =
false;}
Definition at line 108 of file G4VisExtent.hh.
109 {fZmin = zmin; fRadiusCached =
false; fCentreCached =
false;}
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const G4VisExtent & |
e |
|
) |
| |
|
friend |
Definition at line 83 of file G4VisExtent.cc.
84 os <<
"G4VisExtent (bounding box):";
85 os <<
"\n X limits: " << e.fXmin <<
' ' << e.fXmax;
86 os <<
"\n Y limits: " << e.fYmin <<
' ' << e.fYmax;
87 os <<
"\n Z limits: " << e.fZmin <<
' ' << e.fZmax;
The documentation for this class was generated from the following files: