Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/HLRBRep_BCurveTool.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 #include <gp_Vec.hxx>
0020 #include <gp_Lin.hxx>
0021 #include <gp_Circ.hxx>
0022 #include <gp_Elips.hxx>
0023 #include <gp_Parab.hxx>
0024 #include <gp_Hypr.hxx>
0025 #include <BRepAdaptor_Curve.hxx>
0026 
0027 //=================================================================================================
0028 
0029 inline double HLRBRep_BCurveTool::FirstParameter(const BRepAdaptor_Curve& C)
0030 {
0031   return (C.FirstParameter());
0032 }
0033 
0034 //=================================================================================================
0035 
0036 inline double HLRBRep_BCurveTool::LastParameter(const BRepAdaptor_Curve& C)
0037 {
0038   return (C.LastParameter());
0039 }
0040 
0041 //=================================================================================================
0042 
0043 inline GeomAbs_Shape HLRBRep_BCurveTool::Continuity(const BRepAdaptor_Curve& C)
0044 {
0045   return (C.Continuity());
0046 }
0047 
0048 //=================================================================================================
0049 
0050 inline int HLRBRep_BCurveTool::NbIntervals(const BRepAdaptor_Curve& C, const GeomAbs_Shape Sh)
0051 {
0052   return (C.NbIntervals(Sh));
0053 }
0054 
0055 //=================================================================================================
0056 
0057 inline void HLRBRep_BCurveTool::Intervals(const BRepAdaptor_Curve&    C,
0058                                           NCollection_Array1<double>& Tab,
0059                                           const GeomAbs_Shape         Sh)
0060 {
0061   C.Intervals(Tab, Sh);
0062 }
0063 
0064 //=================================================================================================
0065 
0066 inline bool HLRBRep_BCurveTool::IsClosed(const BRepAdaptor_Curve& C)
0067 {
0068   return (C.IsClosed());
0069 }
0070 
0071 //=================================================================================================
0072 
0073 inline bool HLRBRep_BCurveTool::IsPeriodic(const BRepAdaptor_Curve& C)
0074 {
0075   return (C.IsPeriodic());
0076 }
0077 
0078 //=================================================================================================
0079 
0080 inline double HLRBRep_BCurveTool::Period(const BRepAdaptor_Curve& C)
0081 {
0082   return (C.Period());
0083 }
0084 
0085 //=================================================================================================
0086 
0087 inline gp_Pnt HLRBRep_BCurveTool::Value(const BRepAdaptor_Curve& C, const double U)
0088 {
0089   return (C.Value(U));
0090 }
0091 
0092 //=================================================================================================
0093 
0094 inline void HLRBRep_BCurveTool::D0(const BRepAdaptor_Curve& C, const double U, gp_Pnt& P)
0095 {
0096   C.D0(U, P);
0097 }
0098 
0099 //=================================================================================================
0100 
0101 inline void HLRBRep_BCurveTool::D1(const BRepAdaptor_Curve& C, const double U, gp_Pnt& P, gp_Vec& T)
0102 {
0103   C.D1(U, P, T);
0104 }
0105 
0106 inline void HLRBRep_BCurveTool::D2(const BRepAdaptor_Curve& C,
0107                                    const double             U,
0108                                    gp_Pnt&                  P,
0109                                    gp_Vec&                  T,
0110                                    gp_Vec&                  N)
0111 {
0112   C.D2(U, P, T, N);
0113 }
0114 
0115 //=================================================================================================
0116 
0117 inline void HLRBRep_BCurveTool::D3(const BRepAdaptor_Curve& C,
0118                                    const double             U,
0119                                    gp_Pnt&                  P,
0120                                    gp_Vec&                  V1,
0121                                    gp_Vec&                  V2,
0122                                    gp_Vec&                  V3)
0123 {
0124   C.D3(U, P, V1, V2, V3);
0125 }
0126 
0127 //=================================================================================================
0128 
0129 inline gp_Vec HLRBRep_BCurveTool::DN(const BRepAdaptor_Curve& C, const double U, const int N)
0130 {
0131   return (C.DN(U, N));
0132 }
0133 
0134 //=================================================================================================
0135 
0136 inline double HLRBRep_BCurveTool::Resolution(const BRepAdaptor_Curve& C, const double R3d)
0137 {
0138   return (C.Resolution(R3d));
0139 }
0140 
0141 //=================================================================================================
0142 
0143 inline GeomAbs_CurveType HLRBRep_BCurveTool::GetType(const BRepAdaptor_Curve& C)
0144 {
0145   return (C.GetType());
0146 }
0147 
0148 //=================================================================================================
0149 
0150 inline gp_Lin HLRBRep_BCurveTool::Line(const BRepAdaptor_Curve& C)
0151 {
0152   return (C.Line());
0153 }
0154 
0155 //=================================================================================================
0156 
0157 inline gp_Circ HLRBRep_BCurveTool::Circle(const BRepAdaptor_Curve& C)
0158 {
0159   return (C.Circle());
0160 }
0161 
0162 //=================================================================================================
0163 
0164 inline gp_Elips HLRBRep_BCurveTool::Ellipse(const BRepAdaptor_Curve& C)
0165 {
0166   return (C.Ellipse());
0167 }
0168 
0169 //=================================================================================================
0170 
0171 inline gp_Parab HLRBRep_BCurveTool::Parabola(const BRepAdaptor_Curve& C)
0172 {
0173   return (C.Parabola());
0174 }
0175 
0176 //=================================================================================================
0177 
0178 inline gp_Hypr HLRBRep_BCurveTool::Hyperbola(const BRepAdaptor_Curve& C)
0179 {
0180   return (C.Hyperbola());
0181 }
0182 
0183 //=================================================================================================
0184 
0185 inline int HLRBRep_BCurveTool::Degree(const BRepAdaptor_Curve& C)
0186 {
0187   return (C.Degree());
0188 }
0189 
0190 //=================================================================================================
0191 
0192 inline bool HLRBRep_BCurveTool::IsRational(const BRepAdaptor_Curve& C)
0193 {
0194   return (C.IsRational());
0195 }
0196 
0197 //=================================================================================================
0198 
0199 inline int HLRBRep_BCurveTool::NbPoles(const BRepAdaptor_Curve& C)
0200 {
0201   return (C.NbPoles());
0202 }
0203 
0204 //=================================================================================================
0205 
0206 inline int HLRBRep_BCurveTool::NbKnots(const BRepAdaptor_Curve& C)
0207 {
0208   return (C.NbKnots());
0209 }