|
Open CASCADE Technology
7.7.2
|
The class BOPDS_SubIterator is used to compute intersections between bounding boxes of two sub-sets of BRep sub-shapes of arguments of an operation (see the class BOPDS_DS). The class provides interface to iterate the pairs of intersected sub-shapes. More...
#include <BOPDS_SubIterator.hxx>
Public Member Functions | |
| BOPDS_SubIterator () | |
| Empty constructor. More... | |
| virtual | ~BOPDS_SubIterator () |
| BOPDS_SubIterator (const Handle< NCollection_BaseAllocator > &theAllocator) | |
| Constructor theAllocator - the allocator to manage the memory. More... | |
| void | SetDS (const BOPDS_PDS &pDS) |
| Sets the data structure <pDS> to process. It is used to access the shapes and their bounding boxes. More... | |
| const BOPDS_DS & | DS () const |
| Returns the data structure. More... | |
| void | SetSubSet1 (const TColStd_ListOfInteger &theLI) |
| Sets the first set of indices <theLI> to process. More... | |
| const TColStd_ListOfInteger & | SubSet1 () const |
| Returns the first set of indices to process. More... | |
| void | SetSubSet2 (const TColStd_ListOfInteger &theLI) |
| Sets the second set of indices <theLI> to process. More... | |
| const TColStd_ListOfInteger & | SubSet2 () const |
| Returns the second set of indices to process. More... | |
| void | Initialize () |
| Initializes the iterator. More... | |
| Standard_Boolean | More () const |
| Returns true if there are more pairs of intersected shapes. More... | |
| void | Next () |
| Moves iterations ahead. More... | |
| void | Value (Standard_Integer &theIndex1, Standard_Integer &theIndex2) const |
| Returns indices (DS) of intersected shapes theIndex1 - the index of the first shape theIndex2 - the index of the second shape. More... | |
| virtual void | Prepare () |
| Perform the intersection algorithm and prepare the results to be used. More... | |
| Standard_Integer | ExpectedLength () const |
| Returns the number of interfering pairs. More... | |
Protected Member Functions | |
| virtual void | Intersect () |
| Performs intersection of bounding boxes. More... | |
The class BOPDS_SubIterator is used to compute intersections between bounding boxes of two sub-sets of BRep sub-shapes of arguments of an operation (see the class BOPDS_DS). The class provides interface to iterate the pairs of intersected sub-shapes.
| BOPDS_SubIterator::BOPDS_SubIterator | ( | ) |
Empty constructor.
|
virtual |
| BOPDS_SubIterator::BOPDS_SubIterator | ( | const Handle< NCollection_BaseAllocator > & | theAllocator | ) |
Constructor theAllocator - the allocator to manage the memory.
|
inline |
Returns the data structure.
|
inline |
Returns the number of interfering pairs.
| void BOPDS_SubIterator::Initialize | ( | ) |
Initializes the iterator.
|
protectedvirtual |
Performs intersection of bounding boxes.
|
inline |
Returns true if there are more pairs of intersected shapes.
|
inline |
Moves iterations ahead.
|
virtual |
Perform the intersection algorithm and prepare the results to be used.
|
inline |
Sets the data structure <pDS> to process. It is used to access the shapes and their bounding boxes.
|
inline |
Sets the first set of indices <theLI> to process.
|
inline |
Sets the second set of indices <theLI> to process.
|
inline |
Returns the first set of indices to process.
|
inline |
Returns the second set of indices to process.
| void BOPDS_SubIterator::Value | ( | Standard_Integer & | theIndex1, |
| Standard_Integer & | theIndex2 | ||
| ) | const |
Returns indices (DS) of intersected shapes theIndex1 - the index of the first shape theIndex2 - the index of the second shape.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.10