0024830: Remove redundant keyword 'mutable' in CDL declarations
[occt.git] / src / ChFiDS / ChFiDS_CommonPoint.cxx
CommitLineData
b311480e 1// Created on: 1993-11-30
2// Created by: Isabelle GRIGNON
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.
7fd59977 16
17#include <ChFiDS_CommonPoint.ixx>
18
19//=======================================================================
20//function : ChFiDS_CommonPoint
21//purpose :
22//=======================================================================
23
24ChFiDS_CommonPoint::ChFiDS_CommonPoint() :
25tol(0.),
26isonarc(Standard_False),
27isvtx(Standard_False),
28hasvector(Standard_False)
29{
30}
31
32
33//=======================================================================
34//function : Reset
35//purpose :
36//=======================================================================
37
38void ChFiDS_CommonPoint::Reset()
39{
40 tol = 0.;
41 isvtx = Standard_False;
42 isonarc = Standard_False;
43 hasvector = Standard_False;
44}
45
46
47//=======================================================================
48//function : SetArc
49//purpose :
50// 30/09/1997 : PMN On n'ecrabouille plus la tolerance
51//=======================================================================
52
53void ChFiDS_CommonPoint::SetArc(const Standard_Real Tol,
54 const TopoDS_Edge& A,
55 const Standard_Real Param,
56 const TopAbs_Orientation TArc)
57{
58 isonarc = Standard_True;
59 if (Tol > tol) tol = Tol;
60 arc = A;
61 prmarc = Param;
62 traarc = TArc;
63}
64
65//=======================================================================
66//function : SetParameter
67//purpose :
68//=======================================================================
69
70void ChFiDS_CommonPoint::SetParameter(const Standard_Real Param)
71{
72 prmtg = Param;
73}
74
75//=======================================================================
76//function : Arc
77//purpose :
78//=======================================================================
79
80const TopoDS_Edge& ChFiDS_CommonPoint::Arc()const
81{
82 if (!isonarc){
83 Standard_DomainError::Raise("CommonPoint not on Arc");
84 }
85 return arc;
86}
87
88
89//=======================================================================
90//function : TransitionOnArc
91//purpose :
92//=======================================================================
93
94TopAbs_Orientation ChFiDS_CommonPoint::TransitionOnArc()const
95{
96 if (!isonarc){
97 Standard_DomainError::Raise("CommonPoint not on Arc");
98 }
99 return traarc;
100}
101
102
103//=======================================================================
104//function : ParameterOnArc
105//purpose :
106//=======================================================================
107
108Standard_Real ChFiDS_CommonPoint::ParameterOnArc()const
109{
110 if (!isonarc){
111 Standard_DomainError::Raise("CommonPoint not on Arc");
112 }
113 return prmarc;
114}
115
116//=======================================================================
117//function : Parameter
118//purpose :
119//=======================================================================
120
121Standard_Real ChFiDS_CommonPoint::Parameter()const
122{
123 return prmtg;
124}
125
126