1 // File: HLRBRep_Curve.lxx
2 // Created: Fri Mar 13 11:08:32 1992
3 // Author: Christophe MARION
6 #include <Standard_NotImplemented.hxx>
7 #include <gp_Pnt2d.hxx>
8 #include <gp_Vec2d.hxx>
9 #include <gp_Lin2d.hxx>
10 #include <gp_Circ2d.hxx>
11 #include <gp_Elips2d.hxx>
12 #include <gp_Hypr2d.hxx>
13 #include <gp_Parab2d.hxx>
14 #include <HLRBRep_BCurveTool.hxx>
16 //=======================================================================
17 //function : Projector
19 //=======================================================================
21 inline void HLRBRep_Curve::Projector(const Standard_Address Proj)
24 //=======================================================================
27 //=======================================================================
29 inline BRepAdaptor_Curve& HLRBRep_Curve::Curve()
32 //=======================================================================
35 //=======================================================================
37 inline gp_Pnt HLRBRep_Curve::Value3D(const Standard_Real U) const
44 //=======================================================================
47 //=======================================================================
49 inline void HLRBRep_Curve::D0(const Standard_Real U, gp_Pnt& P) const
50 { HLRBRep_BCurveTool::D0(myCurve,U,P); }
52 //=======================================================================
55 //=======================================================================
57 inline void HLRBRep_Curve::D1(const Standard_Real U,
60 { HLRBRep_BCurveTool::D1(myCurve,U,P,V); }
62 //=======================================================================
63 //function : FirstParameter
65 //=======================================================================
67 inline Standard_Real HLRBRep_Curve::FirstParameter() const
68 { return Parameter2d(HLRBRep_BCurveTool::FirstParameter(myCurve)); }
70 //=======================================================================
71 //function : LastParameter
73 //=======================================================================
75 inline Standard_Real HLRBRep_Curve::LastParameter() const
76 { return Parameter2d(HLRBRep_BCurveTool::LastParameter(myCurve)); }
78 //=======================================================================
79 //function : Continuity
81 //=======================================================================
83 inline GeomAbs_Shape HLRBRep_Curve::Continuity() const
84 { return HLRBRep_BCurveTool::Continuity(myCurve); }
86 //=======================================================================
87 //function : NbIntervals
89 //=======================================================================
91 inline Standard_Integer HLRBRep_Curve::NbIntervals
92 (const GeomAbs_Shape S)
93 { return HLRBRep_BCurveTool::NbIntervals(myCurve,S); }
95 //=======================================================================
96 //function : Intervals
98 //=======================================================================
100 inline void HLRBRep_Curve::Intervals(TColStd_Array1OfReal& Tab,
101 const GeomAbs_Shape Sh)
102 { HLRBRep_BCurveTool::Intervals(myCurve,Tab,Sh); }
105 //=======================================================================
106 //function : IsClosed
108 //=======================================================================
110 inline Standard_Boolean HLRBRep_Curve::IsClosed()const
111 { return HLRBRep_BCurveTool::IsClosed(myCurve); }
113 //=======================================================================
114 //function : IsPeriodic
116 //=======================================================================
118 inline Standard_Boolean HLRBRep_Curve::IsPeriodic()const
119 { return HLRBRep_BCurveTool::IsPeriodic(myCurve); }
121 //=======================================================================
124 //=======================================================================
126 inline Standard_Real HLRBRep_Curve::Period()const
127 { return HLRBRep_BCurveTool::Period(myCurve); }
129 //=======================================================================
132 //=======================================================================
134 inline gp_Pnt2d HLRBRep_Curve::Value
135 (const Standard_Real U) const
142 //=======================================================================
143 //function : Resolution
145 //=======================================================================
147 inline Standard_Real HLRBRep_Curve::Resolution
148 (const Standard_Real R3d) const
149 { return HLRBRep_BCurveTool::Resolution(myCurve,R3d); }
151 //=======================================================================
154 //=======================================================================
156 inline GeomAbs_CurveType HLRBRep_Curve::GetType() const
159 //=======================================================================
162 //=======================================================================
164 inline Standard_Integer HLRBRep_Curve::Degree() const
165 { return HLRBRep_BCurveTool::Degree(myCurve); }
168 //=======================================================================
171 //=======================================================================
173 inline Standard_Integer HLRBRep_Curve::NbPoles() const
174 { return HLRBRep_BCurveTool::NbPoles(myCurve); }
176 //=======================================================================
179 //=======================================================================
181 inline Standard_Integer HLRBRep_Curve::NbKnots() const
182 { return HLRBRep_BCurveTool::NbKnots(myCurve); }
185 //=======================================================================
186 //function : IsRational
188 //=======================================================================
190 inline Standard_Boolean HLRBRep_Curve::IsRational() const
192 return HLRBRep_BCurveTool::IsRational(myCurve);