Open CASCADE Technology 7.8.2.dev
|
The class is to describe the root of function of one variable for Edge/Edge and Edge/Surface algorithms. More...
#include <IntTools_Root.hxx>
Public Member Functions | |
IntTools_Root () | |
Empty constructor. | |
IntTools_Root (const Standard_Real aRoot, const Standard_Integer aType) | |
Initializes my by range of parameters and type of root. | |
void | SetRoot (const Standard_Real aRoot) |
Sets the Root's value. | |
void | SetType (const Standard_Integer aType) |
Sets the Root's Type. | |
void | SetStateBefore (const TopAbs_State aState) |
Set the value of the state before the root (at t=Root-dt) | |
void | SetStateAfter (const TopAbs_State aState) |
Set the value of the state after the root (at t=Root-dt) | |
void | SetLayerHeight (const Standard_Real aHeight) |
Not used in Edge/Edge algorithm. | |
void | SetInterval (const Standard_Real t1, const Standard_Real t2, const Standard_Real f1, const Standard_Real f2) |
Sets the interval from which the Root was found [t1,t2] and the corresponding values of the function on the bounds f(t1), f(t2). | |
Standard_Real | Root () const |
Returns the Root value. | |
Standard_Integer | Type () const |
Returns the type of the root =0 - Simple (was found by bisection method); =2 - Smart when f1=0, f2!=0 or vice versa (was found by Fibbonacci method); =1 - Pure (pure zero for all t [t1,t2] );. | |
TopAbs_State | StateBefore () const |
Returns the state before the root. | |
TopAbs_State | StateAfter () const |
Returns the state after the root. | |
Standard_Real | LayerHeight () const |
Not used in Edge/Edge algorithm. | |
Standard_Boolean | IsValid () const |
Returns the validity flag for the root, True if myStateBefore==TopAbs_OUT && myStateAfter==TopAbs_IN or myStateBefore==TopAbs_OUT && myStateAfter==TopAbs_ON or myStateBefore==TopAbs_ON && myStateAfter==TopAbs_OUT or myStateBefore==TopAbs_IN && myStateAfter==TopAbs_OUT . For other cases it returns False. | |
void | Interval (Standard_Real &t1, Standard_Real &t2, Standard_Real &f1, Standard_Real &f2) const |
Returns the values of interval from which the Root was found [t1,t2] and the corresponding values of the function on the bounds f(t1), f(t2). | |
The class is to describe the root of function of one variable for Edge/Edge and Edge/Surface algorithms.
IntTools_Root::IntTools_Root | ( | ) |
Empty constructor.
IntTools_Root::IntTools_Root | ( | const Standard_Real | aRoot, |
const Standard_Integer | aType ) |
Initializes my by range of parameters and type of root.
void IntTools_Root::Interval | ( | Standard_Real & | t1, |
Standard_Real & | t2, | ||
Standard_Real & | f1, | ||
Standard_Real & | f2 ) const |
Returns the values of interval from which the Root was found [t1,t2] and the corresponding values of the function on the bounds f(t1), f(t2).
Standard_Boolean IntTools_Root::IsValid | ( | ) | const |
Returns the validity flag for the root, True if myStateBefore==TopAbs_OUT && myStateAfter==TopAbs_IN or myStateBefore==TopAbs_OUT && myStateAfter==TopAbs_ON or myStateBefore==TopAbs_ON && myStateAfter==TopAbs_OUT or myStateBefore==TopAbs_IN && myStateAfter==TopAbs_OUT . For other cases it returns False.
Standard_Real IntTools_Root::LayerHeight | ( | ) | const |
Not used in Edge/Edge algorithm.
Standard_Real IntTools_Root::Root | ( | ) | const |
Returns the Root value.
void IntTools_Root::SetInterval | ( | const Standard_Real | t1, |
const Standard_Real | t2, | ||
const Standard_Real | f1, | ||
const Standard_Real | f2 ) |
Sets the interval from which the Root was found [t1,t2] and the corresponding values of the function on the bounds f(t1), f(t2).
void IntTools_Root::SetLayerHeight | ( | const Standard_Real | aHeight | ) |
Not used in Edge/Edge algorithm.
void IntTools_Root::SetRoot | ( | const Standard_Real | aRoot | ) |
Sets the Root's value.
void IntTools_Root::SetStateAfter | ( | const TopAbs_State | aState | ) |
Set the value of the state after the root (at t=Root-dt)
void IntTools_Root::SetStateBefore | ( | const TopAbs_State | aState | ) |
Set the value of the state before the root (at t=Root-dt)
void IntTools_Root::SetType | ( | const Standard_Integer | aType | ) |
Sets the Root's Type.
TopAbs_State IntTools_Root::StateAfter | ( | ) | const |
Returns the state after the root.
TopAbs_State IntTools_Root::StateBefore | ( | ) | const |
Returns the state before the root.
Standard_Integer IntTools_Root::Type | ( | ) | const |
Returns the type of the root =0 - Simple (was found by bisection method); =2 - Smart when f1=0, f2!=0 or vice versa (was found by Fibbonacci method); =1 - Pure (pure zero for all t [t1,t2] );.