// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _BooleanOperations_AncestorsSeqAndSuccessorsSeq_HeaderFile #define _BooleanOperations_AncestorsSeqAndSuccessorsSeq_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _TColStd_SequenceOfInteger_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _TopAbs_Orientation_HeaderFile #include #endif //! 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.
class BooleanOperations_AncestorsSeqAndSuccessorsSeq { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } Standard_EXPORT BooleanOperations_AncestorsSeqAndSuccessorsSeq(); //! to display the fields.
Standard_EXPORT void Dump() const; 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; //! appends AncestorNumber in the sequence.
void SetNewAncestor(const Standard_Integer AncestorNumber) ; //! appends SuccessorNumber in the array refering to .
void SetNewSuccessor(const Standard_Integer SuccessorNumber) ; //! appends SuccessorNumber in the array refering to .
void SetNewOrientation(const TopAbs_Orientation theOrientation) ; protected: private: TColStd_SequenceOfInteger myAncestors; TColStd_SequenceOfInteger mySuccessors; TColStd_SequenceOfInteger myOrientations; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif