42 using namespace GMap3d;
59 FEuclidianParam[0] =
true;
60 FEuclidianParam[1] =
true;
62 FAnalyticParam [0] =
true;
63 FAnalyticParam [1] =
true;
64 FAnalyticParam [2] =
true;
65 FAnalyticParam [3] =
true;
67 FVoxelParam [0] =
true;
68 FVoxelParam [1] =
true;
69 FVoxelParam [2] =
true;
87 for (
int orbit = ORBIT_SELF; orbit <= ORBIT_CC; ++orbit)
88 FUsedOrbits[orbit] = FMap->isOrbitUsed(orbit);
90 FMap->setOrbitUsed(ORBIT_0123);
91 FMap->setOrbitUsed(ORBIT_123);
92 FMap->setOrbitUsed(ORBIT_023);
93 FMap->setOrbitUsed(ORBIT_013);
94 FMap->setOrbitUsed(ORBIT_01);
95 FMap->setOrbitUsed(ORBIT_0);
96 FMap->setOrbitUsed(ORBIT_012);
97 FMap->setOrbitUsed(ORBIT_SELF);
120 for (CDynamicCoverageAll dgm(FMap); dgm.cont(); dgm++)
124 if (attr != NULL)
delete attr;
128 if (attr != NULL)
delete attr;
132 if (attr != NULL)
delete attr;
136 if (attr != NULL)
delete attr;
140 if (attr != NULL)
delete attr;
144 if (attr != NULL)
delete attr;
148 if (attr != NULL)
delete attr;
152 if (attr != NULL)
delete attr;
156 if (attr != NULL)
delete attr;
160 if (attr != NULL)
delete attr;
164 if (attr != NULL)
delete attr;
168 if (attr != NULL)
delete attr;
172 if (attr != NULL)
delete attr;
176 if (attr != NULL)
delete attr;
179 for (
int orbit = ORBIT_SELF; orbit <= ORBIT_CC; ++orbit)
180 if (FMap->isOrbitUsed(orbit) && ! FUsedOrbits[orbit])
181 FMap->unsetOrbitUsed(orbit);
188 if (FViewMode == AMode)
210 assert(0<=i && i<=1);
211 return FEuclidianParam[i];
216 assert(0<=i && i<=1);
217 FEuclidianParam[i] = val;
222 assert(0<=i && i<=3);
223 return FAnalyticParam[i];
228 assert(0<=i && i<=3);
229 FAnalyticParam[i] = val;
234 assert(0<=i && i<=2);
235 return FVoxelParam[i];
240 assert(0<=i && i<=2);
241 FVoxelParam[i] = val;
246 assert(0<=i && i<=2);
252 assert(0<=i && i<=2);
261 GLfloat Material_Ks[] = {0.5, 0.5, 0.5, 1.0};
262 GLfloat Material_Ke[] = {0.0, 0.0, 0.0, 1.0};
263 GLfloat Material_Se = 200;
266 GLfloat Light_Ka[] = {0.1, 0.1, 0.1, 1.0};
267 GLfloat Light_Kd[] = {1.0, 1.0, 1.0, 1.0};
268 GLfloat Light_Ks[] = {0.5, 0.5, 0.5, 1.0};
270 GLfloat Light_Kambient[] = {0.4, 0.4, 0.4, 1.0};
271 glLightModelfv(GL_LIGHT_MODEL_AMBIENT,Light_Kambient);
278 glEnable(GL_COLOR_MATERIAL);
292 glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_TRUE);
298 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
301 glMaterialfv(GL_FRONT_AND_BACK,GL_SPECULAR,Material_Ks);
302 glMaterialfv(GL_FRONT_AND_BACK,GL_EMISSION,Material_Ke);
303 glMaterialf(GL_FRONT_AND_BACK,GL_SHININESS,Material_Se);
306 glLightfv(GL_LIGHT0,GL_AMBIENT, Light_Ka);
307 glLightfv(GL_LIGHT0,GL_DIFFUSE, Light_Kd);
308 glLightfv(GL_LIGHT0,GL_SPECULAR, Light_Ks);
311 glLightfv(GL_LIGHT1,GL_AMBIENT, Light_Ka);
312 glLightfv(GL_LIGHT1,GL_DIFFUSE, Light_Kd);
313 glLightfv(GL_LIGHT1,GL_SPECULAR, Light_Ks);
322 glColor3f(1.0, 1.0, 0.0);
334 glColor3f(1.0, 0.0, 0.0);
342 glColor3f(0.0, 0.8, 0.0);
350 glColor3f(0.0, 0.0, 1.0);
358 glColor3f(0.7, 0.7, 0.7);
370 if (FEuclidianParam[0])
375 if (FEuclidianParam[1])
382 glColor4f(color->
Get_R(),
405 translucid ? 0.5 : 1.0);
413 translucid ? 0.5 : 1.0);
428 translucid ? 0.5 : 1.0);