43 :
fName(mName),ifFloat(true),fMinVal(0.),fMaxVal(
DBL_MAX),fVisManager(0)
53 G4cerr <<
"G4VScoringMesh::DrawColorChart(): no visualization system" <<
G4endl;
65 G4double smin = -0.89,
smax = smin + 0.05*(_nPoint)*0.83, step=0.001;
68 G4double ra = (y-smin)/(smax-smin), rb = 1.-ra;
86 for(
int n = 0;
n < _nPoint;
n++) {
90 for(
int l = 0; l < 21; l++) {
92 line.push_back(
G4Point3D(-0.908, -0.905+0.05*
n+0.002*l, 0.));
93 line.push_back(
G4Point3D(-0.705, -0.905+0.05*
n+0.002*l, 0.));
102 std::ostringstream oss;
103 oss << std::setw(8) << std::setprecision(1) << std::scientific <<
v;
104 std::string str = oss.str();
109 text.SetScreenSize(size);
113 text.SetVisAttributes(&att);
122 for(
int l = 0; l < 22; l++) {
124 line.push_back(
G4Point3D(-0.9, -0.965+0.002*l, 0.));
125 line.push_back(
G4Point3D(-0.9+0.025*lpsname, -0.965+0.002*l, 0.));
145 for(
int l = 0; l < 21; l++) {
147 line.push_back(
G4Point3D(-0.7, -0.9+0.002*l, 0.));
148 line.push_back(
G4Point3D(-0.7+0.3, -0.9+0.002*l, 0.));
virtual void DrawColorChartText(G4int nPoint)
static G4VVisManager * GetConcreteInstance()
G4VVisManager * fVisManager
virtual void GetMapColor(G4double val, G4double color[4])=0
HepGeom::Point3D< G4double > G4Point3D
G4VScoreColorMap(G4String mName)
void SetVisAttributes(const G4VisAttributes *)
virtual ~G4VScoreColorMap()
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
virtual void DrawColorChartBar(G4int nPoint)
const XML_Char int const XML_Char * value
virtual void Draw2D(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
G4GLOB_DLL std::ostream G4cerr
void SetScreenSize(G4double)
virtual void DrawColorChart(G4int nPoint=5)