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

ModelingAlgorithms
TKBO
BOPTools


BOPTools_IteratorOfCoupleOfShape Class Reference

The class IteratorOfCoupleOfShape provides the iteration
on the couples of shapes stored in ShapesDataStructure
according to the given types of shapes and
status of their intersection.
The statuses are stored in 2 dimension array.
.

#include <BOPTools_IteratorOfCoupleOfShape.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT BOPTools_IteratorOfCoupleOfShape ()
 Empty Constructor
.
Standard_EXPORT BOPTools_IteratorOfCoupleOfShape (const BooleanOperations_PShapesDataStructure &PDS, const TopAbs_ShapeEnum Type1, const TopAbs_ShapeEnum Type2)
 Initializes iterator by ShapesDataStructure and
shape types
.
virtual Standard_EXPORT void Destroy ()
virtual Standard_EXPORT ~BOPTools_IteratorOfCoupleOfShape ()
virtual Standard_EXPORT void Initialize (const TopAbs_ShapeEnum Type1, const TopAbs_ShapeEnum Type2)
 Initializes iterator with shape types.
The iterator uses PDS assigned in constructor or in SetDataStructure().
Raises the exception if myPDS is null.
.
Standard_EXPORT void SetDataStructure (const BooleanOperations_PShapesDataStructure &PDS)
 Initialize iterator with ShapeDataStructure.
.
virtual Standard_EXPORT Standard_Boolean More () const
 Returns True if there are still not
treated couples of shapes
.
virtual Standard_EXPORT void Next ()
 Moves to the next couple of iteration
.
virtual Standard_EXPORT void Current (Standard_Integer &Index1, Standard_Integer &Index2, Standard_Boolean &WithSubShape) const
 Returns current couple of indices and
flag WithSubShape which is true
if bounding boxes of subshapes
are intersected
.
Standard_EXPORT const BOPTools_ListOfCoupleOfIntegerListOfCouple () const
 Returns a list of couples of shape indices
according to shape types by which
the iterator was initialized
.
Standard_EXPORT void SetIntersectionStatus (const Standard_Integer Index1, const Standard_Integer Index2, const BOPTools_IntersectionStatus theStatus)
 Sets status to array according to Index1 and Index2
.
Standard_EXPORT const Handle_BOPTools_HArray2OfIntersectionStatus & GetTableOfIntersectionStatus () const
 Returns 2 dimension array of intersection statuses
.
Standard_EXPORT void DumpTableOfIntersectionStatus () const
 For internal use
.

Protected Member Functions

Standard_EXPORT Standard_Boolean MoreP () const
Standard_EXPORT void NextP ()
Standard_EXPORT void CurrentP (Standard_Integer &Index1, Standard_Integer &Index2) const

Protected Attributes

BooleanOperations_PShapesDataStructure myPDS
Handle_BOPTools_HArray2OfIntersectionStatus myTableOfStatus
Standard_Integer myCurrentIndex1
Standard_Integer myCurrentIndex2
TopAbs_ShapeEnum myType1
TopAbs_ShapeEnum myType2
Standard_Integer myFirstLowerIndex
Standard_Integer myFirstUpperIndex
Standard_Integer mySecondLowerIndex
Standard_Integer mySecondUpperIndex
BOPTools_ListOfCoupleOfInteger myListOfCouple
BOPTools_ListIteratorOfListOfCoupleOfInteger myIterator


Constructor & Destructor Documentation

Standard_EXPORT BOPTools_IteratorOfCoupleOfShape::BOPTools_IteratorOfCoupleOfShape  ) 
 

Standard_EXPORT BOPTools_IteratorOfCoupleOfShape::BOPTools_IteratorOfCoupleOfShape const BooleanOperations_PShapesDataStructure PDS,
const TopAbs_ShapeEnum  Type1,
const TopAbs_ShapeEnum  Type2
 

virtual Standard_EXPORT BOPTools_IteratorOfCoupleOfShape::~BOPTools_IteratorOfCoupleOfShape  )  [inline, virtual]
 


Member Function Documentation

virtual Standard_EXPORT void BOPTools_IteratorOfCoupleOfShape::Current Standard_Integer &  Index1,
Standard_Integer &  Index2,
Standard_Boolean WithSubShape
const [virtual]
 

Standard_EXPORT void BOPTools_IteratorOfCoupleOfShape::CurrentP Standard_Integer &  Index1,
Standard_Integer &  Index2
const [protected]
 

virtual Standard_EXPORT void BOPTools_IteratorOfCoupleOfShape::Destroy  )  [virtual]
 

Standard_EXPORT void BOPTools_IteratorOfCoupleOfShape::DumpTableOfIntersectionStatus  )  const
 

Standard_EXPORT const Handle_BOPTools_HArray2OfIntersectionStatus& BOPTools_IteratorOfCoupleOfShape::GetTableOfIntersectionStatus  )  const
 

virtual Standard_EXPORT void BOPTools_IteratorOfCoupleOfShape::Initialize const TopAbs_ShapeEnum  Type1,
const TopAbs_ShapeEnum  Type2
[virtual]
 

Standard_EXPORT const BOPTools_ListOfCoupleOfInteger& BOPTools_IteratorOfCoupleOfShape::ListOfCouple  )  const
 

virtual Standard_EXPORT Standard_Boolean BOPTools_IteratorOfCoupleOfShape::More  )  const [virtual]
 

Standard_EXPORT Standard_Boolean BOPTools_IteratorOfCoupleOfShape::MoreP  )  const [protected]
 

virtual Standard_EXPORT void BOPTools_IteratorOfCoupleOfShape::Next  )  [virtual]
 

Standard_EXPORT void BOPTools_IteratorOfCoupleOfShape::NextP  )  [protected]
 

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

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

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

Standard_EXPORT void BOPTools_IteratorOfCoupleOfShape::SetDataStructure const BooleanOperations_PShapesDataStructure PDS  ) 
 

Standard_EXPORT void BOPTools_IteratorOfCoupleOfShape::SetIntersectionStatus const Standard_Integer  Index1,
const Standard_Integer  Index2,
const BOPTools_IntersectionStatus  theStatus
 


Field Documentation

Standard_Integer BOPTools_IteratorOfCoupleOfShape::myCurrentIndex1 [protected]
 

Standard_Integer BOPTools_IteratorOfCoupleOfShape::myCurrentIndex2 [protected]
 

Standard_Integer BOPTools_IteratorOfCoupleOfShape::myFirstLowerIndex [protected]
 

Standard_Integer BOPTools_IteratorOfCoupleOfShape::myFirstUpperIndex [protected]
 

BOPTools_ListIteratorOfListOfCoupleOfInteger BOPTools_IteratorOfCoupleOfShape::myIterator [protected]
 

BOPTools_ListOfCoupleOfInteger BOPTools_IteratorOfCoupleOfShape::myListOfCouple [protected]
 

BooleanOperations_PShapesDataStructure BOPTools_IteratorOfCoupleOfShape::myPDS [protected]
 

Standard_Integer BOPTools_IteratorOfCoupleOfShape::mySecondLowerIndex [protected]
 

Standard_Integer BOPTools_IteratorOfCoupleOfShape::mySecondUpperIndex [protected]
 

Handle_BOPTools_HArray2OfIntersectionStatus BOPTools_IteratorOfCoupleOfShape::myTableOfStatus [protected]
 

TopAbs_ShapeEnum BOPTools_IteratorOfCoupleOfShape::myType1 [protected]
 

TopAbs_ShapeEnum BOPTools_IteratorOfCoupleOfShape::myType2 [protected]
 


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