00001 /* 00002 * lib-gmapkernel : Un noyau de 3-G-cartes et des opérations. 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-gmapkernel 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 #ifndef DART_VERTEX_HH 00026 #define DART_VERTEX_HH 00027 //****************************************************************************** 00028 #include "dart.hh" 00029 #include "attribute-vertex.hh" 00030 00031 #include <bitset> 00032 #include <iostream> 00033 //****************************************************************************** 00034 namespace GMap3d 00035 { 00036 class CDartVertex: public CDart 00037 { 00038 public: 00039 // @name Constructeurs / destructeur 00040 // @{ 00041 00045 CDartVertex(); 00046 00050 CDartVertex(const CDartVertex& ADart); 00051 00058 CDartVertex(const std::bitset<NB_MARKS>& AMarks); 00059 00067 CDartVertex(const std::bitset<NB_MARKS>& AMarks, const CVertex& AVertex); 00068 00076 CDartVertex(std::istream& AStream, TSaveFormat AFormat); 00077 00079 ~CDartVertex(); 00080 00081 // @} 00082 // @name Accesseur au sommet éclaté 00083 // @{ 00084 00085 CVertex & getBurstVertex(); 00086 void setBurstVertex(const CVertex & AVertex); 00087 00088 // @} 00089 // @name Méthodes de sauvegarde et de chargement 00090 // @{ 00091 00105 bool save(std::ostream& AStream, 00106 TSaveFormat AFormat, int ADirectInfoIndex) const; 00107 00120 bool load(std::istream& AStream, TSaveFormat AFormat); 00121 00122 // @} 00123 00124 private: 00125 // @name Attributs privés 00126 // @{ 00127 00129 CVertex FBurstVertex; 00130 00131 // @} 00132 }; 00133 00134 } // namespace GMap3d 00135 //****************************************************************************** 00136 #include INCLUDE_INLINE("dart-vertex.icc") 00137 //****************************************************************************** 00138 #endif // DART_VERTEX_HH 00139 //******************************************************************************