Back to home page

EIC code displayed by LXR

 
 

    


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