0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / BRepBlend / BRepBlend_Extremity.lxx
1 // Copyright (c) 1995-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 //
4 // This file is part of Open CASCADE Technology software library.
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
11 //
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
14
15 #include <Standard_DomainError.hxx>
16
17 inline const gp_Pnt& BRepBlend_Extremity::Value () const
18 {
19   return pt;
20 }
21
22 inline void BRepBlend_Extremity::SetTangent(const gp_Vec& Tangent)
23 {
24   hastang = Standard_True;
25   tang = Tangent;
26 }
27
28 inline Standard_Boolean BRepBlend_Extremity::HasTangent () const
29 {
30   return hastang;
31 }
32
33 inline const gp_Vec& BRepBlend_Extremity::Tangent () const
34 {
35   if (!hastang) {throw Standard_DomainError();}
36   return tang;
37 }
38
39 inline void BRepBlend_Extremity::Parameters(Standard_Real& U,
40                                         Standard_Real& V) const
41 {
42   U = u;
43   V = v;
44 }
45
46 inline Standard_Real BRepBlend_Extremity::Tolerance() const
47 {
48   return tol;
49 }
50
51
52 inline Standard_Boolean BRepBlend_Extremity::IsVertex() const
53 {
54   return isvtx;
55 }
56
57
58 inline const Handle(Adaptor3d_HVertex)& BRepBlend_Extremity::Vertex () const
59 {
60   if (!isvtx) {throw Standard_DomainError();}
61   return vtx;
62 }
63
64 inline Standard_Integer BRepBlend_Extremity::NbPointOnRst () const
65 {
66   return seqpt.Length();
67 }
68
69 inline const BRepBlend_PointOnRst& BRepBlend_Extremity::PointOnRst
70   (const Standard_Integer Index) const
71 {
72   return seqpt(Index);
73 }
74
75 inline Standard_Real BRepBlend_Extremity::Parameter() const
76
77 {
78   return u;
79 }
80
81 inline Standard_Real BRepBlend_Extremity::ParameterOnGuide() const
82
83 {
84   return param;
85 }
86