Open CASCADE Technology  7.1.0.beta
Public Member Functions | Protected Attributes

AppCont_Function Class Referenceabstract

Class describing a continous 3d and/or function f(u). This class must be provided by the user to use the approximation algorithm FittingCurve. More...

#include <AppCont_Function.hxx>

Inheritance diagram for AppCont_Function:
Inheritance graph
[legend]

Public Member Functions

 AppCont_Function ()
 
void GetNumberOfPoints (Standard_Integer &theNbPnt, Standard_Integer &theNbPnt2d) const
 Get number of 3d and 2d points returned by "Value" and "D1" functions. More...
 
Standard_Integer GetNbOf3dPoints () const
 Get number of 3d points returned by "Value" and "D1" functions. More...
 
Standard_Integer GetNbOf2dPoints () const
 Get number of 2d points returned by "Value" and "D1" functions. More...
 
virtual ~AppCont_Function ()
 Destructor. More...
 
virtual Standard_Real FirstParameter () const =0
 Returns the first parameter of the function. More...
 
virtual Standard_Real LastParameter () const =0
 Returns the last parameter of the function. More...
 
virtual Standard_Boolean Value (const Standard_Real theU, NCollection_Array1< gp_Pnt2d > &thePnt2d, NCollection_Array1< gp_Pnt > &thePnt) const =0
 Returns the point at parameter <theU>. More...
 
virtual Standard_Boolean D1 (const Standard_Real theU, NCollection_Array1< gp_Vec2d > &theVec2d, NCollection_Array1< gp_Vec > &theVec) const =0
 Returns the derivative at parameter <theU>. More...
 
virtual void PeriodInformation (const Standard_Integer, Standard_Boolean &IsPeriodic, Standard_Real &thePeriod) const
 Return information about peridicity in output paramateters space. More...
 

Protected Attributes

Standard_Integer myNbPnt
 
Standard_Integer myNbPnt2d
 

Detailed Description

Class describing a continous 3d and/or function f(u). This class must be provided by the user to use the approximation algorithm FittingCurve.

Constructor & Destructor Documentation

AppCont_Function::AppCont_Function ( )
inline
virtual AppCont_Function::~AppCont_Function ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual Standard_Boolean AppCont_Function::D1 ( const Standard_Real  theU,
NCollection_Array1< gp_Vec2d > &  theVec2d,
NCollection_Array1< gp_Vec > &  theVec 
) const
pure virtual

Returns the derivative at parameter <theU>.

Implemented in BRepFill_MultiLine.

virtual Standard_Real AppCont_Function::FirstParameter ( ) const
pure virtual

Returns the first parameter of the function.

Implemented in BRepFill_MultiLine.

Standard_Integer AppCont_Function::GetNbOf2dPoints ( ) const
inline

Get number of 2d points returned by "Value" and "D1" functions.

Standard_Integer AppCont_Function::GetNbOf3dPoints ( ) const
inline

Get number of 3d points returned by "Value" and "D1" functions.

void AppCont_Function::GetNumberOfPoints ( Standard_Integer theNbPnt,
Standard_Integer theNbPnt2d 
) const
inline

Get number of 3d and 2d points returned by "Value" and "D1" functions.

virtual Standard_Real AppCont_Function::LastParameter ( ) const
pure virtual

Returns the last parameter of the function.

Implemented in BRepFill_MultiLine.

virtual void AppCont_Function::PeriodInformation ( const Standard_Integer  ,
Standard_Boolean IsPeriodic,
Standard_Real thePeriod 
) const
inlinevirtual

Return information about peridicity in output paramateters space.

Parameters
theDimIdxDefines index in output parameters space. 1 <= theDimIdx <= 3 * myNbPnt + 2 * myNbPnt2d.
virtual Standard_Boolean AppCont_Function::Value ( const Standard_Real  theU,
NCollection_Array1< gp_Pnt2d > &  thePnt2d,
NCollection_Array1< gp_Pnt > &  thePnt 
) const
pure virtual

Returns the point at parameter <theU>.

Implemented in BRepFill_MultiLine.

Field Documentation

Standard_Integer AppCont_Function::myNbPnt
protected
Standard_Integer AppCont_Function::myNbPnt2d
protected

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