Moka libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
edge-intersection.icc
Go to the documentation of this file.
1 /*
2  * lib-corefinement : Opérations de corafinement.
3  * Copyright (C) 2004, Moka Team, Université de Poitiers, Laboratoire SIC
4  * http://www.sic.sp2mi.univ-poitiers.fr/
5  * Copyright (C) 2009, Guillaume Damiand, CNRS, LIRIS,
6  * guillaume.damiand@liris.cnrs.fr, http://liris.cnrs.fr/
7  *
8  * This file is part of lib-corefinement
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU Lesser General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 //******************************************************************************
25 namespace GMap3d
26 {
27 //******************************************************************************
28 
29 INLINE
30 CEdgeIntersection::CEdgeIntersection(CDart * AIntersectedCell,
31  TCoordinate AIntersectionParameter,
32  CVertex const & AIntersectionPoint,
33  int AIntersectedCellDimension,
34  TPositionOnEdge AIntersectionPosition)
35  : FIntersectedCell(AIntersectedCell),
36  FIntersectionParameter(AIntersectionParameter),
37  FIntersectionPoint(AIntersectionPoint),
38  FIntersectedCellDimension(AIntersectedCellDimension),
39  FIntersectionPosition(AIntersectionPosition)
40 {
41 }
42 
43 //******************************************************************************
44 
45 INLINE
47 {
48  return FIntersectedCell;
49 }
50 
51 //******************************************************************************
52 
53 INLINE
55 {
56  return FIntersectionParameter;
57 }
58 
59 //******************************************************************************
60 
61 INLINE
62 CVertex const & CEdgeIntersection::getPoint() const
63 {
64  return FIntersectionPoint;
65 }
66 
67 //******************************************************************************
68 
69 INLINE
71 {
72  return FIntersectedCellDimension;
73 }
74 
75 //******************************************************************************
76 
77 INLINE
79 {
80  return FIntersectionPosition;
81 }
82 
83 //******************************************************************************
84 
85 INLINE
86 void CEdgeIntersection::setCell(CDart * ADart)
87 {
88  FIntersectedCell = ADart;
89 }
90 
91 //******************************************************************************
92 
93 INLINE
94 void CEdgeIntersection::setParameter(TCoordinate AParameter)
95 {
96  FIntersectionParameter = AParameter;
97 }
98 
99 //******************************************************************************
100 
101 INLINE
102 void CEdgeIntersection::setPoint(CVertex const & APoint)
103 {
104  FIntersectionPoint = APoint;
105 }
106 
107 //******************************************************************************
108 
109 INLINE
111 {
112  FIntersectedCellDimension = ADimension;
113 }
114 
115 //******************************************************************************
116 
117 INLINE
119 {
120  FIntersectionPosition = APosition;
121 }
122 
123 //******************************************************************************
124 } // namespace GMap3d
125 //******************************************************************************