Open CASCADE Technology  6.9.0
Public Member Functions

Approx_CurvlinFunc Class Reference

defines an abstract curve with curvilinear parametrization More...

#include <Approx_CurvlinFunc.hxx>

Inheritance diagram for Approx_CurvlinFunc:
Inheritance graph
[legend]

Public Member Functions

 Approx_CurvlinFunc (const Handle< Adaptor3d_HCurve > &C, const Standard_Real Tol)
 
 Approx_CurvlinFunc (const Handle< Adaptor2d_HCurve2d > &C2D, const Handle< Adaptor3d_HSurface > &S, const Standard_Real Tol)
 
 Approx_CurvlinFunc (const Handle< Adaptor2d_HCurve2d > &C2D1, const Handle< Adaptor2d_HCurve2d > &C2D2, const Handle< Adaptor3d_HSurface > &S1, const Handle< Adaptor3d_HSurface > &S2, const Standard_Real Tol)
 
void SetTol (const Standard_Real Tol)
 —Purpose Update the tolerance to used More...
 
Standard_Real FirstParameter () const
 
Standard_Real LastParameter () const
 
Standard_Integer NbIntervals (const GeomAbs_Shape S) const
 Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S> More...
 
void Intervals (TColStd_Array1OfReal &T, const GeomAbs_Shape S) const
 Stores in <T> the parameters bounding the intervals of continuity <S>. More...
 
void Trim (const Standard_Real First, const Standard_Real Last, const Standard_Real Tol)
 if First < 0 or Last > 1 More...
 
void Length ()
 Computes length of the curve. More...
 
Standard_Real Length (Adaptor3d_Curve &C, const Standard_Real FirstU, const Standard_Real LasrU) const
 Computes length of the curve segment. More...
 
Standard_Real GetLength () const
 
Standard_Real GetUParameter (Adaptor3d_Curve &C, const Standard_Real S, const Standard_Integer NumberOfCurve) const
 returns original parameter correponding S. if Case == 1 computation is performed on myC2D1 and mySurf1, otherwise it is done on myC2D2 and mySurf2. More...
 
Standard_Real GetSParameter (const Standard_Real U) const
 returns original parameter correponding S. More...
 
Standard_Boolean EvalCase1 (const Standard_Real S, const Standard_Integer Order, TColStd_Array1OfReal &Result) const
 if myCase != 1 More...
 
Standard_Boolean EvalCase2 (const Standard_Real S, const Standard_Integer Order, TColStd_Array1OfReal &Result) const
 if myCase != 2 More...
 
Standard_Boolean EvalCase3 (const Standard_Real S, const Standard_Integer Order, TColStd_Array1OfReal &Result)
 if myCase != 3 More...
 
- Public Member Functions inherited from MMgt_TShared
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
- 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 const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object. More...
 
Standard_Boolean IsInstance (const 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 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...
 
virtual Handle_Standard_Transient This () const
 Returns a Handle which references this object. Must never be called to objects created in stack. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 

Detailed Description

defines an abstract curve with curvilinear parametrization

Constructor & Destructor Documentation

Approx_CurvlinFunc::Approx_CurvlinFunc ( const Handle< Adaptor3d_HCurve > &  C,
const Standard_Real  Tol 
)
Approx_CurvlinFunc::Approx_CurvlinFunc ( const Handle< Adaptor2d_HCurve2d > &  C2D,
const Handle< Adaptor3d_HSurface > &  S,
const Standard_Real  Tol 
)
Approx_CurvlinFunc::Approx_CurvlinFunc ( const Handle< Adaptor2d_HCurve2d > &  C2D1,
const Handle< Adaptor2d_HCurve2d > &  C2D2,
const Handle< Adaptor3d_HSurface > &  S1,
const Handle< Adaptor3d_HSurface > &  S2,
const Standard_Real  Tol 
)

Member Function Documentation

Standard_Boolean Approx_CurvlinFunc::EvalCase1 ( const Standard_Real  S,
const Standard_Integer  Order,
TColStd_Array1OfReal Result 
) const

if myCase != 1

Standard_Boolean Approx_CurvlinFunc::EvalCase2 ( const Standard_Real  S,
const Standard_Integer  Order,
TColStd_Array1OfReal Result 
) const

if myCase != 2

Standard_Boolean Approx_CurvlinFunc::EvalCase3 ( const Standard_Real  S,
const Standard_Integer  Order,
TColStd_Array1OfReal Result 
)

if myCase != 3

Standard_Real Approx_CurvlinFunc::FirstParameter ( ) const
Standard_Real Approx_CurvlinFunc::GetLength ( ) const
Standard_Real Approx_CurvlinFunc::GetSParameter ( const Standard_Real  U) const

returns original parameter correponding S.

Standard_Real Approx_CurvlinFunc::GetUParameter ( Adaptor3d_Curve C,
const Standard_Real  S,
const Standard_Integer  NumberOfCurve 
) const

returns original parameter correponding S. if Case == 1 computation is performed on myC2D1 and mySurf1, otherwise it is done on myC2D2 and mySurf2.

void Approx_CurvlinFunc::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()

Standard_Real Approx_CurvlinFunc::LastParameter ( ) const
void Approx_CurvlinFunc::Length ( )

Computes length of the curve.

Standard_Real Approx_CurvlinFunc::Length ( Adaptor3d_Curve C,
const Standard_Real  FirstU,
const Standard_Real  LasrU 
) const

Computes length of the curve segment.

Standard_Integer Approx_CurvlinFunc::NbIntervals ( const GeomAbs_Shape  S) const

Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>

void Approx_CurvlinFunc::SetTol ( const Standard_Real  Tol)

—Purpose Update the tolerance to used

void Approx_CurvlinFunc::Trim ( const Standard_Real  First,
const Standard_Real  Last,
const Standard_Real  Tol 
)

if First < 0 or Last > 1


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