Open CASCADE Technology
6.5.4
|
Root class for 2D curves on which geometric
algorithms work.
An adapted curve is an interface between the
services provided by a curve, and those required of
the curve by algorithms, which use it.
A derived concrete class is provided:
Geom2dAdaptor_Curve for a curve from the Geom2d package.
#include <Adaptor2d_Curve2d.hxx>
Public Member Functions | |
virtual DEFINE_STANDARD_ALLOC void | Delete () |
virtual | ~Adaptor2d_Curve2d () |
virtual Standard_Real | FirstParameter () const |
virtual Standard_Real | LastParameter () const |
virtual GeomAbs_Shape | Continuity () const |
virtual Standard_Integer | NbIntervals (const GeomAbs_Shape S) const |
If necessary, breaks the curve in intervals of continuity <S>. And returns the number of intervals. | |
virtual void | Intervals (TColStd_Array1OfReal &T, const GeomAbs_Shape S) const |
Stores in <T> the parameters bounding the intervals of continuity <S>. The array must provide enough room to accomodate for the parameters. i.e. T.Length() > NbIntervals() | |
virtual Handle_Adaptor2d_HCurve2d | Trim (const Standard_Real First, const Standard_Real Last, const Standard_Real Tol) const |
Returns a curve equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. //! If <First> >= <Last> | |
virtual Standard_Boolean | IsClosed () const |
virtual Standard_Boolean | IsPeriodic () const |
virtual Standard_Real | Period () const |
virtual gp_Pnt2d | Value (const Standard_Real U) const |
Computes the point of parameter U on the curve. | |
virtual void | D0 (const Standard_Real U, gp_Pnt2d &P) const |
Computes the point of parameter U on the curve. | |
virtual void | D1 (const Standard_Real U, gp_Pnt2d &P, gp_Vec2d &V) const |
Computes the point of parameter U on the curve with its first derivative. //! Raised if the continuity of the current interval is not C1. | |
virtual void | D2 (const Standard_Real U, gp_Pnt2d &P, gp_Vec2d &V1, gp_Vec2d &V2) const |
Returns the point P of parameter U, the first and second derivatives V1 and V2. //! Raised if the continuity of the current interval is not C2. | |
virtual void | D3 (const Standard_Real U, gp_Pnt2d &P, gp_Vec2d &V1, gp_Vec2d &V2, gp_Vec2d &V3) const |
Returns the point P of parameter U, the first, the second and the third derivative. //! Raised if the continuity of the current interval is not C3. | |
virtual gp_Vec2d | DN (const Standard_Real U, const Standard_Integer N) const |
The returned vector gives the value of the derivative for the order of derivation N. //! Raised if the continuity of the current interval is not CN. //! Raised if N < 1. | |
virtual Standard_Real | Resolution (const Standard_Real R3d) const |
Returns the parametric resolution corresponding to the real space resolution <R3d>. | |
virtual GeomAbs_CurveType | GetType () const |
Returns the type of the curve in the current interval : Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve. | |
virtual gp_Lin2d | Line () const |
virtual gp_Circ2d | Circle () const |
virtual gp_Elips2d | Ellipse () const |
virtual gp_Hypr2d | Hyperbola () const |
virtual gp_Parab2d | Parabola () const |
virtual Standard_Integer | Degree () const |
virtual Standard_Boolean | IsRational () const |
virtual Standard_Integer | NbPoles () const |
virtual Standard_Integer | NbKnots () const |
virtual Handle_Geom2d_BezierCurve | Bezier () const |
virtual Handle_Geom2d_BSplineCurve | BSpline () const |
virtual Adaptor2d_Curve2d::~Adaptor2d_Curve2d | ( | ) | [inline, virtual] |
virtual Handle_Geom2d_BezierCurve Adaptor2d_Curve2d::Bezier | ( | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual Handle_Geom2d_BSplineCurve Adaptor2d_Curve2d::BSpline | ( | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual gp_Circ2d Adaptor2d_Curve2d::Circle | ( | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual GeomAbs_Shape Adaptor2d_Curve2d::Continuity | ( | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual void Adaptor2d_Curve2d::D0 | ( | const Standard_Real | U, |
gp_Pnt2d & | P | ||
) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, ProjLib_CompProjectedCurve, and Adaptor2d_Line2d.
virtual void Adaptor2d_Curve2d::D1 | ( | const Standard_Real | U, |
gp_Pnt2d & | P, | ||
gp_Vec2d & | V | ||
) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, ProjLib_CompProjectedCurve, and Adaptor2d_Line2d.
virtual void Adaptor2d_Curve2d::D2 | ( | const Standard_Real | U, |
gp_Pnt2d & | P, | ||
gp_Vec2d & | V1, | ||
gp_Vec2d & | V2 | ||
) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, ProjLib_CompProjectedCurve, and Adaptor2d_Line2d.
virtual void Adaptor2d_Curve2d::D3 | ( | const Standard_Real | U, |
gp_Pnt2d & | P, | ||
gp_Vec2d & | V1, | ||
gp_Vec2d & | V2, | ||
gp_Vec2d & | V3 | ||
) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual Standard_Integer Adaptor2d_Curve2d::Degree | ( | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual DEFINE_STANDARD_ALLOC void Adaptor2d_Curve2d::Delete | ( | ) | [virtual] |
virtual gp_Vec2d Adaptor2d_Curve2d::DN | ( | const Standard_Real | U, |
const Standard_Integer | N | ||
) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, ProjLib_CompProjectedCurve, and Adaptor2d_Line2d.
virtual gp_Elips2d Adaptor2d_Curve2d::Ellipse | ( | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual Standard_Real Adaptor2d_Curve2d::FirstParameter | ( | ) | const [virtual] |
Reimplemented in ProjLib_CompProjectedCurve, ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual GeomAbs_CurveType Adaptor2d_Curve2d::GetType | ( | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, ProjLib_CompProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual gp_Hypr2d Adaptor2d_Curve2d::Hyperbola | ( | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual void Adaptor2d_Curve2d::Intervals | ( | TColStd_Array1OfReal & | T, |
const GeomAbs_Shape | S | ||
) | const [virtual] |
Reimplemented in ProjLib_CompProjectedCurve, ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual Standard_Boolean Adaptor2d_Curve2d::IsClosed | ( | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual Standard_Boolean Adaptor2d_Curve2d::IsPeriodic | ( | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual Standard_Boolean Adaptor2d_Curve2d::IsRational | ( | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual Standard_Real Adaptor2d_Curve2d::LastParameter | ( | ) | const [virtual] |
Reimplemented in ProjLib_CompProjectedCurve, ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual gp_Lin2d Adaptor2d_Curve2d::Line | ( | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual Standard_Integer Adaptor2d_Curve2d::NbIntervals | ( | const GeomAbs_Shape | S | ) | const [virtual] |
Reimplemented in ProjLib_CompProjectedCurve, ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual Standard_Integer Adaptor2d_Curve2d::NbKnots | ( | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual Standard_Integer Adaptor2d_Curve2d::NbPoles | ( | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual gp_Parab2d Adaptor2d_Curve2d::Parabola | ( | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual Standard_Real Adaptor2d_Curve2d::Period | ( | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual Standard_Real Adaptor2d_Curve2d::Resolution | ( | const Standard_Real | R3d | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual Handle_Adaptor2d_HCurve2d Adaptor2d_Curve2d::Trim | ( | const Standard_Real | First, |
const Standard_Real | Last, | ||
const Standard_Real | Tol | ||
) | const [virtual] |
Reimplemented in ProjLib_CompProjectedCurve, ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, and Adaptor2d_Line2d.
virtual gp_Pnt2d Adaptor2d_Curve2d::Value | ( | const Standard_Real | U | ) | const [virtual] |
Reimplemented in ProjLib_ProjectedCurve, Adaptor3d_OffsetCurve, Geom2dAdaptor_Curve, ProjLib_CompProjectedCurve, and Adaptor2d_Line2d.