Changeset 1340 for trunk/source/digits_hits/utils/src/G4VScoreColorMap.cc
- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/digits_hits/utils/src/G4VScoreColorMap.cc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4VScoreColorMap.cc,v 1. 4 2009/05/04 15:57:33 akimura Exp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4VScoreColorMap.cc,v 1.8 2010/07/26 03:52:33 akimura Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 … … 80 80 } 81 81 void G4VScoreColorMap::DrawColorChartText(G4int _nPoint) { 82 82 83 G4double min = this->GetMin(); 83 84 G4double max = this->GetMax(); … … 115 116 fVisManager->Draw2D(text); 116 117 } 118 119 // draw ps name 120 // background 121 G4int lpsname = 20;//fPSName.size(); 122 if(lpsname > 0) { 123 for(int l = 0; l < 22; l++) { 124 G4Polyline line; 125 line.push_back(G4Point3D(-0.9, -0.965+0.002*l, 0.)); 126 line.push_back(G4Point3D(-0.9+0.025*lpsname, -0.965+0.002*l, 0.)); 127 G4VisAttributes attblack(black); 128 //G4VisAttributes attblack(G4Colour(.5, .5, 1.)); 129 line.SetVisAttributes(&attblack); 130 fVisManager->Draw2D(line); 131 } 132 // ps name 133 G4Text txtpsname(fPSName, G4Point3D(-0.9, -0.96, 0.)); 134 G4double size = 12.; 135 txtpsname.SetScreenSize(size); 136 G4Colour color(1., 1., 1.); 137 G4VisAttributes att(color); 138 txtpsname.SetVisAttributes(&att); 139 fVisManager->Draw2D(txtpsname); 140 } 141 142 // draw unit 143 // background 144 G4int len = fPSUnit.size(); 145 if(len > 0) { 146 for(int l = 0; l < 21; l++) { 147 G4Polyline line; 148 line.push_back(G4Point3D(-0.7, -0.9+0.002*l, 0.)); 149 line.push_back(G4Point3D(-0.7+0.3, -0.9+0.002*l, 0.)); 150 G4VisAttributes attblack(black); 151 //G4VisAttributes attblack(G4Colour(.5, .5, .5)); 152 line.SetVisAttributes(&attblack); 153 fVisManager->Draw2D(line); 154 } 155 // unit 156 G4String psunit = "[" + fPSUnit + "]"; 157 G4Text txtunit(psunit, G4Point3D(-0.69, -0.9, 0.)); 158 G4double size = 12.; 159 txtunit.SetScreenSize(size); 160 G4Colour color(1., 1., 1.); 161 G4VisAttributes att(color); 162 txtunit.SetVisAttributes(&att); 163 fVisManager->Draw2D(txtunit); 164 } 165 117 166 }
Note: See TracChangeset
for help on using the changeset viewer.