Back to home page

EIC code displayed by LXR

 
 

    


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