Open CASCADE Technology  7.4.0
Public Member Functions

Adaptor2d_HCurve2d Class Referenceabstract

Root class for 2D curves manipulated by handles, 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 specific class is provided: Geom2dAdaptor_HCurve for a curve from the Geom2d package. More...

#include <Adaptor2d_HCurve2d.hxx>

Inheritance diagram for Adaptor2d_HCurve2d:
Inheritance graph
[legend]

Public Member Functions

virtual const Adaptor2d_Curve2dCurve2d () const =0
 Returns a reference to the Curve2d inside the HCurve2d. More...
 
Standard_Real FirstParameter () const
 
Standard_Real LastParameter () const
 
GeomAbs_Shape Continuity () const
 
Standard_Integer NbIntervals (const GeomAbs_Shape S) const
 
void Intervals (TColStd_Array1OfReal &T, const GeomAbs_Shape S) const
 
Handle< Adaptor2d_HCurve2dTrim (const Standard_Real First, const Standard_Real Last, const Standard_Real Tol) const
 If <First> >= <Last> More...
 
Standard_Boolean IsClosed () const
 
Standard_Boolean IsPeriodic () const
 
Standard_Real Period () const
 
gp_Pnt2d Value (const Standard_Real U) const
 
void D0 (const Standard_Real U, gp_Pnt2d &P) const
 
void D1 (const Standard_Real U, gp_Pnt2d &P, gp_Vec2d &V) const
 
void D2 (const Standard_Real U, gp_Pnt2d &P, gp_Vec2d &V1, gp_Vec2d &V2) const
 
void D3 (const Standard_Real U, gp_Pnt2d &P, gp_Vec2d &V1, gp_Vec2d &V2, gp_Vec2d &V3) const
 
gp_Vec2d DN (const Standard_Real U, const Standard_Integer N) const
 
Standard_Real Resolution (const Standard_Real R3d) const
 
GeomAbs_CurveType GetType () const
 
gp_Lin2d Line () const
 
gp_Circ2d Circle () const
 
gp_Elips2d Ellipse () const
 
gp_Hypr2d Hyperbola () const
 
gp_Parab2d Parabola () const
 
Standard_Integer Degree () const
 
Standard_Boolean IsRational () const
 
Standard_Integer NbPoles () const
 
Standard_Integer NbKnots () const
 
Handle< Geom2d_BezierCurveBezier () const
 
virtual Handle< Geom2d_BSplineCurveBSpline () const
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object. More...
 
Standard_Boolean IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const opencascade::handle< Standard_Type > &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_TransientThis () const
 Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 
void IncrementRefCounter () const
 Increments the reference counter of this object. More...
 
Standard_Integer DecrementRefCounter () const
 Decrements the reference counter of this object; returns the decremented value. More...
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object. More...
 
- Static Public Member Functions inherited from Standard_Transient
static const char * get_type_name ()
 Returns a type descriptor about this object. More...
 
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class. More...
 

Detailed Description

Root class for 2D curves manipulated by handles, 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 specific class is provided: Geom2dAdaptor_HCurve for a curve from the Geom2d package.

Member Function Documentation

◆ Bezier()

Handle< Geom2d_BezierCurve > Adaptor2d_HCurve2d::Bezier ( ) const

◆ BSpline()

virtual Handle< Geom2d_BSplineCurve > Adaptor2d_HCurve2d::BSpline ( ) const
virtual

◆ Circle()

gp_Circ2d Adaptor2d_HCurve2d::Circle ( ) const

◆ Continuity()

GeomAbs_Shape Adaptor2d_HCurve2d::Continuity ( ) const

◆ Curve2d()

virtual const Adaptor2d_Curve2d& Adaptor2d_HCurve2d::Curve2d ( ) const
pure virtual

Returns a reference to the Curve2d inside the HCurve2d.

Implemented in Adaptor2d_HLine2d, Adaptor2d_HOffsetCurve, Geom2dAdaptor_GHCurve, ProjLib_HCompProjectedCurve, ProjLib_HProjectedCurve, and BRepAdaptor_HCurve2d.

◆ D0()

void Adaptor2d_HCurve2d::D0 ( const Standard_Real  U,
gp_Pnt2d P 
) const

◆ D1()

void Adaptor2d_HCurve2d::D1 ( const Standard_Real  U,
gp_Pnt2d P,
gp_Vec2d V 
) const

◆ D2()

void Adaptor2d_HCurve2d::D2 ( const Standard_Real  U,
gp_Pnt2d P,
gp_Vec2d V1,
gp_Vec2d V2 
) const

◆ D3()

void Adaptor2d_HCurve2d::D3 ( const Standard_Real  U,
gp_Pnt2d P,
gp_Vec2d V1,
gp_Vec2d V2,
gp_Vec2d V3 
) const

◆ Degree()

Standard_Integer Adaptor2d_HCurve2d::Degree ( ) const

◆ DN()

gp_Vec2d Adaptor2d_HCurve2d::DN ( const Standard_Real  U,
const Standard_Integer  N 
) const

◆ Ellipse()

gp_Elips2d Adaptor2d_HCurve2d::Ellipse ( ) const

◆ FirstParameter()

Standard_Real Adaptor2d_HCurve2d::FirstParameter ( ) const

◆ GetType()

GeomAbs_CurveType Adaptor2d_HCurve2d::GetType ( ) const

◆ Hyperbola()

gp_Hypr2d Adaptor2d_HCurve2d::Hyperbola ( ) const

◆ Intervals()

void Adaptor2d_HCurve2d::Intervals ( TColStd_Array1OfReal T,
const GeomAbs_Shape  S 
) const

◆ IsClosed()

Standard_Boolean Adaptor2d_HCurve2d::IsClosed ( ) const

◆ IsPeriodic()

Standard_Boolean Adaptor2d_HCurve2d::IsPeriodic ( ) const

◆ IsRational()

Standard_Boolean Adaptor2d_HCurve2d::IsRational ( ) const

◆ LastParameter()

Standard_Real Adaptor2d_HCurve2d::LastParameter ( ) const

◆ Line()

gp_Lin2d Adaptor2d_HCurve2d::Line ( ) const

◆ NbIntervals()

Standard_Integer Adaptor2d_HCurve2d::NbIntervals ( const GeomAbs_Shape  S) const

◆ NbKnots()

Standard_Integer Adaptor2d_HCurve2d::NbKnots ( ) const

◆ NbPoles()

Standard_Integer Adaptor2d_HCurve2d::NbPoles ( ) const

◆ Parabola()

gp_Parab2d Adaptor2d_HCurve2d::Parabola ( ) const

◆ Period()

Standard_Real Adaptor2d_HCurve2d::Period ( ) const

◆ Resolution()

Standard_Real Adaptor2d_HCurve2d::Resolution ( const Standard_Real  R3d) const

◆ Trim()

Handle< Adaptor2d_HCurve2d > Adaptor2d_HCurve2d::Trim ( const Standard_Real  First,
const Standard_Real  Last,
const Standard_Real  Tol 
) const

If <First> >= <Last>

◆ Value()

gp_Pnt2d Adaptor2d_HCurve2d::Value ( const Standard_Real  U) const

The documentation for this class was generated from the following file: