// 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 _Intf_SectionLine_HeaderFile #define _Intf_SectionLine_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Intf_SeqOfSectionPoint_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif class Standard_OutOfRange; class Intf_SectionPoint; //! Describe a polyline of intersection between two
//! polyhedra as a sequence of points of intersection.
class Intf_SectionLine { 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); } //! Returns number of points in this SectionLine.
Standard_Integer NumberOfPoints() const; //! Gives the point of intersection of address in the
//! SectionLine.
//!
Standard_EXPORT const Intf_SectionPoint& GetPoint(const Standard_Integer Index) const; //! Returns True if the SectionLine is closed.
Standard_EXPORT Standard_Boolean IsClosed() const; //! Returns True if ThePI is in the SectionLine .
Standard_EXPORT Standard_Boolean Contains(const Intf_SectionPoint& ThePI) const; //! Checks if is an end of the SectionLine. Returns 1
//! for the beginning, 2 for the end, otherwise 0.
Standard_EXPORT Standard_Integer IsEnd(const Intf_SectionPoint& ThePI) const; //! Compares two SectionLines.
//!
Standard_EXPORT Standard_Boolean IsEqual(const Intf_SectionLine& Other) const; Standard_Boolean operator ==(const Intf_SectionLine& Other) const { return IsEqual(Other); } //! Constructs an empty SectionLine.
Standard_EXPORT Intf_SectionLine(); //! Copies a SectionLine.
Standard_EXPORT Intf_SectionLine(const Intf_SectionLine& Other); //! Adds a point at the end of the SectionLine.
Standard_EXPORT void Append(const Intf_SectionPoint& Pi) ; //! Concatenates the SectionLine at the end of the
//! SectionLine .
Standard_EXPORT void Append(Intf_SectionLine& LS) ; //! Adds a point to the beginning of the SectionLine .
Standard_EXPORT void Prepend(const Intf_SectionPoint& Pi) ; //! Concatenates a SectionLine at the beginning of the
//! SectionLine .
Standard_EXPORT void Prepend(Intf_SectionLine& LS) ; //! Reverses the order of the elements of the SectionLine.
Standard_EXPORT void Reverse() ; //! Closes the SectionLine.
Standard_EXPORT void Close() ; Standard_EXPORT void Dump(const Standard_Integer Indent) const; protected: private: Intf_SeqOfSectionPoint myPoints; Standard_Boolean closed; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif