53 fType =
"G4ArrowModel";
66 const G4double shaftLength = std::sqrt
67 (std::pow(x2-x1,2)+std::pow(y2-y1,2)+std::pow(z2-z1,2));
70 if (shaftRadius > shaftLength/100.) shaftRadius = shaftLength/100.;
71 const G4double halfShaftLength = shaftLength/2.;
72 const G4double halfReduction = 4.*shaftRadius;
73 const G4double halfLength = halfShaftLength-halfReduction;
74 G4Tubs shaft(
"shaft",0.,shaftRadius,halfLength,0.,twopi);
80 const G4int numRZ = 3;
83 for (
G4int i = 0; i < numRZ; i++) {
84 r[i] *= 2.*shaftRadius;
85 z[i] = halfShaftLength + z[i] * 2.*shaftRadius;
94 const G4Point3D arrowCentre(0.5*(x1+x2),0.5*(y1+y2),0.5*(z1+z2));
HepGeom::Vector3D< G4double > G4Vector3D
G4ArrowModel(G4double x1, G4double y1, G4double z1, G4double x2, G4double y2, G4double z2, G4double width, const G4Colour &colour, const G4String &description="")
virtual void DescribeYourselfTo(G4VGraphicsScene &)
G4Polyhedron * CreatePolyhedron() const
G4Polyhedron * CreatePolyhedron() const
virtual void BeginPrimitives(const G4Transform3D &objectTransformation=G4Transform3D())=0
virtual void AddPrimitive(const G4Polyline &)=0
virtual void EndPrimitives()=0
G4String fGlobalDescription
void SetColour(const G4Colour &)
void SetForceSolid(G4bool)
void SetVisAttributes(const G4VisAttributes *)
BasicVector3D< T > unit() const
HepPolyhedron & Transform(const G4Transform3D &t)