Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1992-10-22
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 #include <GeomAbs_CurveType.hxx>
0018 #include <GeomAbs_Shape.hxx>
0019 
0020 #include <gp_Vec2d.hxx>
0021 #include <gp_Lin2d.hxx>
0022 #include <gp_Circ2d.hxx>
0023 #include <gp_Elips2d.hxx>
0024 #include <gp_Parab2d.hxx>
0025 #include <gp_Hypr2d.hxx>
0026 
0027 #include <Geom2d_BezierCurve.hxx>
0028 #include <Geom2d_BSplineCurve.hxx>
0029 
0030 #include <TColStd_Array1OfReal.hxx>
0031 
0032 #include <Adaptor2d_Curve2d.hxx>
0033 
0034 
0035 //============================================================
0036 inline Standard_Real IntPatch_HCurve2dTool::FirstParameter (const Handle(Adaptor2d_Curve2d)& C) {
0037   return(C->FirstParameter());
0038 }
0039 //============================================================
0040 inline Standard_Real IntPatch_HCurve2dTool::LastParameter (const Handle(Adaptor2d_Curve2d)& C) {
0041   return(C->LastParameter());
0042 }
0043 //============================================================
0044 inline GeomAbs_Shape IntPatch_HCurve2dTool::Continuity (const Handle(Adaptor2d_Curve2d)& C) {
0045   return(C->Continuity());
0046 }
0047 //============================================================
0048 inline Standard_Integer IntPatch_HCurve2dTool::NbIntervals(const Handle(Adaptor2d_Curve2d)& C,const GeomAbs_Shape Sh) {
0049   return(C->NbIntervals(Sh));
0050 }
0051 //============================================================
0052 inline void IntPatch_HCurve2dTool::Intervals(const Handle(Adaptor2d_Curve2d)& C,
0053                                              TColStd_Array1OfReal& Tab,
0054                                              const GeomAbs_Shape Sh) {
0055   C->Intervals(Tab,Sh);
0056 }
0057 //============================================================
0058 inline Standard_Boolean IntPatch_HCurve2dTool::IsClosed(const Handle(Adaptor2d_Curve2d)& C) {
0059   return(C->IsClosed());
0060 }
0061 //============================================================
0062 inline Standard_Boolean IntPatch_HCurve2dTool::IsPeriodic(const Handle(Adaptor2d_Curve2d)& C) {
0063   return(C->IsPeriodic());
0064 }
0065 //============================================================
0066 inline Standard_Real IntPatch_HCurve2dTool::Period(const Handle(Adaptor2d_Curve2d)& C) {
0067   return(C->Period());
0068 }
0069 //============================================================
0070 inline gp_Pnt2d IntPatch_HCurve2dTool::Value (const Handle(Adaptor2d_Curve2d)& C,
0071                                               const Standard_Real U) {
0072   return(C->Value(U));
0073 }
0074 //============================================================
0075 inline void IntPatch_HCurve2dTool::D0(const Handle(Adaptor2d_Curve2d)& C,
0076                                       const Standard_Real U,
0077                                       gp_Pnt2d& P) {
0078   C->D0(U,P);
0079 }
0080 //============================================================
0081 inline void IntPatch_HCurve2dTool::D1 (const Handle(Adaptor2d_Curve2d)& C,
0082                                        const Standard_Real U,
0083                                        gp_Pnt2d& P,
0084                                        gp_Vec2d& T) {
0085   C->D1(U,P,T);
0086 }
0087 //============================================================
0088 inline void IntPatch_HCurve2dTool::D2 (const Handle(Adaptor2d_Curve2d)& C,
0089                                        const Standard_Real U,
0090                                        gp_Pnt2d& P,
0091                                        gp_Vec2d& T,
0092                                        gp_Vec2d& N) {
0093   C->D2(U,P,T,N);
0094 }
0095 //============================================================
0096 inline void IntPatch_HCurve2dTool::D3 (const Handle(Adaptor2d_Curve2d)& C,
0097                                        const Standard_Real U,
0098                                        gp_Pnt2d& P,
0099                                        gp_Vec2d& V1,
0100                                        gp_Vec2d& V2,
0101                                        gp_Vec2d& V3) {
0102   C->D3(U,P,V1,V2,V3);
0103 }
0104 //============================================================
0105 inline gp_Vec2d IntPatch_HCurve2dTool::DN (const Handle(Adaptor2d_Curve2d)& C,
0106                                            const Standard_Real U,
0107                                            const Standard_Integer N) {
0108   return(C->DN(U,N));
0109 }
0110 //============================================================
0111 inline Standard_Real IntPatch_HCurve2dTool::Resolution(const Handle(Adaptor2d_Curve2d)& C,
0112                                                        const Standard_Real R3d) {
0113   return(C->Resolution(R3d));
0114 }
0115 //============================================================
0116 inline GeomAbs_CurveType IntPatch_HCurve2dTool::GetType(const Handle(Adaptor2d_Curve2d)& C) {
0117   return(C->GetType());
0118 }
0119 //============================================================
0120 inline gp_Lin2d IntPatch_HCurve2dTool::Line (const Handle(Adaptor2d_Curve2d)& C) {
0121   return(C->Line());
0122 }
0123 //============================================================
0124 inline gp_Circ2d IntPatch_HCurve2dTool::Circle (const Handle(Adaptor2d_Curve2d)& C) {
0125   return(C->Circle());
0126 }
0127 //============================================================
0128 inline gp_Elips2d IntPatch_HCurve2dTool::Ellipse (const Handle(Adaptor2d_Curve2d)& C) {
0129   return(C->Ellipse());
0130 }
0131 //============================================================
0132 inline gp_Parab2d IntPatch_HCurve2dTool::Parabola (const Handle(Adaptor2d_Curve2d)& C) {
0133   return(C->Parabola());
0134 }
0135 //============================================================
0136 inline gp_Hypr2d IntPatch_HCurve2dTool::Hyperbola (const Handle(Adaptor2d_Curve2d)& C) {
0137   return(C->Hyperbola());
0138 }
0139 //============================================================
0140 inline Handle(Geom2d_BezierCurve) IntPatch_HCurve2dTool::Bezier (const Handle(Adaptor2d_Curve2d)& C) {
0141   return(C->Bezier());
0142 }
0143 //============================================================
0144 inline Handle(Geom2d_BSplineCurve) IntPatch_HCurve2dTool::BSpline (const Handle(Adaptor2d_Curve2d)& C) {
0145   return(C->BSpline());
0146 }
0147 //============================================================