1 // Created on: 1992-06-10
2 // Created by: Laurent BUCHARD
3 // Copyright (c) 1992-1999 Matra Datavision
4 // Copyright (c) 1999-2012 OPEN CASCADE SAS
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.
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.
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.
22 #include <Standard_DomainError.hxx>
24 ostream& operator << (ostream&, IntRes2d_Transition&);
26 inline IntRes2d_Transition::IntRes2d_Transition (const Standard_Boolean Tangent,
27 const IntRes2d_Position Pos,
28 const IntRes2d_TypeTrans Type ):
30 tangent(Tangent),posit(Pos),typetra(Type),situat(IntRes2d_Unknown),oppos(Standard_False)
35 inline IntRes2d_Transition::IntRes2d_Transition (const Standard_Boolean Tangent,
36 const IntRes2d_Position Pos,
37 const IntRes2d_Situation Situ,
38 const Standard_Boolean Oppos):
39 tangent(Tangent),posit(Pos),typetra(IntRes2d_Touch),
40 situat(Situ),oppos(Oppos)
44 inline IntRes2d_Transition::IntRes2d_Transition (const IntRes2d_Position Pos):
46 tangent(Standard_True),posit(Pos),typetra(IntRes2d_Undecided),situat(IntRes2d_Unknown),oppos(Standard_False)
50 inline void IntRes2d_Transition::SetValue (const Standard_Boolean Tangent,
51 const IntRes2d_Position Pos,
52 const IntRes2d_TypeTrans Type ) {
59 inline void IntRes2d_Transition::SetValue (const Standard_Boolean Tangent,
60 const IntRes2d_Position Pos,
61 const IntRes2d_Situation Situ,
62 const Standard_Boolean Oppos) {
66 typetra=IntRes2d_Touch;
72 inline void IntRes2d_Transition::SetValue (const IntRes2d_Position Pos ) {
75 typetra=IntRes2d_Undecided;
78 inline void IntRes2d_Transition::SetPosition (const IntRes2d_Position Pos ) {
83 inline IntRes2d_Position IntRes2d_Transition::PositionOnCurve () const {
88 inline IntRes2d_TypeTrans IntRes2d_Transition::TransitionType () const {
93 inline Standard_Boolean IntRes2d_Transition::IsTangent () const {
95 if (typetra==IntRes2d_Undecided) {
96 Standard_DomainError::Raise();
101 inline IntRes2d_Situation IntRes2d_Transition::Situation () const {
103 if (typetra!=IntRes2d_Touch) {
104 Standard_DomainError::Raise();
109 inline Standard_Boolean IntRes2d_Transition::IsOpposite () const {
111 if (typetra!=IntRes2d_Touch) {
112 Standard_DomainError::Raise();