Open CASCADE Technology 6.5.2
Public Member Functions | Protected Member Functions | Protected Attributes
BooleanOperations_ShapesDataStructure Class Reference

#include <BooleanOperations_ShapesDataStructure.hxx>

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
 BooleanOperations_ShapesDataStructure ()
virtual ~BooleanOperations_ShapesDataStructure ()
 BooleanOperations_ShapesDataStructure (const TopoDS_Shape &Object, const TopoDS_Shape &Tool)
void InsertShapeAndAncestorsSuccessors (const TopoDS_Shape &S, const BooleanOperations_AncestorsSeqAndSuccessorsSeq &AncSuc, const Standard_Integer shift=0)
 fill a line of the data structure, the shift is used
for the numbers of the shapes of the Tool.

void FillIndexedMapOfShapesAncestorsAndSuccessors (const TopoDS_Shape &Sha, BooleanOperations_IndexedDataMapOfShapeAncestorsSuccessors &IndDatMap) const
 to find the data structure we first decompose the
Object and Tool in the indexed data map of shapes.

void FindSubshapes (const TopoDS_Shape &Sha, Standard_Integer &TotalNumberOfShapes, BooleanOperations_IndexedDataMapOfShapeAncestorsSuccessors &IndDatMap) const
 to find all the subshapes of Sha and store them in
IndDatMap if they had not been already taken into account.

void Dump (Standard_OStream &S) const
 dump the content of the fields.

void LightDump (Standard_OStream &S) const
 dump the types of the shapes.

const TopoDS_ShapeGetShape (const Standard_Integer index) const
const TopoDS_ShapeShape (const Standard_Integer anIndex) const
TopAbs_ShapeEnum GetShapeType (const Standard_Integer index) const
const Bnd_BoxGetBoundingBox (const Standard_Integer index) const
BooleanOperations_StateOfShape GetState (const Standard_Integer index) const
void SetState (const Standard_Integer index, const BooleanOperations_StateOfShape theState)
Standard_Integer GetAncestor (const Standard_Integer index, const Standard_Integer ancestorNumber) const
Standard_Integer GetSuccessor (const Standard_Integer index, const Standard_Integer successorNumber) const
void GetAncestors (const Standard_Integer index, Standard_Address &theArrayOfAncestors, Standard_Integer &AncestorsSize) const
void GetSuccessors (const Standard_Integer index, Standard_Address &theArrayOfSuccessors, Standard_Integer &SuccessorsSize) const
Standard_Integer NumberOfAncestors (const Standard_Integer index) const
Standard_Integer NumberOfSuccessors (const Standard_Integer index) const
Standard_Integer NumberOfShapesOfTheTool () const
Standard_Integer NumberOfShapesOfTheObject () const
Standard_Integer NumberOfSourceShapes () const
Standard_Boolean IsNewShape (const Standard_Integer index) const
Standard_Integer NumberOfInsertedShapes () const
Standard_Integer NumberOfNewShapes () const
const
BooleanOperations_ShapeAndInterferences
Line (const Standard_Integer index) const
const
BooleanOperations_IndexedDataMapOfShapeInteger
ShapeIndexMap (const Standard_Integer iRank) const
virtual Standard_Integer ShapeIndex (const TopoDS_Shape &aS, const Standard_Integer iRank) const
const TopoDS_ShapeObject () const
const TopoDS_ShapeTool () const
void ObjectRange (Standard_Integer &iFirst, Standard_Integer &iLast) const
void ToolRange (Standard_Integer &iFirst, Standard_Integer &iLast) const
virtual Standard_Integer Rank (const Standard_Integer anIndex) const
Standard_Integer RefEdge (const Standard_Integer anIndex) const
 for given index "anIndex" of an edge in DS get
reference index of an edge

Standard_Integer NbEdges () const
 returns number of edges from source shapes

TopAbs_Orientation GetOrientation (const Standard_Integer index, const Standard_Integer successorNumber) const
void GetOrientations (const Standard_Integer index, Standard_Address &theArrayOfOrientations, Standard_Integer &OrientationsSize) const

Protected Member Functions

void Destroy ()

Protected Attributes

BooleanOperations_PShapeAndInterferences myListOfShapeAndInterferences
Standard_Integer myNumberOfShapesOfTheObject
Standard_Integer myNumberOfShapesOfTheTool
Standard_Integer myNumberOfInsertedShapes
Standard_Integer myLength
TopoDS_Shape myObject
TopoDS_Shape myTool
BooleanOperations_IndexedDataMapOfShapeInteger myShapeIndexMapObj
BooleanOperations_IndexedDataMapOfShapeInteger myShapeIndexMapTool
BOPTColStd_CArray1OfInteger myRefEdges
Standard_Integer myNbEdges

Constructor & Destructor Documentation

BooleanOperations_ShapesDataStructure::BooleanOperations_ShapesDataStructure ( )
virtual BooleanOperations_ShapesDataStructure::~BooleanOperations_ShapesDataStructure ( ) [virtual]
BooleanOperations_ShapesDataStructure::BooleanOperations_ShapesDataStructure ( const TopoDS_Shape Object,
const TopoDS_Shape Tool 
)

Member Function Documentation

