Open CASCADE Technology  7.4.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 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

defines an abstract curve with curvilinear parametrization

Constructor & Destructor Documentation

◆ Approx_CurvlinFunc() [1/3]

Approx_CurvlinFunc::Approx_CurvlinFunc ( const Handle< Adaptor3d_HCurve > &  C,
const Standard_Real  Tol 
)

◆ Approx_CurvlinFunc() [2/3]

Approx_CurvlinFunc::Approx_CurvlinFunc ( const Handle< Adaptor2d_HCurve2d > &  C2D,
const Handle< Adaptor3d_HSurface > &  S,
const Standard_Real  Tol 
)

◆ Approx_CurvlinFunc() [3/3]

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

◆ EvalCase1()

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

if myCase != 1

◆ EvalCase2()

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

if myCase != 2

◆ EvalCase3()

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

if myCase != 3

◆ FirstParameter()

Standard_Real Approx_CurvlinFunc::FirstParameter ( ) const

◆ GetLength()

Standard_Real Approx_CurvlinFunc::GetLength ( ) const

◆ GetSParameter()

Standard_Real Approx_CurvlinFunc::GetSParameter ( const Standard_Real  U) const

returns original parameter correponding S.

◆ GetUParameter()

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.

◆ Intervals()

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()

◆ LastParameter()

Standard_Real Approx_CurvlinFunc::LastParameter ( ) const

◆ Length() [1/2]

void Approx_CurvlinFunc::Length ( )

Computes length of the curve.

◆ Length() [2/2]

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

Computes length of the curve segment.

◆ NbIntervals()

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>

◆ SetTol()

void Approx_CurvlinFunc::SetTol ( const Standard_Real  Tol)

—Purpose Update the tolerance to used

◆ Trim()

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: