73 fType =
"G4AxesModel";
75 fGlobalDescription = fType +
": " + description;
77 (x0, x0+length, y0, y0+length, z0, z0+length);
81 if (colourString ==
"auto") autoColour =
true;
85 ed <<
"Colour \"" << colourString
86 <<
"\" not found. Defaulting to white and opaque.";
88 (
"G4AxesModel::G4AxesModel",
101 (x0, y0, z0, x0+length, y0, z0, arrowWidth,
102 xColour,
"x-axis: " + description);
103 if (withAnnotation) {
106 text->
SetOffset(0.5*textSize,0.5*textSize);
114 text->
SetOffset(-1.5*textSize,-1.5*textSize);
125 (x0, y0, z0, x0, y0+length, z0, arrowWidth,
126 yColour,
"y-axis: " + description);
127 if (withAnnotation) {
130 text->
SetOffset(0.5*textSize,0.5*textSize);
138 text->
SetOffset(-1.5*textSize,-1.5*textSize);
149 (x0, y0, z0, x0, y0, z0+length, arrowWidth,
150 zColour,
"z-axis: " + description);
151 if (withAnnotation) {
154 text->
SetOffset(0.5*textSize,0.5*textSize);
162 text->
SetOffset(-1.5*textSize,-1.5*textSize);
std::ostringstream G4ExceptionDescription
G4VModel * fYAnnotationModel
virtual void DescribeYourselfTo(G4VGraphicsScene &)
G4AxesModel(G4double x0, G4double y0, G4double z0, G4double length, G4double arrowWidth=1., const G4String &colourString="auto", const G4String &description="", G4bool withAnnotation=true, G4double textSize=10.)
void SetScreenSize(G4double)
virtual void DescribeYourselfTo(G4VGraphicsScene &)=0
G4VModel * fZAnnotationModel
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
void SetOffset(double dx, double dy)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4VModel * fXAnnotationModel
HepGeom::Point3D< G4double > G4Point3D
void SetVisAttributes(const G4VisAttributes *)
static G4bool GetColour(const G4String &key, G4Colour &result)