7fd59977 |
1 | #include <Standard_DomainError.hxx> |
2 | |
3 | inline void IntStart_PathPoint::SetValue (const gp_Pnt& P, |
4 | const Standard_Real Tol, |
5 | const TheVertex& V, |
6 | const TheArc& A, |
7 | const Standard_Real Parameter) { |
8 | |
9 | isnew = Standard_False; |
10 | point = P; |
11 | tol = Tol; |
12 | vtx = V; |
13 | arc = A; |
14 | param = Parameter; |
15 | } |
16 | |
17 | inline void IntStart_PathPoint::SetValue (const gp_Pnt& P, |
18 | const Standard_Real Tol, |
19 | const TheArc& A, |
20 | const Standard_Real Parameter) { |
21 | |
22 | isnew = Standard_True; |
23 | point = P; |
24 | tol = Tol; |
25 | arc = A; |
26 | param = Parameter; |
27 | } |
28 | |
29 | inline const gp_Pnt& IntStart_PathPoint::Value () const { |
30 | |
31 | return point; |
32 | } |
33 | |
34 | |
35 | inline Standard_Real IntStart_PathPoint::Tolerance () const { |
36 | |
37 | return tol; |
38 | } |
39 | |
40 | inline Standard_Boolean IntStart_PathPoint::IsNew () const { |
41 | |
42 | return isnew; |
43 | } |
44 | |
45 | inline const TheVertex& IntStart_PathPoint::Vertex () const { |
46 | |
47 | if (isnew) {Standard_DomainError::Raise ();} |
48 | return vtx; |
49 | } |
50 | |
51 | inline const TheArc& IntStart_PathPoint::Arc () const { |
52 | |
53 | return arc; |
54 | } |
55 | |
56 | inline Standard_Real IntStart_PathPoint::Parameter () const { |
57 | |
58 | return param; |
59 | } |
60 | |