19 :m(_m), maxVal(0), minVal(0.0)
35 for (
unsigned int x = 0; x <
values.size(); x++)
51 for (
unsigned int t = 0; t <
values.size(); t++)
111 glNormal3f(0, 0, -1);
112 for (
unsigned int t = 0; t <
values.size(); t++)
126 glColor3f(r.
r, r.
g, r.
b);
134 GLdouble coverage = 1.0;
135 GLdouble a, b, c, radius;
137 glVertex3f(a-coverage*radius, b+coverage*radius, c-0.0001);
138 glVertex3f(a-coverage*radius, b-coverage*radius, c-0.0001);
140 glVertex3f(a+coverage*radius, b-coverage*radius, c-0.0001);
141 glVertex3f(a+coverage*radius, b+coverage*radius, c-0.0001);
150 glColor3f(0.0, 0.0, 0.0);
161 glVertex3f(a+r, b+r, c-1.12*r);
162 glVertex3f(a+r, b-r, c-1.12*r);
168 glVertex3f(a-r, b+r, c-1.12*r);
169 glVertex3f(a+r, b+r, c-1.12*r);
181 glNormal3f(0, 0, -1);
182 GLdouble a, b, c, radius;
185 glColor3f(0.2, 0.2, 0.2);
186 glVertex3f(a-wide, b+2*
m->
GetMapHeight()*radius+wide, c-4*radius);
187 glVertex3f(a-4*wide, b+2*
m->
GetMapHeight()*radius+wide, c-4*radius);
188 glVertex3f(a-4*wide, b-wide, c-4*radius);
189 glVertex3f(a-wide, b-wide, c-4*radius);
193 sprintf(text,
"%1.2f",
minVal);
194 glColor3f(1.0, 1.0, 1.0);
196 sprintf(text,
"%1.2f",
maxVal);
197 DrawText(a-wide, b-wide+0.05, c-3*radius, 0.1, text);
200 glBegin(GL_LINE_LOOP);
201 glColor3f(1.0, 1.0, 1.0);
202 glVertex3f(a-wide, b+2*
m->
GetMapHeight()*radius+wide, c-4*radius-radius/10.0);
203 glVertex3f(a-4*wide, b+2*
m->
GetMapHeight()*radius+wide, c-4*radius-radius/10.0);
204 glVertex3f(a-4*wide, b-wide, c-4*radius);
205 glVertex3f(a-wide, b-wide, c-4*radius);
209 glBegin(GL_QUAD_STRIP);
210 glNormal3f(0, 0, -1);
216 glColor3f(r.
r, r.
g, r.
b);
243 glColor3f(1.0, 1.0, 1.0);
245 double bottom = (double)((
int)(
minVal*mult))/mult;
252 glColor3f(1.0, 0, 0);
256 glColor3f(1.0, 1.0, 1.0);
258 for (
double x = bottom-range/mult; !
fless(x,
minVal); x-=range/mult)
261 glColor3f(1.0, 0, 0);
265 glColor3f(1.0, 1.0, 1.0);
277 for (
unsigned int t = 0; t <
values.size(); t++)
285 GLdouble x, y, z, rad;
287 display.
FillRect({
static_cast<float>(x-rad),
static_cast<float>(y-rad),
static_cast<float>(x+rad),
static_cast<float>(y+rad)}, r);
299 sprintf(s1,
"%1.2f",
maxVal);
300 sprintf(s2,
"%1.2f",
minVal);
314 for (
unsigned int t = 0; t <
values.size(); t++)