47 , fVisManager(nullptr)
59 G4cerr <<
"G4VScoringMesh::DrawColorChart(): no visualization system"
72 G4double smin = -0.89, smax = smin + 0.05 * (_nPoint) *0.83, step = 0.001;
77 for(
G4double y = smin; y < smax; y += step)
79 G4double ra = (y - smin) / (smax - smin), rb = 1. - ra;
102 for(
int n = 0;
n < _nPoint;
n++)
104 G4double a =
n / (_nPoint - 1.), b = 1. - a;
108 for(
int l = 0; l < 21; l++)
111 line.push_back(
G4Point3D(-0.9, -0.905 + 0.05 *
n + 0.002 * l, 0.));
112 line.push_back(
G4Point3D(-0.75, -0.905 + 0.05 *
n + 0.002 * l, 0.));
122 std::ostringstream oss;
123 oss << std::setw(8) << std::setprecision(1) << std::scientific << v;
124 std::string str = oss.str();
131 G4Colour color(c[0], c[1], c[2], 1.);
143 for(
int l = 0; l < 22; l++)
146 line.push_back(
G4Point3D(-0.92, -0.965 + 0.002 * l, 0.));
148 G4Point3D(-0.92 + 0.025 * lpsname, -0.965 + 0.002 * l, 0.));
170 for(
int l = 0; l < 21; l++)
173 line.push_back(
G4Point3D(-0.7, -0.9 + 0.002 * l, 0.));
174 line.push_back(
G4Point3D(-0.7 + 0.025 * len, -0.9 + 0.002 * l, 0.));
HepGeom::Point3D< G4double > G4Point3D
G4GLOB_DLL std::ostream G4cerr
void SetScreenSize(G4double)
virtual void DrawColorChart(G4int nPoint=5)
virtual void DrawColorChartText(G4int nPoint)
G4VScoreColorMap(G4String mName)
virtual ~G4VScoreColorMap()
G4VVisManager * fVisManager
virtual void GetMapColor(G4double val, G4double color[4])=0
virtual void DrawColorChartBar(G4int nPoint)
virtual void Draw2D(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
virtual void EndDraw2D()=0
static G4VVisManager * GetConcreteInstance()
virtual void BeginDraw2D(const G4Transform3D &objectTransformation=G4Transform3D())=0
void SetVisAttributes(const G4VisAttributes *)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
T min(const T t1, const T t2)
brief Return the smallest of the two arguments