33 #include <QtGui/QPixmap>
34 #include <QtGui/QToolButton>
35 #include <QtGui/QMessageBox>
36 #include <QtGui/QStatusBar>
37 #include <QtGui/QFileDialog>
38 #include <Qt3Support/Q3Accel>
46 LINK_COLOR(QColor(53, 200, 255)),
47 FControler(new CControlerGMap),
48 FCreationActive(NULL),
49 FOperationActive(NULL),
51 FOperationChanfreinage(NULL),
53 FOptionsSurfacicHomology(NULL),
54 FOptionsVolumicHomology(NULL),
62 setWindowTitle(
"MOKA");
65 setWindowIcon(QIcon(
":/moka-logo.png")) ;
72 setMenuBar(main_menu);
75 FWorkspace =
new QWorkspace(
this) ;
76 setCentralWidget(FWorkspace) ;
81 FControler -> setMode(MODE_SELECTION) ;
82 FControler -> setUndoOnFile(
true) ;
86 FVueMere =
new GLWindow(VIEW_XYZ , FWorkspace ,
this , FSelection) ;
90 FVueMere -> setMinimumSize(200 , 200) ;
91 FVueMere -> showMaximized() ;
94 Q3Accel* Raccourci =
new Q3Accel(
this) ;
96 Raccourci -> insertItem(QKeySequence(
"Alt+F9") , 8) ;
97 Raccourci -> connectItem(8 ,
this ,
100 Raccourci -> insertItem(QKeySequence(Qt::Key_F9) , 9) ;
101 Raccourci -> connectItem(9 ,
this ,
104 Raccourci -> insertItem(QKeySequence(Qt::Key_F10) , 10) ;
105 Raccourci -> connectItem(10 ,
this ,
108 Raccourci -> insertItem(QKeySequence(Qt::Key_F11) , 11) ;
109 Raccourci -> connectItem(11 ,
this ,
112 Raccourci -> insertItem(QKeySequence(Qt::Key_F12) , 12) ;
113 Raccourci -> connectItem(12 ,
this ,
116 Raccourci -> insertItem(QKeySequence(
"Alt+F11") , 14) ;
117 Raccourci -> connectItem(14 ,
this ,
120 Raccourci -> insertItem(QKeySequence(Qt::Key_Space) , 1) ;
121 Raccourci -> connectItem(1 ,
this ,
124 Raccourci -> insertItem(QKeySequence(Qt::Key_Up) , 15) ;
127 Raccourci -> insertItem(QKeySequence(Qt::Key_Down) , 16) ;
130 Raccourci -> insertItem(QKeySequence(Qt::Key_Left) , 17) ;
133 Raccourci -> insertItem(QKeySequence(Qt::Key_Right) , 18) ;
136 Raccourci -> insertItem(QKeySequence(Qt::CTRL + Qt::Key_Up) , 19) ;
139 Raccourci -> insertItem(QKeySequence(Qt::CTRL + Qt::Key_Down) , 20) ;
142 Raccourci -> insertItem(QKeySequence(Qt::CTRL + Qt::Key_Left) , 21) ;
145 Raccourci -> insertItem(QKeySequence(Qt::CTRL + Qt::Key_Right) , 22) ;
148 Raccourci -> insertItem(QKeySequence(Qt::SHIFT + Qt::Key_Up) , 23) ;
151 Raccourci -> insertItem(QKeySequence(Qt::SHIFT + Qt::Key_Down) , 24) ;
154 Raccourci -> insertItem(QKeySequence(Qt::SHIFT + Qt::Key_Left) , 25) ;
157 Raccourci -> insertItem(QKeySequence(Qt::SHIFT + Qt::Key_Right) , 26);
160 Raccourci -> insertItem(QKeySequence(Qt::SHIFT + Qt::Key_F8) , 27) ;
163 Raccourci -> insertItem(QKeySequence(Qt::SHIFT + Qt::Key_F9) , 28) ;
166 Raccourci -> insertItem(QKeySequence(Qt::SHIFT + Qt::Key_F10) , 29) ;
169 Raccourci -> insertItem(QKeySequence(Qt::SHIFT + Qt::Key_F11) , 30) ;
207 if (FDoubleCliquee != NULL)
209 if (FDoubleCliquee == FVueMere)
217 str = FDoubleCliquee -> getViewTypeString();
222 FDoubleCliquee = vue ;
224 if (FDoubleCliquee == FVueMere)
241 static bool is_repainting =
false;
245 is_repainting =
true;
246 QMainWindow::repaint() ;
249 QWidgetList vues = FWorkspace -> windowList() ;
250 for (
int i = 0 ; i < int (vues . count()) ; i++)
251 ((
GLWindow *) vues.at(i))->updateGL();
254 is_repainting =
false;
265 if (w == NULL)
return;
279 if (FOptionsFrame != NULL && FOptionsFrame -> isVisible())
280 FOptionsFrame -> update() ;
283 if (carac != NULL) carac -> update() ;
295 QString texte =
"Darts: " ;
296 texte += QString :: number(darts) ;
297 texte +=
"; Selected: " ;
298 texte += QString :: number(selected) ;
299 texte +=
"; Vertices: " ;
300 texte += QString :: number(vertices) ;
302 texte += QString::fromUtf8(
getControler()->getMessage().c_str()) ;
303 statusBar() -> showMessage(texte) ;
311 return FCreationActive ;
316 return FOperationActive ;
326 return FOptionsCarac ;
331 return FOptionsSurfacicHomology ;
336 return FOptionsVolumicHomology ;
344 assert(FWorkspace->activeWindow() != NULL);
351 QWidgetList vues = FWorkspace -> windowList() ;
353 while (!find && actu <
int(vues.count()))
366 actu = (actu + 1) % vues.count();
368 while (!find && actu != first)
370 if (((
GLWindow*)vues.at(actu))->getViewType() == type)
373 actu = (actu + 1) % vues.count();
379 ((
GLWindow*)vues.at(actu))->setFocus();
383 if (((
GLWindow*)FWorkspace->activeWindow())->getViewType() != type)
413 QIcon pf0(
":/nouveau.png") ;
414 QIcon pf1(
":/charger.png") ;
415 QIcon pf2(
":/sauver.png") ;
416 QIcon pf5(
":/file-import-48x48.png") ;
417 QIcon pf3(
":/file-export-48x48.png") ;
418 QIcon pf4(
":/ajouter.png") ;
420 QIcon pe1(
":/undo.png") ;
421 QIcon pe2(
":/redo.png") ;
422 QIcon pe3(
":/vider.png") ;
424 QIcon pc1(
":/polyligne.png") ;
425 QIcon pc2(
":/polygone.png") ;
426 QIcon pc3(
":/maillage.png") ;
427 QIcon pc4(
":/sphere.png") ;
428 QIcon pc5(
":/cylindre.png") ;
429 QIcon pc6(
":/cone.png") ;
430 QIcon pc7(
":/tore.png") ;
432 QIcon pv1(
":/addvue.png") ;
433 QIcon pv2(
":/deletevue.png") ;
434 QIcon pv3(
":/groupervues.png") ;
435 QIcon pv4(
":/degroupervues.png") ;
437 QIcon pop1(
":/homothetie.png") ;
438 QIcon pop2(
":/translation.png") ;
439 QIcon pop3(
":/rotation.png") ;
441 QIcon psel1(
":/sel_prev.png");
442 QIcon psel2(
":/sel_next.png");
443 QIcon psel3(
":/suppression.png");
444 QIcon psel4(
":/suppression_forcee.png");
447 fichier =
new QToolBar(
"File" ,
this) ;
449 charger_act = fichier -> addAction(pf1,
"Load",
this,
451 fichier -> addAction(pf4,
"Add",
this, SLOT(
callbackAdd()));
452 sauver_act = fichier -> addAction(pf2,
"Save",
this,
454 exporter_act = fichier -> addAction(pf3,
"Export",
this,
456 importer_act = fichier -> addAction(pf5,
"Import",
this,
461 edition =
new QToolBar(
"Undo/Redo",
this) ;
462 edition -> addAction(pe1,
"Undo",
this, SLOT(
callbackUndo()));
463 edition -> addAction(pe2,
"Redo",
this, SLOT(
callbackRedo()));
464 edition -> addSeparator() ;
465 edition -> addAction(pe3,
"Empty the stack",
this,
470 creation =
new QToolBar(
"Creation",
this) ;
471 creation -> addAction(pc1,
"Create polyline/dart/face",
473 creation -> addAction(pc2,
"Create polygon",
this, SLOT(
callbackPolygon()));
474 creation -> addAction(pc3,
"Create mesh",
476 creation -> addAction(pc4,
"Create sphere",
this, SLOT(
callbackSphere()));
477 creation -> addAction(pc5,
"Create cylinder",
479 creation -> addAction(pc6,
"Create cone/pyramid",
481 creation -> addAction(pc7,
"Create torus",
this,SLOT(
callbackTorus()));
482 addToolBar(creation);
485 operations =
new QToolBar(
"Operations",
this) ;
486 operations -> addAction(pop2,
"Translation",
this,
488 operations -> addAction(pop3,
"Rotation",
this,
490 operations -> addAction(pop1,
"Scale",
this,
492 addToolBar(operations);
496 vues =
new QToolBar(
"View",
this) ;
497 vues -> addAction(pv1,
"Add a 3D view",
this, SLOT(
addView3D()));
498 vues -> addAction(pv2,
"Remove the view",
this, SLOT(
deleteView()));
499 vues -> addSeparator() ;
500 vues -> addAction(pv3,
"Group all the views",
this,
502 vues -> addAction(pv4,
"Ungroup all the views",
this,
508 addToolBar(Qt::LeftToolBarArea, FSelection);
516 const QStringList & filters,
520 QFileDialog open_dialog(0, caption, current_dir.path());
522 if (ind_filter != NULL) *ind_filter = -1;
523 open_dialog.setFilters(filters);
524 open_dialog.setAcceptMode(QFileDialog::AcceptOpen);
525 open_dialog.setFileMode(QFileDialog::ExistingFile);
527 if (open_dialog.exec())
529 filename = open_dialog.selectedFiles().at(0);
530 current_dir = open_dialog.directory();
532 if (ind_filter != NULL)
534 for ((*ind_filter) = 0;
535 filters.at(*ind_filter) != open_dialog.selectedFilter();
538 return filename.toStdString();
540 return std::string(
"");
545 QRegExp rxfilter(
".*\\(.*\\.(.*)\\).*");
546 int pos = rxfilter.indexIn(selected);
549 FileDialog->setDefaultSuffix(rxfilter.cap(1));
558 const QStringList & filters,
561 assert(FileDialog == NULL);
564 FileDialog =
new QFileDialog(0, caption, current_dir.path());
569 if (ind_filter != NULL) *ind_filter = -1;
570 FileDialog->setFilters(filters);
571 FileDialog->setAcceptMode(QFileDialog::AcceptSave);
572 FileDialog->setFileMode(QFileDialog::AnyFile);
575 if (FileDialog->exec())
577 filename = FileDialog->selectedFiles().at(0);
578 current_dir = FileDialog->directory();
580 if (ind_filter != NULL)
582 for ((*ind_filter) = 0;
583 filters.at(*ind_filter) != FileDialog->selectedFilter();
587 delete FileDialog; FileDialog = NULL;
588 return filename.toStdString();
590 delete FileDialog; FileDialog = NULL;
591 return std::string(
"");
612 PRECOMPILE_NORMAL_VECTOR);
619 PRECOMPILE_NORMAL_VECTOR);
649 ->setRandomCLFace(
true);
651 ->setRandomCLVolume(
false);
660 ->getRandomCLVolume();
668 ->setRandomCLVolume(
true);
670 ->setRandomCLFace(
false);
680 ->getRandomCLFace() &&
682 ->getRandomCLVolume();
690 ->setRandomCLFace(
false);
692 ->setRandomCLVolume(
false);
701 ->getRandomColorGeometry();
709 ->setRandomColorGeometry(
true);
718 ->getRandomColorGeometry());
726 ->setRandomColorGeometry(
false);
775 assert(FWorkspace->activeWindow() != NULL);
777 return ((
GLWindow *) FWorkspace -> activeWindow())
778 -> getCliquedViewId() ;
786 if (getParameterSpamod()->getViewMode() != SPAMOD_NONE &&
797 #endif // MODULE_SPAMOD
808 switch (((
GLWindow *) FWorkspace -> activeWindow()) -> getViewType())
812 FControler -> moveEye(view,
true);
816 case VIEW_XY : FControler -> moveEyeY(view,
true);
repaint();
break;
818 case VIEW_YZ : FControler -> moveEyeZ(view,
true);
repaint();
break;
826 switch (((
GLWindow *) FWorkspace -> activeWindow()) -> getViewType())
830 FControler -> moveEye(view,
false);
834 case VIEW_XY : FControler -> moveEyeY(view,
false);
repaint();
break;
836 case VIEW_YZ : FControler -> moveEyeZ(view,
false);
repaint();
break;
844 switch (((
GLWindow *) FWorkspace -> activeWindow()) -> getViewType())
848 FControler -> horizontalRotationEye(view,
true);
853 case VIEW_XZ : FControler -> moveEyeX(view,
false);
repaint();
break;
854 case VIEW_YZ : FControler -> moveEyeY(view,
false);
repaint();
break;
862 switch (((
GLWindow *) FWorkspace -> activeWindow()) -> getViewType())
866 FControler -> horizontalRotationEye(view,
false);
871 case VIEW_XZ : FControler -> moveEyeX(view,
true);
repaint();
break;
872 case VIEW_YZ : FControler -> moveEyeY(view,
true);
repaint();
break;
878 if (((
GLWindow *) FWorkspace -> activeWindow()) -> getViewType() == VIEW_XYZ)
887 if (((
GLWindow *) FWorkspace -> activeWindow()) -> getViewType() == VIEW_XYZ)
896 if (((
GLWindow *) FWorkspace -> activeWindow()) -> getViewType() == VIEW_XYZ)
905 if (((
GLWindow *) FWorkspace -> activeWindow()) -> getViewType() == VIEW_XYZ)
914 if (((
GLWindow *) FWorkspace -> activeWindow()) -> getViewType() == VIEW_XYZ)
919 FControler -> moveEye(AView,
true, coeff * 5);
926 if (((
GLWindow *) FWorkspace -> activeWindow()) -> getViewType() == VIEW_XYZ)
931 FControler -> moveEye(AView,
false, coeff * 5);
938 if (((
GLWindow *) FWorkspace -> activeWindow()) -> getViewType() == VIEW_XYZ)
947 if (((
GLWindow *) FWorkspace -> activeWindow()) -> getViewType() == VIEW_XYZ)
956 if (FOptionsFrame == NULL)
959 FOptionsFrame -> getOptionsVue() -> callbackPresetting0();
964 if (FOptionsFrame == NULL)
967 FOptionsFrame -> getOptionsVue() -> callbackPresetting1();
972 if (FOptionsFrame == NULL)
975 FOptionsFrame -> getOptionsVue() -> callbackPresetting2();
980 if (FOptionsFrame == NULL)
983 FOptionsFrame -> getOptionsVue() -> callbackPresetting3();
999 QStringList type_load;
1000 type_load <<
"Moka file (*.moka)";
1015 QStringList type_load;
1017 type_load <<
"Moka file (*.moka)";
1029 case 1 : res =
getControler()->addMap(filename.c_str());
break;
1041 QStringList type_save;
1043 type_save <<
"ASCII format (*.moka)" <<
"Binary format (*.moka)";
1052 case 0: res =
getControler()->saveMapAscii(filename.c_str());
break;
1053 case 1: res =
getControler()->saveMapBinary(filename.c_str());
break;
1065 QStringList type_load;
1067 type_load <<
"Off (*.off)";
1079 case 1 : res =
getControler()->importOff(filename.c_str());
break;
1091 QStringList type_save;
1093 type_save <<
"XFig G-map (*.fig)"
1094 <<
"XFig map (*.fig)"
1095 <<
"XFig Intervoxel (*.fig)"
1121 FControler -> exportXfigAsIntervoxel(filename.c_str(),
1126 FControler -> exportPov(filename.c_str()) ;
1129 FControler -> exportOff(filename.c_str()) ;
1132 FControler -> exportOff3D(filename.c_str()) ;
1142 QStringList type_load;
1144 type_load <<
"Moka file (*.moka)" <<
"Off (*.off)";
1155 case 0 : res =
getControler()->findMotifMoka(filename.c_str());
break;
1156 case 1 : res =
getControler()->findMotifOff(filename.c_str());
break;
1168 QStringList type_load;
1170 type_load <<
"Moka file (*.moka)" <<
"Off (*.off)";
1182 res =
getControler()->countNumberOfMotifsMoka(filename.c_str());
1185 res =
getControler()->countNumberOfMotifsOff(filename.c_str());
1227 FDialogDo -> show() ;
1237 if (FOptionsFrame == NULL)
1240 FOptionsFrame -> setOption(3) ;
1241 FOptionsFrame -> show() ;
1246 if (FOptionsFrame == NULL)
1249 FOptionsFrame -> setOption(4) ;
1250 FOptionsFrame -> show() ;
1255 if (FOptionsFrame == NULL)
1258 FOptionsFrame -> setOption(5) ;
1259 FOptionsFrame -> show() ;
1264 if (FOptionsFrame == NULL)
1267 FOptionsFrame -> setOption(6) ;
1268 FOptionsFrame -> show() ;
1273 if (FOptionsFrame == NULL)
1276 FOptionsFrame -> setOption(7) ;
1277 FOptionsFrame -> show() ;
1282 if (FOptionsFrame == NULL)
1285 FOptionsFrame -> setOption(2) ;
1286 FOptionsFrame -> show() ;
1291 if (FOptionsFrame == NULL)
1294 FOptionsFrame -> setOption(8) ;
1295 FOptionsFrame -> show() ;
1300 if (FOptionsCarac == NULL)
1303 FOptionsCarac -> show_impl() ;
1308 if (FOptionsSurfacicHomology == NULL)
1311 FOptionsSurfacicHomology -> show_impl() ;
1317 if (FOptionsVolumicHomology == NULL)
1320 FOptionsVolumicHomology -> show_impl() ;
1332 resetActiveOperations();
1333 color_active =
true;
1334 FCouleurs -> show();
1341 if (FOptionsFrame == NULL)
1349 if (FOptionsFrame == NULL)
1357 if (FOptionsFrame == NULL)
1365 if (FOptionsFrame == NULL)
1372 if (FOptionsFrame == NULL)
1379 if (FOptionsFrame == NULL)
1386 if (FOperationChanfreinage == NULL)
1388 FOperationChanfreinage -> show() ;
1391 void Window :: resetActiveOperations()
1395 if (FCreationActive != NULL)
1397 FCreationActive -> cancel() ;
1398 FCreationActive = NULL ;
1400 else if (FOperationActive != NULL)
1402 FOperationActive -> close() ;
1403 FOperationActive = NULL ;
1405 else if (color_active)
1407 FCouleurs -> close();
1408 color_active =
false;
1412 FOptionsSurfacicHomology->close();
1413 delete FOptionsSurfacicHomology;
1414 FOptionsSurfacicHomology = NULL;
1418 FOptionsVolumicHomology->close();
1419 delete FOptionsVolumicHomology;
1420 FOptionsSurfacicHomology = NULL;
1428 resetActiveOperations();
1430 FCreationActive = FCreationBrin ;
1431 FCreationActive -> setVisible(
true);
1438 resetActiveOperations();
1440 FCreationActive = FCreationPolygone ;
1441 FCreationActive -> setVisible(
true);
1448 resetActiveOperations();
1450 FCreationActive = FCreationMaillage ;
1451 FCreationActive -> setVisible(
true);
1458 resetActiveOperations();
1460 FCreationActive = FCreationSphere ;
1461 FCreationActive -> setVisible(
true);
1468 resetActiveOperations();
1470 FCreationActive = FCreationCylindre ;
1471 FCreationActive -> setVisible(
true);
1478 resetActiveOperations();
1480 FCreationActive = FCreationPyramide ;
1481 FCreationActive -> setVisible(
true);
1488 resetActiveOperations();
1490 FCreationActive = FCreationTore ;
1491 FCreationActive -> setVisible(
true);
1508 resetActiveOperations();
1510 FOperationActive = FDialogTranslation ;
1511 FOperationActive -> update();
1512 FOperationActive -> setVisible(
true);
1519 resetActiveOperations();
1521 FOperationActive = FDialogRotation ;
1522 FOperationActive -> update();
1523 FOperationActive -> setVisible(
true);
1530 resetActiveOperations();
1532 FOperationActive = FDialogHomothetie ;
1533 FOperationActive -> update();
1534 FOperationActive -> setVisible(
true);
1541 resetActiveOperations();
1543 FOperationActive = FDialogMoveto ;
1544 FOperationActive -> update();
1545 FOperationActive -> setVisible(
true);
2004 #endif //MODULE_MESH
2010 #endif //MODULE_MESH
2017 #endif //MODULE_MESH
2024 #endif //MODULE_MESH
2032 #endif //MODULE_MESH
2039 #endif //MODULE_MESH
2046 #endif //MODULE_MESH
2053 #endif //MODULE_MESH
2060 #endif //MODULE_MESH
2067 #endif //MODULE_MESH
2074 #endif //MODULE_MESH
2082 #endif //MODULE_MESH
2090 #endif //MODULE_MESH
2098 #endif //MODULE_MESH
2106 #endif //MODULE_MESH
2112 #ifdef MODULE_ROUNDING
2114 #endif // MODULE_ROUNDING
2119 #ifdef MODULE_ROUNDING
2121 #endif // MODULE_ROUNDING
2126 #ifdef MODULE_ROUNDING
2129 #endif // MODULE_ROUNDING
2134 #ifdef MODULE_ROUNDING
2136 #endif // MODULE_ROUNDING
2141 #ifdef MODULE_ROUNDING
2143 #endif // MODULE_ROUNDING
2148 #ifdef MODULE_ROUNDING
2150 #endif // MODULE_ROUNDING
2155 #ifdef MODULE_ROUNDING
2157 #endif // MODULE_ROUNDING
2162 #ifdef MODULE_ROUNDING
2164 #endif // MODULE_ROUNDING
2169 #ifdef MODULE_ROUNDING
2171 #endif // MODULE_ROUNDING
2176 #ifdef MODULE_ROUNDING
2178 #endif // MODULE_ROUNDING
2183 #ifdef MODULE_ROUNDING
2185 #endif // MODULE_ROUNDING
2190 #ifdef MODULE_ROUNDING
2193 #endif // MODULE_ROUNDING
2200 #ifdef MODULE_TRIANGULATION
2203 #endif // MODULE_TRIANGULATION
2208 #ifdef MODULE_TRIANGULATION
2211 #endif // MODULE_TRIANGULATION
2216 #ifdef MODULE_TRIANGULATION
2219 #endif // MODULE_TRIANGULATION
2224 #ifdef MODULE_TRIANGULATION
2227 #endif // MODULE_TRIANGULATION
2232 #ifdef MODULE_TRIANGULATION
2235 #endif // MODULE_TRIANGULATION
2241 #ifdef MODULE_COREFINEMENT
2244 #endif // COREFINEMENT
2249 #ifdef MODULE_COREFINEMENT
2252 #endif // COREFINEMENT
2257 #ifdef MODULE_COREFINEMENT
2260 #endif // COREFINEMENT
2265 #ifdef MODULE_COREFINEMENT
2268 #endif // COREFINEMENT
2273 #ifdef MODULE_COREFINEMENT
2276 #endif // COREFINEMENT
2281 #ifdef MODULE_COREFINEMENT
2284 #endif // COREFINEMENT
2289 #ifdef MODULE_COREFINEMENT
2292 #endif // COREFINEMENT
2297 #ifdef MODULE_COREFINEMENT
2300 #endif // COREFINEMENT
2306 #ifdef MODULE_GEOLOGY
2309 #endif // MODULE_GEOLOGY
2314 #ifdef MODULE_GEOLOGY
2317 #endif // MODULE_GEOLOGY
2322 #ifdef MODULE_GEOLOGY
2325 #endif // MODULE_GEOLOGY
2330 #ifdef MODULE_GEOLOGY
2333 #endif // MODULE_GEOLOGY
2338 #ifdef MODULE_GEOLOGY
2341 #endif // MODULE_GEOLOGY
2346 #ifdef MODULE_GEOLOGY
2349 #endif // MODULE_GEOLOGY
2354 #ifdef MODULE_GEOLOGY
2357 #endif // MODULE_GEOLOGY
2362 #ifdef MODULE_GEOLOGY
2365 #endif // MODULE_GEOLOGY
2370 #ifdef MODULE_GEOLOGY
2373 #endif // MODULE_GEOLOGY
2378 #ifdef MODULE_GEOLOGY
2381 #endif // MODULE_GEOLOGY
2386 #ifdef MODULE_GEOLOGY
2389 #endif // MODULE_GEOLOGY
2394 #ifdef MODULE_GEOLOGY
2397 #endif // MODULE_GEOLOGY
2402 #ifdef MODULE_GEOLOGY
2405 #endif // MODULE_GEOLOGY
2410 #ifdef MODULE_GEOLOGY
2413 #endif // MODULE_GEOLOGY
2418 #ifdef MODULE_GEOLOGY
2421 #endif // MODULE_GEOLOGY
2426 #ifdef MODULE_GEOLOGY
2429 #endif // MODULE_GEOLOGY
2434 #ifdef MODULE_GEOLOGY
2437 if (FCreationActive != NULL)
2439 FCreationActive -> cancel() ;
2440 FCreationActive = NULL ;
2442 else if (FOperationActive != NULL)
2444 FOperationActive -> close() ;
2445 FOperationActive = NULL ;
2447 else if (FMeshActive != NULL)
2449 FMeshActive -> reject() ;
2450 FMeshActive = NULL ;
2453 FMeshActive =
new MeshHolesGestion(
this ,
getControler()) ;
2454 FMeshActive -> show() ;
2456 #endif // MODULE_GEOLOGY
2461 #ifdef MODULE_GEOLOGY
2464 #endif // MODULE_GEOLOGY
2469 #ifdef MODULE_GEOLOGY
2472 #endif // MODULE_GEOLOGY
2477 #ifdef MODULE_GEOLOGY
2480 if (FCreationActive != NULL)
2482 FCreationActive -> cancel() ;
2483 FCreationActive = NULL ;
2485 else if (FOperationActive != NULL)
2487 FOperationActive -> close() ;
2488 FOperationActive = NULL ;
2490 else if (FMeshActive != NULL)
2492 FMeshActive -> reject() ;
2493 FMeshActive = NULL ;
2496 FMeshActive =
new MeshFailleGestion(
this ,
getControler()) ;
2497 FMeshActive -> show() ;
2499 #endif // MODULE_GEOLOGY
2504 #ifdef MODULE_GEOLOGY
2507 #endif // MODULE_GEOLOGY
2512 #ifdef MODULE_GEOLOGY
2515 if (FCreationActive != NULL)
2517 FCreationActive -> cancel() ;
2518 FCreationActive = NULL ;
2520 else if (FOperationActive != NULL)
2522 FOperationActive -> close() ;
2523 FOperationActive = NULL ;
2525 else if (FMeshActive != NULL)
2527 FMeshActive -> reject() ;
2528 FMeshActive = NULL ;
2531 FMeshActive =
new MeshExtension(
this ,
getControler()) ;
2532 FMeshActive -> show() ;
2534 #endif // MODULE_GEOLOGY
2547 #ifdef MODULE_GEOLOGY
2550 if (FCreationActive != NULL)
2552 FCreationActive -> cancel() ;
2553 FCreationActive = NULL ;
2555 else if (FOperationActive != NULL)
2557 FOperationActive -> close() ;
2558 FOperationActive = NULL ;
2560 else if (FMeshActive != NULL)
2562 FMeshActive -> reject() ;
2563 FMeshActive = NULL ;
2566 FMeshActive =
new MeshSimplification(
this ,
getControler()) ;
2567 FMeshActive -> show() ;
2569 #endif // MODULE_GEOLOGY
2591 #ifdef MODULE_GEOLOGY
2593 if (filename != NULL)
2598 #endif // MODULE_GEOLOGY
2603 #ifdef MODULE_GEOLOGY
2605 if (filename != NULL)
2610 #endif // MODULE_GEOLOGY
2616 #ifdef MODULE_GEOLOGY
2619 if (filename != NULL)
2624 #endif // MODULE_GEOLOGY
2629 #ifdef MODULE_GEOLOGY
2631 if (filename != NULL)
2636 #endif // MODULE_GEOLOGY
2641 #ifdef MODULE_GEOLOGY
2645 if (filename != NULL)
2650 #endif // MODULE_GEOLOGY
2655 #ifdef MODULE_GEOLOGY
2659 if (filename != NULL)
2664 #endif // MODULE_GEOLOGY
2669 #ifdef MODULE_GEOLOGY
2673 #endif // MODULE_GEOLOGY
2678 #ifdef MODULE_GEOLOGY
2682 #endif // MODULE_GEOLOGY
2687 #ifdef MODULE_GEOLOGY
2691 #endif // MODULE_GEOLOGY
2696 #ifdef MODULE_GEOLOGY
2700 #endif // MODULE_GEOLOGY
2949 FWorkspace ->
tile() ;
2960 this , FVueMere , FSelection) ;
2961 vue -> setMinimumSize(200 , 200) ;
2969 vue -> setMinimumSize(200 , 200) ;
2976 this , FVueMere , FSelection) ;
2977 vue -> setMinimumSize(200 , 200) ;
2984 this , FVueMere , FSelection) ;
2985 vue -> setMinimumSize(200 , 200) ;
2992 this , FVueMere , FSelection) ;
2993 vue -> setMinimumSize(200 , 200) ;
3030 FControler -> viewUngroupAll() ;
3036 FControler -> viewUngroupAllPrecompiles() ;
3042 FControler -> viewUngroupAllParameter(PARAMETER_EYE_POSITION) ;
3048 FControler -> viewUngroupAllParameter(PARAMETER_AIMED_POSITION) ;
3054 FControler -> viewUngroupAllParameter(PARAMETER_DRAWING) ;
3061 FControler -> viewUngroup(active -> getCliquedViewId()) ;
3068 FControler -> viewUngroupPrecompiles(active -> getCliquedViewId()) ;
3075 FControler -> viewUngroupParameter(active -> getCliquedViewId() ,
3076 PARAMETER_EYE_POSITION) ;
3083 FControler -> viewUngroupParameter(active -> getCliquedViewId() ,
3084 PARAMETER_AIMED_POSITION) ;
3091 FControler -> viewUngroupParameter(active -> getCliquedViewId() ,
3092 PARAMETER_DRAWING) ;
3099 FControler -> viewGroupAll(active -> getCliquedViewId()) ;
3106 FControler -> viewGroupAllPrecompiles(active -> getCliquedViewId()) ;
3113 FControler -> viewGroupAllParameter(active -> getCliquedViewId() ,
3114 PARAMETER_EYE_POSITION) ;
3121 FControler -> viewGroupAllParameter(active -> getCliquedViewId() ,
3122 PARAMETER_AIMED_POSITION) ;
3129 FControler -> viewGroupAllParameter(active -> getCliquedViewId() ,
3130 PARAMETER_DRAWING) ;
3137 FControler -> viewGroup(active -> getCliquedViewId(),
3138 FDoubleCliquee -> getDoubleCliquedViewId());
3145 FControler->viewGroupPrecompiles(active -> getCliquedViewId(),
3153 FControler -> viewGroupParameter(active -> getCliquedViewId() ,
3154 FDoubleCliquee -> getDoubleCliquedViewId(),
3155 PARAMETER_EYE_POSITION) ;
3162 FControler -> viewGroupParameter(active -> getCliquedViewId() ,
3163 FDoubleCliquee -> getDoubleCliquedViewId(),
3164 PARAMETER_AIMED_POSITION) ;
3171 FControler -> viewGroupParameter(active -> getCliquedViewId() ,
3172 FDoubleCliquee -> getDoubleCliquedViewId(),
3173 PARAMETER_DRAWING) ;
3228 #ifdef MODULE_SPAMOD
3230 #endif // MODULE_SPAMOD
3235 #ifdef MODULE_SPAMOD
3237 #endif // MODULE_SPAMOD
3242 #ifdef MODULE_SPAMOD
3244 #endif // MODULE_SPAMOD
3249 #ifdef MODULE_SPAMOD
3251 #endif // MODULE_SPAMOD
3256 #ifdef MODULE_SPAMOD
3258 #endif // MODULE_SPAMOD
3264 #ifdef MODULE_SPAMOD
3266 #endif // MODULE_SPAMOD
3272 #ifdef MODULE_SPAMOD
3273 if (mode != SPAMOD_NONE)
3308 getParameterSpamod()->setViewMode(mode);
3310 #endif // MODULE_SPAMOD
3317 #ifdef MODULE_SPAMOD
3318 getParameterSpamod()->setNextViewMode();
3320 #endif // MODULE_SPAMOD
3325 if (FCreationActive != NULL && FCreationActive -> isVisible())
3327 FCreationActive -> cancel();
3330 if (FOperationActive != NULL && FOperationActive -> isVisible())
3331 FOperationActive -> callbackClose() ;
3333 if (FOptionsFrame != NULL && FOptionsFrame -> isVisible())
3335 FOptionsFrame -> setFVisible(
false) ;
3336 FOptionsFrame -> close() ;
3338 if (FOperationChanfreinage != NULL &&
3339 FOperationChanfreinage -> isVisible())
3340 FOperationChanfreinage -> close() ;
3341 if (FOptionsCarac != NULL && FOptionsCarac -> isVisible())
3342 FOptionsCarac -> close() ;
3343 if (FDialogDo != NULL && FDialogDo -> isVisible())
3344 FDialogDo -> close() ;
3345 if (FCouleurs != NULL && FCouleurs->isVisible())
3346 FCouleurs -> close() ;
3347 if ( FOptionsSurfacicHomology!=NULL )
3349 FOptionsSurfacicHomology -> close() ;
3350 delete FOptionsSurfacicHomology;
3351 FOptionsSurfacicHomology = NULL;
3353 if ( FOptionsVolumicHomology!=NULL )
3355 FOptionsVolumicHomology -> close() ;
3356 delete FOptionsVolumicHomology;
3357 FOptionsVolumicHomology = NULL;
3386 #ifdef MODULE_SPAMOD
3387 CParameterSpamod* Window::getParameterSpamod()
const
3389 #endif // MODULE_SPAMOD