void BooleanOperations_ShapesDataStructure::Destroy ( ) [protected]
void BooleanOperations_ShapesDataStructure::Dump ( Standard_OStream S) const
void BooleanOperations_ShapesDataStructure::FillIndexedMapOfShapesAncestorsAndSuccessors ( const TopoDS_Shape Sha,
BooleanOperations_IndexedDataMapOfShapeAncestorsSuccessors IndDatMap 
) const
void BooleanOperations_ShapesDataStructure::FindSubshapes ( const TopoDS_Shape Sha,
Standard_Integer TotalNumberOfShapes,
BooleanOperations_IndexedDataMapOfShapeAncestorsSuccessors IndDatMap 
) const
Standard_Integer BooleanOperations_ShapesDataStructure::GetAncestor ( const Standard_Integer  index,
const Standard_Integer  ancestorNumber 
) const
void BooleanOperations_ShapesDataStructure::GetAncestors ( const Standard_Integer  index,
Standard_Address theArrayOfAncestors,
Standard_Integer AncestorsSize 
) const
const Bnd_Box& BooleanOperations_ShapesDataStructure::GetBoundingBox ( const Standard_Integer  index) const
TopAbs_Orientation BooleanOperations_ShapesDataStructure::GetOrientation ( const Standard_Integer  index,
const Standard_Integer  successorNumber 
) const
void BooleanOperations_ShapesDataStructure::GetOrientations ( const Standard_Integer  index,
Standard_Address theArrayOfOrientations,
Standard_Integer OrientationsSize 
) const
const TopoDS_Shape& BooleanOperations_ShapesDataStructure::GetShape ( const Standard_Integer  index) const
TopAbs_ShapeEnum BooleanOperations_ShapesDataStructure::GetShapeType ( const Standard_Integer  index) const
BooleanOperations_StateOfShape BooleanOperations_ShapesDataStructure::GetState ( const Standard_Integer  index) const
Standard_Integer BooleanOperations_ShapesDataStructure::GetSuccessor ( const Standard_Integer  index,
const Standard_Integer  successorNumber 
) const
void BooleanOperations_ShapesDataStructure::GetSuccessors ( const Standard_Integer  index,
Standard_Address theArrayOfSuccessors,
Standard_Integer SuccessorsSize 
) const
void BooleanOperations_ShapesDataStructure::InsertShapeAndAncestorsSuccessors ( const TopoDS_Shape S,
const BooleanOperations_AncestorsSeqAndSuccessorsSeq AncSuc,
const Standard_Integer  shift = 0 
)
Standard_Boolean BooleanOperations_ShapesDataStructure::IsNewShape ( const Standard_Integer  index) const
void BooleanOperations_ShapesDataStructure::LightDump ( Standard_OStream S) const
const BooleanOperations_ShapeAndInterferences& BooleanOperations_ShapesDataStructure::Line ( const Standard_Integer  index) const
Standard_Integer BooleanOperations_ShapesDataStructure::NbEdges ( ) const
Standard_Integer BooleanOperations_ShapesDataStructure::NumberOfAncestors ( const Standard_Integer  index) const
Standard_Integer BooleanOperations_ShapesDataStructure::NumberOfInsertedShapes ( ) const
Standard_Integer BooleanOperations_ShapesDataStructure::NumberOfNewShapes ( ) const
Standard_Integer BooleanOperations_ShapesDataStructure::NumberOfShapesOfTheObject ( ) const
Standard_Integer BooleanOperations_ShapesDataStructure::NumberOfShapesOfTheTool ( ) const
Standard_Integer BooleanOperations_ShapesDataStructure::NumberOfSourceShapes ( ) const
Standard_Integer BooleanOperations_ShapesDataStructure::NumberOfSuccessors ( const Standard_Integer  index) const
const TopoDS_Shape& BooleanOperations_ShapesDataStructure::Object ( ) const
void BooleanOperations_ShapesDataStructure::ObjectRange ( Standard_Integer iFirst,
Standard_Integer iLast 
) const
void BooleanOperations_ShapesDataStructure::operator delete ( void *  anAddress) [inline]
void* BooleanOperations_ShapesDataStructure::operator new ( size_t  size) [inline]
void* BooleanOperations_ShapesDataStructure::operator new ( size_t  ,
void *  anAddress 
) [inline]
virtual Standard_Integer BooleanOperations_ShapesDataStructure::Rank ( const Standard_Integer  anIndex) const [virtual]
Standard_Integer BooleanOperations_ShapesDataStructure::RefEdge ( const Standard_Integer  anIndex) const
void BooleanOperations_ShapesDataStructure::SetState ( const Standard_Integer  index,
const BooleanOperations_StateOfShape  theState 
)
const TopoDS_Shape& BooleanOperations_ShapesDataStructure::Shape ( const Standard_Integer  anIndex) const
virtual Standard_Integer BooleanOperations_ShapesDataStructure::ShapeIndex ( const TopoDS_Shape aS,
const Standard_Integer  iRank 
) const [virtual]
const BooleanOperations_IndexedDataMapOfShapeInteger& BooleanOperations_ShapesDataStructure::ShapeIndexMap ( const Standard_Integer  iRank) const
const TopoDS_Shape& BooleanOperations_ShapesDataStructure::Tool ( ) const
void BooleanOperations_ShapesDataStructure::ToolRange ( Standard_Integer iFirst,
Standard_Integer iLast 
) const

Field Documentation


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines