Open CASCADE Technology
6.5.4
|
provide all the ancestors and successors of a --
given shape. Exemple : for an edge the ancestors
-- are the wires that hold it and the successors
are -- its vertices. As we don't know the number
of -- ancestors of a given shape we first put them
in a -- sequence of integers (our data structure
-- defining the shapes does not have back
pointers). Then we transfer these data in the
class AncestorsAndSuccessors.
#include <BooleanOperations_AncestorsSeqAndSuccessorsSeq.hxx>
Public Member Functions | |
DEFINE_STANDARD_ALLOC | BooleanOperations_AncestorsSeqAndSuccessorsSeq () |
void | Dump () const |
to display the fields. | |
Standard_Integer | GetAncestor (const Standard_Integer AncestorIndex) const |
Standard_Integer | GetSuccessor (const Standard_Integer SuccessorIndex) const |
TopAbs_Orientation | GetOrientation (const Standard_Integer OrientationIndex) const |
Standard_Integer | NumberOfAncestors () const |
Standard_Integer | NumberOfSuccessors () const |
void | SetNewAncestor (const Standard_Integer AncestorNumber) |
appends AncestorNumber in the sequence. | |
void | SetNewSuccessor (const Standard_Integer SuccessorNumber) |
appends SuccessorNumber in the array refering to <mySuccessorsInserted>. | |
void | SetNewOrientation (const TopAbs_Orientation theOrientation) |
appends SuccessorNumber in the array refering to <mySuccessorsInserted>. |
DEFINE_STANDARD_ALLOC BooleanOperations_AncestorsSeqAndSuccessorsSeq::BooleanOperations_AncestorsSeqAndSuccessorsSeq | ( | ) |
Standard_Integer BooleanOperations_AncestorsSeqAndSuccessorsSeq::GetAncestor | ( | const Standard_Integer | AncestorIndex | ) | const |
TopAbs_Orientation BooleanOperations_AncestorsSeqAndSuccessorsSeq::GetOrientation | ( | const Standard_Integer | OrientationIndex | ) | const |
Standard_Integer BooleanOperations_AncestorsSeqAndSuccessorsSeq::GetSuccessor | ( | const Standard_Integer | SuccessorIndex | ) | const |
void BooleanOperations_AncestorsSeqAndSuccessorsSeq::SetNewAncestor | ( | const Standard_Integer | AncestorNumber | ) |
void BooleanOperations_AncestorsSeqAndSuccessorsSeq::SetNewOrientation | ( | const TopAbs_Orientation | theOrientation | ) |
void BooleanOperations_AncestorsSeqAndSuccessorsSeq::SetNewSuccessor | ( | const Standard_Integer | SuccessorNumber | ) |