Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
Contap_ArcFunction Class Reference

#include <Contap_ArcFunction.hxx>

Inheritance diagram for Contap_ArcFunction:
Inheritance graph
[legend]

Public Member Functions

 Contap_ArcFunction ()
 
void Set (const occ::handle< Adaptor3d_Surface > &S)
 
void Set (const gp_Dir &Direction)
 
void Set (const gp_Dir &Direction, const double Angle)
 
void Set (const gp_Pnt &Eye)
 
void Set (const gp_Pnt &Eye, const double Angle)
 
void Set (const occ::handle< Adaptor2d_Curve2d > &A)
 
bool Value (const double X, double &F) override
 Computes the value <F>of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.
 
bool Derivative (const double X, double &D) override
 Computes the derivative <D> of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.
 
bool Values (const double X, double &F, double &D) override
 Computes the value <F> and the derivative <D> of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.
 
int NbSamples () const
 
int GetStateNumber () override
 returns the state of the function corresponding to the latest call of any methods associated with the function. This function is called by each of the algorithms described later which defined the function Integer Algorithm::StateNumber(). The algorithm has the responsibility to call this function when it has found a solution (i.e. a root or a minimum) and has to maintain the association between the solution found and this StateNumber. Byu default, this method returns 0 (which means for the algorithm: no state has been saved). It is the responsibility of the programmer to decide if he needs to save the current state of the function and to return an Integer that allows retrieval of the state.
 
const gp_PntValpoint (const int Index) const
 
const IntSurf_QuadricQuadric () const
 
const occ::handle< Adaptor3d_Surface > & Surface () const
 Returns mySurf field.
 
const gp_PntLastComputedPoint () const
 Returns the point, which has been computed while the last calling Value() method.
 
- Public Member Functions inherited from math_FunctionWithDerivative
 ~math_FunctionWithDerivative () override
 
- Public Member Functions inherited from math_Function
virtual ~math_Function ()=default
 Virtual destructor, for safe inheritance.
 

Constructor & Destructor Documentation

◆ Contap_ArcFunction()

Contap_ArcFunction::Contap_ArcFunction ( )

Member Function Documentation

◆ Derivative()

bool Contap_ArcFunction::Derivative ( const double X,
double & D )
overridevirtual

Computes the derivative <D> of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.

Implements math_FunctionWithDerivative.

◆ GetStateNumber()

int Contap_ArcFunction::GetStateNumber ( )
overridevirtual

returns the state of the function corresponding to the latest call of any methods associated with the function. This function is called by each of the algorithms described later which defined the function Integer Algorithm::StateNumber(). The algorithm has the responsibility to call this function when it has found a solution (i.e. a root or a minimum) and has to maintain the association between the solution found and this StateNumber. Byu default, this method returns 0 (which means for the algorithm: no state has been saved). It is the responsibility of the programmer to decide if he needs to save the current state of the function and to return an Integer that allows retrieval of the state.

Reimplemented from math_Function.

◆ LastComputedPoint()

const gp_Pnt & Contap_ArcFunction::LastComputedPoint ( ) const

Returns the point, which has been computed while the last calling Value() method.

◆ NbSamples()

int Contap_ArcFunction::NbSamples ( ) const

◆ Quadric()

const IntSurf_Quadric & Contap_ArcFunction::Quadric ( ) const

◆ Set() [1/6]

void Contap_ArcFunction::Set ( const gp_Dir & Direction)

◆ Set() [2/6]

void Contap_ArcFunction::Set ( const gp_Dir & Direction,
const double Angle )

◆ Set() [3/6]

void Contap_ArcFunction::Set ( const gp_Pnt & Eye)

◆ Set() [4/6]

void Contap_ArcFunction::Set ( const gp_Pnt & Eye,
const double Angle )

◆ Set() [5/6]

void Contap_ArcFunction::Set ( const occ::handle< Adaptor2d_Curve2d > & A)

◆ Set() [6/6]

void Contap_ArcFunction::Set ( const occ::handle< Adaptor3d_Surface > & S)

◆ Surface()

const occ::handle< Adaptor3d_Surface > & Contap_ArcFunction::Surface ( ) const

Returns mySurf field.

◆ Valpoint()

const gp_Pnt & Contap_ArcFunction::Valpoint ( const int Index) const

◆ Value()

bool Contap_ArcFunction::Value ( const double X,
double & F )
overridevirtual

Computes the value <F>of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.

Implements math_FunctionWithDerivative.

◆ Values()

bool Contap_ArcFunction::Values ( const double X,
double & F,
double & D )
overridevirtual

Computes the value <F> and the derivative <D> of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.

Implements math_FunctionWithDerivative.


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