00001 /* 00002 * lib-spamod : Visualisation des objets en discret. 00003 * Copyright (C) 2004, Moka Team, Université de Poitiers, Laboratoire SIC 00004 * http://www.sic.sp2mi.univ-poitiers.fr/ 00005 * Copyright (C) 2009, Guillaume Damiand, CNRS, LIRIS, 00006 * guillaume.damiand@liris.cnrs.fr, http://liris.cnrs.fr/ 00007 * 00008 * This file is part of lib-spamod 00009 * 00010 * This program is free software: you can redistribute it and/or modify 00011 * it under the terms of the GNU Lesser General Public License as published by 00012 * the Free Software Foundation, either version 3 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU Lesser General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU Lesser General Public License 00021 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00022 */ 00023 00024 /****************************************************************************** 00025 * Fichier : Topologic_View.h * 00026 * Auteur : DEXET Martine * 00027 *----------------------------------------------------------------------------* 00028 * Ce fichier contient la spécification de la classe Topologic_View. Cette * 00029 * classe permet de construire et d'afficher les éléments constituants la vue * 00030 * topologique d'un objets. * 00031 * * 00032 *****************************************************************************/ 00033 00034 00035 #ifndef TOPOLOGIC_VIEW_H 00036 #define TOPOLOGIC_VIEW_H 00037 00038 #include "g-map.hh" 00039 00040 00041 00042 /****************************************************************************** 00043 * Classe Topologic_View * 00044 *****************************************************************************/ 00045 00046 namespace GMap3d 00047 { 00048 00049 class Topologic_View { 00050 00051 public: 00052 00053 // Constructeur. 00054 Topologic_View(CGMap * GM); 00055 00056 // Calcul des coordonnées des points à afficher (un point par brin) pour que 00057 // les liaisons alpha0, alpha1 et alpha2 soient visibles. 00058 void Create_Face_Darts_View(CDart * dgm, int markDart); 00059 00060 // Calcul des coordonnées des points à afficher (un point par brin) pour que 00061 // les liaisons alpha3 soient visibles. 00062 void Create_Volume_Darts_View(CDart * dgm, int markVolume); 00063 00064 // Calcul des coordonnées des points à afficher pour représenter les brins. 00065 void Create_Darts_View(); 00066 00067 // Affichage des brins. 00068 void Darts_Draw(); 00069 00070 // Affichage des liaison "alpha i". 00071 void Alpha_Draw(int i); 00072 00073 00074 private: 00075 00076 // G-carte devant être visualisée. 00077 CGMap * G; 00078 00079 }; 00080 00081 } // namespace GMap3d 00082 00083 #endif