45 delete fZAnnotationModel;
48 delete fYAnnotationModel;
51 delete fXAnnotationModel;
72 fType =
"G4AxesModel";
76 (x0, x0+length, y0, y0+length, z0, z0+length);
80 if (colourString ==
"auto") autoColour =
true;
84 ed <<
"Colour \"" << colourString
85 <<
"\" not found. Defaulting to white and opaque.";
87 (
"G4AxesModel::G4AxesModel",
100 (x0, y0, z0, x0+length, y0, z0, arrowWidth,
101 xColour,
"x-axis: " + description);
102 if (withAnnotation) {
105 text->
SetOffset(0.5*textSize,0.5*textSize);
113 text->
SetOffset(-1.5*textSize,-1.5*textSize);
124 (x0, y0, z0, x0, y0+length, z0, arrowWidth,
125 yColour,
"y-axis: " + description);
126 if (withAnnotation) {
129 text->
SetOffset(0.5*textSize,0.5*textSize);
137 text->
SetOffset(-1.5*textSize,-1.5*textSize);
148 (x0, y0, z0, x0, y0, z0+length, arrowWidth,
149 zColour,
"z-axis: " + description);
150 if (withAnnotation) {
153 text->
SetOffset(0.5*textSize,0.5*textSize);
161 text->
SetOffset(-1.5*textSize,-1.5*textSize);
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
HepGeom::Point3D< G4double > G4Point3D
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.)
static G4bool GetColour(const G4String &key, G4Colour &result)
void SetOffset(double dx, double dy)
void SetScreenSize(G4double)
G4String fGlobalDescription
virtual void DescribeYourselfTo(G4VGraphicsScene &)=0
void SetVisAttributes(const G4VisAttributes *)