Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
BOP_AreaBuilder Class Reference

#include <BOP_AreaBuilder.hxx>

Inheritance diagram for BOP_AreaBuilder:
Inheritance graph
[legend]

Public Member Functions

DEFINE_STANDARD_ALLOC BOP_AreaBuilder ()
 Empty Constructor


 BOP_AreaBuilder (BOP_LoopSet &LS, BOP_LoopClassifier &LC, const Standard_Boolean ForceClass=Standard_False)
 Creates the objectr to build the areas on
the shapes described by <LS> using the classifier <LC>.


virtual void Delete ()
 Destructor


virtual ~BOP_AreaBuilder ()
virtual void InitAreaBuilder (BOP_LoopSet &LS, BOP_LoopClassifier &LC, const Standard_Boolean ForceClass=Standard_False)
 Sets a AreaBuilder to find the areas on
the shapes described by <LS> using the classifier <LC>.


Standard_Integer InitArea ()
 Initialize iteration on areas.


Standard_Boolean MoreArea () const
void NextArea ()
Standard_Integer InitLoop ()
 Initialize iteration on loops of current Area.


Standard_Boolean MoreLoop () const
void NextLoop ()
const Handle_BOP_Loop & Loop () const
 Returns the current Loop in the current area.



Methods that are not for public usage


virtual void ADD_Loop_TO_LISTOFLoop (const Handle< BOP_Loop > &L, BOP_ListOfLoop &LOL) const
 Internal


virtual void REM_Loop_FROM_LISTOFLoop (BOP_ListIteratorOfListOfLoop &ITLOL, BOP_ListOfLoop &LOL) const
 Internal


virtual void ADD_LISTOFLoop_TO_LISTOFLoop (BOP_ListOfLoop &LOL1, BOP_ListOfLoop &LOL2) const
 Internal


Protected Member Functions

TopAbs_State CompareLoopWithListOfLoop (BOP_LoopClassifier &LC, const Handle< BOP_Loop > &L, const BOP_ListOfLoop &LOL, const BOP_LoopEnum aWhat) const
 Compare position of the Loop <L> with the Area <LOL>
using the Loop Classifier <LC>.
According to <aWhat>, Loops of <LOL> are selected or not
during <LOL> exploration.

Result : TopAbs_OUT if <LOL> is empty
TopAbs_UNKNOWN if position undefined
TopAbs_IN if <L> is inside all the selected Loops of <LOL>
TopAbs_OUT if <L> is outside one of the selected Loops of <LOL>
TopAbs_ON if <L> is on one of the selected Loops of <LOL>



void Atomize (TopAbs_State &state, const TopAbs_State newstate) const
 Internal


Protected Attributes

BOP_ListOfListOfLoop myArea
BOP_ListIteratorOfListOfListOfLoop myAreaIterator
BOP_ListIteratorOfListOfLoop myLoopIterator
Standard_Boolean myUNKNOWNRaise

Constructor & Destructor Documentation

virtual BOP_AreaBuilder::~BOP_AreaBuilder ( ) [inline, virtual]

Member Function Documentation

virtual void BOP_AreaBuilder::ADD_LISTOFLoop_TO_LISTOFLoop ( BOP_ListOfLoop LOL1,
BOP_ListOfLoop LOL2 
) const [virtual]
virtual void BOP_AreaBuilder::ADD_Loop_TO_LISTOFLoop ( const Handle< BOP_Loop > &  L,
BOP_ListOfLoop LOL 
) const [virtual]
void BOP_AreaBuilder::Atomize ( TopAbs_State state,
const TopAbs_State  newstate 
) const [protected]
virtual void BOP_AreaBuilder::Delete ( ) [virtual]

Reimplemented in BOP_Area2dBuilder, and BOP_Area3dBuilder.

const Handle_BOP_Loop& BOP_AreaBuilder::Loop ( ) const

Field Documentation


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