#include <G4ArrowModel.hh>
Definition at line 48 of file G4ArrowModel.hh.
◆ G4ArrowModel() [1/2]
Definition at line 52 of file G4ArrowModel.cc.
57 fType =
"G4ArrowModel";
70 const G4double shaftLength = std::sqrt
71 (std::pow(
x2-
x1,2)+std::pow(
y2-
y1,2)+std::pow(z2-z1,2));
74 if (shaftRadius > shaftLength/100.) shaftRadius = shaftLength/100.;
75 const G4double halfShaftLength = shaftLength/2.;
76 const G4double halfReduction = 4.*shaftRadius;
77 const G4double halfLength = halfShaftLength-halfReduction;
78 G4Tubs shaft(
"shaft",0.,shaftRadius,halfLength,0.,
twopi);
84 const G4int numRZ = 3;
87 for (
G4int i = 0; i < numRZ; i++) {
88 r[i] *= 2.*shaftRadius;
89 z[i] = halfShaftLength + z[i] * 2.*shaftRadius;
void SetColour(const G4Colour &)
HepGeom::Vector3D< G4double > G4Vector3D
void SetForceSolid(G4bool)
HepPolyhedron & Transform(const G4Transform3D &t)
static const double twopi
G4String fGlobalDescription
G4Polyhedron * fpShaftPolyhedron
void SetVisAttributes(const G4VisAttributes *)
BasicVector3D< T > unit() const
G4Polyhedron * fpHeadPolyhedron
◆ ~G4ArrowModel()
G4ArrowModel::~G4ArrowModel |
( |
| ) |
|
|
virtual |
Definition at line 45 of file G4ArrowModel.cc.
G4Polyhedron * fpShaftPolyhedron
G4Polyhedron * fpHeadPolyhedron
◆ G4ArrowModel() [2/2]
◆ DescribeYourselfTo()
Implements G4VModel.
Definition at line 111 of file G4ArrowModel.cc.
virtual void BeginPrimitives(const G4Transform3D &objectTransformation=G4Transform3D())=0
virtual void AddPrimitive(const G4Polyline &)=0
G4Polyhedron * fpShaftPolyhedron
virtual void EndPrimitives()=0
G4Polyhedron * fpHeadPolyhedron
◆ operator=()
◆ fpHeadPolyhedron
◆ fpShaftPolyhedron
The documentation for this class was generated from the following files: