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
static G4bool GetColour(const G4String &key, G4Colour &result)
HepGeom::Point3D< G4double > G4Point3D
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
virtual void DescribeYourselfTo(G4VGraphicsScene &)=0
G4VModel * fYAnnotationModel
G4VModel * fZAnnotationModel
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.)
virtual void DescribeYourselfTo(G4VGraphicsScene &)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void SetVisAttributes(const G4VisAttributes *)
void SetOffset(double dx, double dy)
G4VModel * fXAnnotationModel
void SetScreenSize(G4double)