0023024: Update headers of OCCT files
[occt.git] / src / Contap / Contap_Point.lxx
CommitLineData
b311480e 1// Created on: 1993-03-04
2// Created by: Jacques GOUSSARD
3// Copyright (c) 1993-1999 Matra Datavision
4// Copyright (c) 1999-2012 OPEN CASCADE SAS
5//
6// The content of this file is subject to the Open CASCADE Technology Public
7// License Version 6.5 (the "License"). You may not use the content of this file
8// except in compliance with the License. Please obtain a copy of the License
9// at http://www.opencascade.org and read it completely before using this file.
10//
11// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13//
14// The Original Code and all software distributed under the License is
15// distributed on an "AS IS" basis, without warranty of any kind, and the
16// Initial Developer hereby disclaims all such warranties, including without
17// limitation, any warranties of merchantability, fitness for a particular
18// purpose or non-infringement. Please see the License for the specific terms
19// and conditions governing the rights and limitations under the License.
20
7fd59977 21
733a0e55 22#include <Standard_DomainError.hxx>
7fd59977 23
24inline void Contap_Point::SetValue (const gp_Pnt& Pt,
25 const Standard_Real U,
26 const Standard_Real V)
27{
28 pt = Pt;
29 uparam = U;
30 vparam = V;
31 onarc = Standard_False;
32 isvtx = Standard_False;
33 ismult= Standard_False;
34 myInternal = Standard_False;
35}
36
37inline void Contap_Point::SetParameter (const Standard_Real Para) {
38
39 paraline = Para;
40}
41
42inline void Contap_Point::SetVertex(const TheVertex& V) {
43
44 isvtx = Standard_True;
45 vtx = V;
46}
47
48inline void Contap_Point::SetArc (const TheArc& A,
49 const Standard_Real Param,
50 const IntSurf_Transition& TLine,
51 const IntSurf_Transition& TArc) {
52
53 onarc = Standard_True;
54 arc = A;
55 prmarc = Param;
56 traline = TLine;
57 traarc = TArc;
58}
59
60inline void Contap_Point::SetMultiple ()
61{
62 ismult = Standard_True;
63}
64
65inline void Contap_Point::SetInternal ()
66{
67 myInternal = Standard_True;
68}
69
70
71inline Standard_Boolean Contap_Point::IsMultiple () const
72{
73 return ismult;
74}
75
76inline Standard_Boolean Contap_Point::IsInternal () const
77{
78 return myInternal;
79}
80
81inline const gp_Pnt& Contap_Point::Value () const {
82
83 return pt;
84}
85
86inline Standard_Real Contap_Point::ParameterOnLine () const {
87
88 return paraline;
89}
90
91inline void Contap_Point::Parameters (Standard_Real& U1,
92 Standard_Real& V1) const {
93
94 U1 = uparam;
95 V1 = vparam;
96}
97
98inline Standard_Boolean Contap_Point::IsOnArc () const{
99 return onarc;
100}
101
102inline const TheArc& Contap_Point::Arc () const {
103
104 if (!onarc) {Standard_DomainError::Raise();}
105 return arc;
106}
107
108inline const IntSurf_Transition& Contap_Point::TransitionOnLine () const {
109
110 if (!onarc) {Standard_DomainError::Raise();}
111 return traline;
112}
113
114inline const IntSurf_Transition& Contap_Point::TransitionOnArc () const {
115
116 if (!onarc) {Standard_DomainError::Raise();}
117 return traarc;
118}
119
120inline Standard_Real Contap_Point::ParameterOnArc () const {
121
122 if (!onarc) {Standard_DomainError::Raise();}
123 return prmarc;
124}
125
126inline Standard_Boolean Contap_Point::IsVertex () const {
127 return isvtx;
128}
129
130inline const TheVertex& Contap_Point::Vertex () const {
131
132 if (!isvtx) {Standard_DomainError::Raise();}
133 return vtx;
134}