0028966: Coding Rules - remove Adaptor2d_HCurve2d, Adaptor3d_HCurve and Adaptor3d_HSu...
[occt.git] / src / Contap / Contap_ArcFunction.lxx
CommitLineData
b311480e 1// Created on: 1993-06-03
2// Created by: Jacques GOUSSARD
3// Copyright (c) 1993-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
733a0e55 16
7fd59977 17inline void Contap_ArcFunction::Set(const gp_Dir& Direction,
18 const Standard_Real Angle)
19{
20 myType = Contap_DraftStd;
21 myDir = Direction;
c6541a0c 22 myCosAng = Cos(M_PI/2.+Angle);
7fd59977 23}
24
25inline void Contap_ArcFunction::Set(const gp_Pnt& Eye,
26 const Standard_Real Angle)
27{
28 myType = Contap_DraftPrs;
29 myEye = Eye;
c6541a0c 30 myCosAng = Cos(M_PI/2.+Angle);
7fd59977 31}
32
33inline void Contap_ArcFunction::Set(const gp_Dir& Direction)
34{
35 myType = Contap_ContourStd;
36 myDir = Direction;
37}
38
39inline void Contap_ArcFunction::Set(const gp_Pnt& Eye)
40{
41 myType = Contap_ContourPrs;
42 myEye = Eye;
43}
44
c22b52d6 45inline void Contap_ArcFunction::Set(const Handle(Adaptor2d_Curve2d)& A)
7fd59977 46{
47 myArc = A;
48 seqpt.Clear();
49}
50
51inline const gp_Pnt& Contap_ArcFunction::Valpoint
52 (const Standard_Integer Index) const
53{
54 return seqpt(Index);
55}
f542b7bb 56
c22b52d6 57inline const Handle(Adaptor3d_Surface)& Contap_ArcFunction::Surface() const
f542b7bb 58{
59 return(mySurf);
60}
61
62inline const gp_Pnt& Contap_ArcFunction::LastComputedPoint() const
63{
64 return solpt;
65}