Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Copyright (c) 1995-1999 Matra Datavision
0002 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement.
0014 
0015 #include <Standard_DomainError.hxx>
0016 
0017 inline void IntStart_PathPoint::SetValue (const gp_Pnt& P,
0018                                           const Standard_Real Tol,
0019                                           const TheVertex& V,
0020                                           const TheArc& A,
0021                                           const Standard_Real Parameter) {
0022 
0023   isnew = Standard_False;
0024   point = P;
0025   tol   = Tol;
0026   vtx = V;
0027   arc = A;
0028   param = Parameter;
0029 }
0030 
0031 inline void IntStart_PathPoint::SetValue (const gp_Pnt& P,
0032                                           const Standard_Real Tol,
0033                                           const TheArc& A,
0034                                           const Standard_Real Parameter) {
0035 
0036   isnew = Standard_True;
0037   point = P;
0038   tol   = Tol;
0039   arc   = A;
0040   param = Parameter;
0041 }
0042 
0043 inline const gp_Pnt& IntStart_PathPoint::Value () const {
0044 
0045   return point;
0046 }
0047 
0048 
0049 inline Standard_Real IntStart_PathPoint::Tolerance () const {
0050 
0051   return tol;
0052 }
0053 
0054 inline Standard_Boolean IntStart_PathPoint::IsNew () const {
0055 
0056   return isnew;
0057 }
0058 
0059 inline const TheVertex& IntStart_PathPoint::Vertex () const {
0060 
0061   if (isnew) {throw Standard_DomainError();}
0062   return vtx;
0063 }
0064 
0065 inline const TheArc& IntStart_PathPoint::Arc () const {
0066 
0067   return arc;
0068 }
0069 
0070 inline Standard_Real IntStart_PathPoint::Parameter () const {
0071 
0072   return param;
0073 }
0074