44 :
fName(mName),ifFloat(true),fMinVal(0.),fMaxVal(
DBL_MAX),fVisManager(nullptr)
54 G4cerr <<
"G4VScoringMesh::DrawColorChart(): no visualization system" <<
G4endl;
66 G4double smin = -0.89,
smax = smin + 0.05*(_nPoint)*0.83, step=0.001;
72 G4double ra = (
y-smin)/(smax-smin), rb = 1.-ra;
95 for(
int n = 0;
n < _nPoint;
n++) {
100 for(
int l = 0; l < 21; l++) {
102 line.push_back(
G4Point3D(-0.9, -0.905+0.05*
n+0.002*l, 0.));
103 line.push_back(
G4Point3D(-0.75, -0.905+0.05*
n+0.002*l, 0.));
113 std::ostringstream oss;
114 oss << std::setw(8) << std::setprecision(1) << std::scientific << v;
115 std::string str = oss.str();
123 G4Colour color(c[0], c[1], c[2], 1.);
134 for(
int l = 0; l < 22; l++) {
136 line.push_back(
G4Point3D(-0.92, -0.965+0.002*l, 0.));
137 line.push_back(
G4Point3D(-0.92+0.025*lpsname, -0.965+0.002*l, 0.));
159 for(
int l = 0; l < 21; l++) {
161 line.push_back(
G4Point3D(-0.7, -0.9+0.002*l, 0.));
162 line.push_back(
G4Point3D(-0.7+0.025*len, -0.9+0.002*l, 0.));
T max(const T t1, const T t2)
brief Return the largest of the two arguments
virtual void DrawColorChartText(G4int nPoint)
std::vector< ExP01TrackerHit * > a
virtual void DrawColorChart(G4int nPoint=5)
G4VScoreColorMap(G4String mName)
G4VVisManager * fVisManager
static G4VVisManager * GetConcreteInstance()
virtual void GetMapColor(G4double val, G4double color[4])=0
void SetScreenSize(G4double)
const XML_Char int const XML_Char * value
G4GLOB_DLL std::ostream G4cerr
virtual void DrawColorChartBar(G4int nPoint)
virtual void BeginDraw2D(const G4Transform3D &objectTransformation=G4Transform3D())=0
virtual void Draw2D(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
virtual ~G4VScoreColorMap()
HepGeom::Point3D< G4double > G4Point3D
void SetVisAttributes(const G4VisAttributes *)
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
virtual void EndDraw2D()=0