Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/IntRes2d_IntersectionPoint.lxx is written in an unsupported language. File is not indexed.

0001 // Created on: 1992-10-01
0002 // Created by: Laurent BUCHARD
0003 // Copyright (c) 1992-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 inline IntRes2d_IntersectionPoint::IntRes2d_IntersectionPoint
0018       (const gp_Pnt2d& P,
0019        const Standard_Real Uc1, const Standard_Real Uc2,
0020        const IntRes2d_Transition& Trans1,
0021        const IntRes2d_Transition& Trans2,
0022        const Standard_Boolean ReversedFlag):
0023   pt(P),p1(Uc1),p2(Uc2),trans1(Trans1),trans2(Trans2)
0024 {
0025   if(ReversedFlag) {
0026     trans1=Trans2;
0027     trans2=Trans1;
0028     p1=Uc2;
0029     p2=Uc1;
0030   }
0031 }
0032 
0033 
0034 inline void IntRes2d_IntersectionPoint::SetValues
0035   (const gp_Pnt2d& P,
0036    const Standard_Real Uc1, const Standard_Real Uc2,
0037    const IntRes2d_Transition& Trans1,
0038    const IntRes2d_Transition& Trans2,
0039    const Standard_Boolean ReversedFlag)
0040 {
0041   pt=P;
0042   if (!ReversedFlag) {
0043     trans1 = Trans1;
0044     trans2 = Trans2;
0045     p1 = Uc1;
0046     p2 = Uc2;
0047   }
0048   else {
0049     trans1 = Trans2;
0050     trans2 = Trans1;
0051     p1 = Uc2;
0052     p2 = Uc1;
0053   }
0054 }
0055 
0056 inline const gp_Pnt2d &IntRes2d_IntersectionPoint::Value () const {
0057   return pt;
0058 }
0059 
0060 inline Standard_Real IntRes2d_IntersectionPoint::ParamOnFirst () const {
0061   return p1;
0062 }
0063 
0064 inline Standard_Real IntRes2d_IntersectionPoint::ParamOnSecond () const {
0065   return p2;
0066 }
0067 
0068 inline const IntRes2d_Transition& IntRes2d_IntersectionPoint::TransitionOfFirst () const {
0069   return trans1;
0070 }
0071 
0072 inline const IntRes2d_Transition& IntRes2d_IntersectionPoint::TransitionOfSecond () 
0073      const {
0074        return trans2;
0075      }