46 delete fZAnnotationModel;
49 delete fYAnnotationModel;
52 delete fXAnnotationModel;
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) {
124 (x0, y0, z0, x0, y0+length, z0, arrowWidth,
125 yColour,
"y-axis: " + description);
126 if (withAnnotation) {
147 (x0, y0, z0, x0, y0, z0+length, arrowWidth,
148 zColour,
"z-axis: " + description);
149 if (withAnnotation) {
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
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)
G4AxesModel(G4double x0, G4double y0, G4double z0, G4double length, G4double arrowWidth=1., const G4String &colourString="auto", const G4String &description="", G4bool withAnnotation=true)
void SetScreenSize(G4double)