00001 /* 00002 * lib-corefinement : Opérations de corafinement. 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-corefinement 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 namespace GMap3d 00026 { 00027 //****************************************************************************** 00028 00029 INLINE 00030 CEdgeIntersection::CEdgeIntersection(CDart * AIntersectedCell, 00031 TCoordinate AIntersectionParameter, 00032 CVertex const & AIntersectionPoint, 00033 int AIntersectedCellDimension, 00034 TPositionOnEdge AIntersectionPosition) 00035 : FIntersectedCell(AIntersectedCell), 00036 FIntersectionParameter(AIntersectionParameter), 00037 FIntersectionPoint(AIntersectionPoint), 00038 FIntersectedCellDimension(AIntersectedCellDimension), 00039 FIntersectionPosition(AIntersectionPosition) 00040 { 00041 } 00042 00043 //****************************************************************************** 00044 00045 INLINE 00046 CDart * CEdgeIntersection::getCell() const 00047 { 00048 return FIntersectedCell; 00049 } 00050 00051 //****************************************************************************** 00052 00053 INLINE 00054 TCoordinate CEdgeIntersection::getParameter() const 00055 { 00056 return FIntersectionParameter; 00057 } 00058 00059 //****************************************************************************** 00060 00061 INLINE 00062 CVertex const & CEdgeIntersection::getPoint() const 00063 { 00064 return FIntersectionPoint; 00065 } 00066 00067 //****************************************************************************** 00068 00069 INLINE 00070 int CEdgeIntersection::getCellDimension() const 00071 { 00072 return FIntersectedCellDimension; 00073 } 00074 00075 //****************************************************************************** 00076 00077 INLINE 00078 TPositionOnEdge CEdgeIntersection::getPosition() const 00079 { 00080 return FIntersectionPosition; 00081 } 00082 00083 //****************************************************************************** 00084 00085 INLINE 00086 void CEdgeIntersection::setCell(CDart * ADart) 00087 { 00088 FIntersectedCell = ADart; 00089 } 00090 00091 //****************************************************************************** 00092 00093 INLINE 00094 void CEdgeIntersection::setParameter(TCoordinate AParameter) 00095 { 00096 FIntersectionParameter = AParameter; 00097 } 00098 00099 //****************************************************************************** 00100 00101 INLINE 00102 void CEdgeIntersection::setPoint(CVertex const & APoint) 00103 { 00104 FIntersectionPoint = APoint; 00105 } 00106 00107 //****************************************************************************** 00108 00109 INLINE 00110 void CEdgeIntersection::setCellDimension(int ADimension) 00111 { 00112 FIntersectedCellDimension = ADimension; 00113 } 00114 00115 //****************************************************************************** 00116 00117 INLINE 00118 void CEdgeIntersection::setPosition(TPositionOnEdge APosition) 00119 { 00120 FIntersectionPosition = APosition; 00121 } 00122 00123 //****************************************************************************** 00124 } // namespace GMap3d 00125 //******************************************************************************