OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKBO
IntTools


IntTools_Root Class Reference

The class is to describe the root of
function of one variable for Edge/Edge
and Edge/Surface algorithms.
.

#include <IntTools_Root.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT IntTools_Root ()
 Empty constructor
.
Standard_EXPORT IntTools_Root (const Standard_Real aRoot, const Standard_Integer aType)
 Initializes my by range of parameters
and type of root
.
Standard_EXPORT void SetRoot (const Standard_Real aRoot)
 Sets the Root's value
.
Standard_EXPORT void SetType (const Standard_Integer aType)
 Sets the Root's Type
.
Standard_EXPORT void SetStateBefore (const TopAbs_State aState)
 Set the value of the state before the root
(at t=Root-dt)
.
Standard_EXPORT void SetStateAfter (const TopAbs_State aState)
 Set the value of the state after the root
(at t=Root-dt)
.
Standard_EXPORT void SetLayerHeight (const Standard_Real aHeight)
 Not used in Edge/Edge algorithm
.
Standard_EXPORT 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_EXPORT Standard_Real Root () const
 Returns the Root value
.
Standard_EXPORT 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] );
.
Standard_EXPORT TopAbs_State StateBefore () const
 Returns the state before the root
.
Standard_EXPORT TopAbs_State StateAfter () const
 Returns the state after the root
.
Standard_EXPORT Standard_Real LayerHeight () const
 Not used in Edge/Edge algorithm
.
Standard_EXPORT 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.
.
Standard_EXPORT 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).
.

Private Attributes

Standard_Real myRoot
Standard_Integer myType
Standard_Real myLayerHeight
TopAbs_State myStateBefore
TopAbs_State myStateAfter
Standard_Real myt1
Standard_Real myt2
Standard_Real myf1
Standard_Real myf2


Constructor & Destructor Documentation

Standard_EXPORT IntTools_Root::IntTools_Root  ) 
 

Standard_EXPORT IntTools_Root::IntTools_Root const Standard_Real  aRoot,
const Standard_Integer  aType
 


Member Function Documentation

Standard_EXPORT void IntTools_Root::Interval Standard_Real &  t1,
Standard_Real &  t2,
Standard_Real &  f1,
Standard_Real &  f2
const
 

Standard_EXPORT Standard_Boolean IntTools_Root::IsValid  )  const
 

Standard_EXPORT Standard_Real IntTools_Root::LayerHeight  )  const
 

void IntTools_Root::operator delete void *  anAddress  )  [inline]
 

void* IntTools_Root::operator new size_t  size  )  [inline]
 

void* IntTools_Root::operator new size_t  ,
void *  anAddress
[inline]
 

Standard_EXPORT Standard_Real IntTools_Root::Root  )  const
 

Standard_EXPORT void IntTools_Root::SetInterval const Standard_Real  t1,
const Standard_Real  t2,
const Standard_Real  f1,
const Standard_Real  f2
 

Standard_EXPORT void IntTools_Root::SetLayerHeight const Standard_Real  aHeight  ) 
 

Standard_EXPORT void IntTools_Root::SetRoot const Standard_Real  aRoot  ) 
 

Standard_EXPORT void IntTools_Root::SetStateAfter const TopAbs_State  aState  ) 
 

Standard_EXPORT void IntTools_Root::SetStateBefore const TopAbs_State  aState  ) 
 

Standard_EXPORT void IntTools_Root::SetType const Standard_Integer  aType  ) 
 

Standard_EXPORT TopAbs_State IntTools_Root::StateAfter  )  const
 

Standard_EXPORT TopAbs_State IntTools_Root::StateBefore  )  const
 

Standard_EXPORT Standard_Integer IntTools_Root::Type  )  const
 


Field Documentation

Standard_Real IntTools_Root::myf1 [private]
 

Standard_Real IntTools_Root::myf2 [private]
 

Standard_Real IntTools_Root::myLayerHeight [private]
 

Standard_Real IntTools_Root::myRoot [private]
 

TopAbs_State IntTools_Root::myStateAfter [private]
 

TopAbs_State IntTools_Root::myStateBefore [private]
 

Standard_Real IntTools_Root::myt1 [private]
 

Standard_Real IntTools_Root::myt2 [private]
 

Standard_Integer IntTools_Root::myType [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:42:21 2008 for OpenCASCADE by  doxygen 1.4.1