39 fAnnotation(annotation),
40 fAnnotationSize(annotationSize),
41 fDirection(direction),
42 fAutoPlacing(autoPlacing),
43 fXmid(xmid), fYmid(ymid), fZmid(zmid) {}
47const G4String G4Scale::GuidanceString
49 "An annotated line in the specified direction with tick marks at the"
50 "\nend. If autoPlacing is true it is required to be centred at the"
51 "\nfront, right, bottom corner of the world space, comfortably outside"
52 "\nthe existing bounding box/sphere so that existing objects do not"
53 "\nobscure it. Otherwise it is required to be drawn with mid-point at"
54 "\n(xmid, ymid, zmid)."
56 "\nThe auto placing algorithm might be:"
57 "\n x = xmin + (1 + comfort) * (xmax - xmin);"
58 "\n y = ymin - comfort * (ymax - ymin);"
59 "\n z = zmin + (1 + comfort) * (zmax - zmin);"
60 "\n if direction == x then (x - length,y,z) to (x,y,z);"
61 "\n if direction == y then (x,y,z) to (x,y + length,z);"
62 "\n if direction == z then (x,y,z - length) to (x,y,z);"
67 return GuidanceString;
G4Scale(G4double length, const G4String &annotation="", Direction direction=x, G4bool autoPlacing=true, G4double xmid=0., G4double ymid=0., G4double zmid=0., G4double annotationSize=12.)
static const G4String & GetGuidanceString()