Warning, /include/opencascade/HLRBRep_Curve.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 1992-03-13
0002 // Created by: Christophe MARION
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 <Standard_NotImplemented.hxx>
0018 #include <gp_Pnt2d.hxx>
0019 #include <gp_Vec2d.hxx>
0020 #include <gp_Lin2d.hxx>
0021 #include <gp_Circ2d.hxx>
0022 #include <gp_Elips2d.hxx>
0023 #include <gp_Hypr2d.hxx>
0024 #include <gp_Parab2d.hxx>
0025 #include <HLRBRep_BCurveTool.hxx>
0026
0027 //=================================================================================================
0028
0029 inline BRepAdaptor_Curve& HLRBRep_Curve::Curve()
0030 {
0031 return myCurve;
0032 }
0033
0034 //=================================================================================================
0035
0036 inline const BRepAdaptor_Curve& HLRBRep_Curve::GetCurve() const
0037 {
0038 return myCurve;
0039 }
0040
0041 //=================================================================================================
0042
0043 inline gp_Pnt HLRBRep_Curve::Value3D(const double U) const
0044 {
0045 gp_Pnt P;
0046 D0(U, P);
0047 return P;
0048 }
0049
0050 //=================================================================================================
0051
0052 inline void HLRBRep_Curve::D0(const double U, gp_Pnt& P) const
0053 {
0054 HLRBRep_BCurveTool::D0(myCurve, U, P);
0055 }
0056
0057 //=================================================================================================
0058
0059 inline void HLRBRep_Curve::D1(const double U, gp_Pnt& P, gp_Vec& V) const
0060 {
0061 HLRBRep_BCurveTool::D1(myCurve, U, P, V);
0062 }
0063
0064 //=================================================================================================
0065
0066 inline double HLRBRep_Curve::FirstParameter() const
0067 {
0068 return Parameter2d(HLRBRep_BCurveTool::FirstParameter(myCurve));
0069 }
0070
0071 //=================================================================================================
0072
0073 inline double HLRBRep_Curve::LastParameter() const
0074 {
0075 return Parameter2d(HLRBRep_BCurveTool::LastParameter(myCurve));
0076 }
0077
0078 //=================================================================================================
0079
0080 inline GeomAbs_Shape HLRBRep_Curve::Continuity() const
0081 {
0082 return HLRBRep_BCurveTool::Continuity(myCurve);
0083 }
0084
0085 //=================================================================================================
0086
0087 inline int HLRBRep_Curve::NbIntervals(const GeomAbs_Shape S) const
0088 {
0089 return HLRBRep_BCurveTool::NbIntervals(myCurve, S);
0090 }
0091
0092 //=================================================================================================
0093
0094 inline void HLRBRep_Curve::Intervals(NCollection_Array1<double>& Tab, const GeomAbs_Shape Sh) const
0095 {
0096 HLRBRep_BCurveTool::Intervals(myCurve, Tab, Sh);
0097 }
0098
0099 //=================================================================================================
0100
0101 inline bool HLRBRep_Curve::IsClosed() const
0102 {
0103 return HLRBRep_BCurveTool::IsClosed(myCurve);
0104 }
0105
0106 //=================================================================================================
0107
0108 inline bool HLRBRep_Curve::IsPeriodic() const
0109 {
0110 return HLRBRep_BCurveTool::IsPeriodic(myCurve);
0111 }
0112
0113 //=================================================================================================
0114
0115 inline double HLRBRep_Curve::Period() const
0116 {
0117 return HLRBRep_BCurveTool::Period(myCurve);
0118 }
0119
0120 //=================================================================================================
0121
0122 inline gp_Pnt2d HLRBRep_Curve::Value(const double U) const
0123 {
0124 gp_Pnt2d P;
0125 D0(U, P);
0126 return P;
0127 }
0128
0129 //=================================================================================================
0130
0131 inline double HLRBRep_Curve::Resolution(const double R3d) const
0132 {
0133 return HLRBRep_BCurveTool::Resolution(myCurve, R3d);
0134 }
0135
0136 //=================================================================================================
0137
0138 inline GeomAbs_CurveType HLRBRep_Curve::GetType() const
0139 {
0140 return myType;
0141 }
0142
0143 //=================================================================================================
0144
0145 inline int HLRBRep_Curve::Degree() const
0146 {
0147 return HLRBRep_BCurveTool::Degree(myCurve);
0148 }
0149
0150 //=================================================================================================
0151
0152 inline int HLRBRep_Curve::NbPoles() const
0153 {
0154 return HLRBRep_BCurveTool::NbPoles(myCurve);
0155 }
0156
0157 //=================================================================================================
0158
0159 inline int HLRBRep_Curve::NbKnots() const
0160 {
0161 return HLRBRep_BCurveTool::NbKnots(myCurve);
0162 }
0163
0164 //=================================================================================================
0165
0166 inline bool HLRBRep_Curve::IsRational() const
0167 {
0168 return HLRBRep_BCurveTool::IsRational(myCurve);
0169 }