// 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 _BRepAlgo_Image_HeaderFile #define _BRepAlgo_Image_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _TopTools_ListOfShape_HeaderFile #include #endif #ifndef _TopTools_DataMapOfShapeShape_HeaderFile #include #endif #ifndef _TopTools_DataMapOfShapeListOfShape_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _TopAbs_ShapeEnum_HeaderFile #include #endif class Standard_ConstructionError; class TopoDS_Shape; class TopTools_ListOfShape; //! Stores link between a shape and a shape
//! obtained from . is an image of .
class BRepAlgo_Image { 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 BRepAlgo_Image(); Standard_EXPORT void SetRoot(const TopoDS_Shape& S) ; //! Links as image of .
Standard_EXPORT void Bind(const TopoDS_Shape& OldS,const TopoDS_Shape& NewS) ; //! Links as image of .
Standard_EXPORT void Bind(const TopoDS_Shape& OldS,const TopTools_ListOfShape& NewS) ; //! Add to the image of .
Standard_EXPORT void Add(const TopoDS_Shape& OldS,const TopoDS_Shape& NewS) ; //! Add to the image of .
Standard_EXPORT void Add(const TopoDS_Shape& OldS,const TopTools_ListOfShape& NewS) ; Standard_EXPORT void Clear() ; //! Remove to set of images.
Standard_EXPORT void Remove(const TopoDS_Shape& S) ; Standard_EXPORT const TopTools_ListOfShape& Roots() const; Standard_EXPORT Standard_Boolean IsImage(const TopoDS_Shape& S) const; //! Returns the generator of
Standard_EXPORT const TopoDS_Shape& ImageFrom(const TopoDS_Shape& S) const; //! Returns the upper generator of
Standard_EXPORT const TopoDS_Shape& Root(const TopoDS_Shape& S) const; Standard_EXPORT Standard_Boolean HasImage(const TopoDS_Shape& S) const; //! Returns the Image of .
//! Returns in the list if HasImage(S) is false.
Standard_EXPORT const TopTools_ListOfShape& Image(const TopoDS_Shape& S) const; //! Stores in the images of images of...images of .
//! contains only if HasImage(S) is false.
Standard_EXPORT void LastImage(const TopoDS_Shape& S,TopTools_ListOfShape& L) const; //! Keeps only the link between roots and lastimage.
Standard_EXPORT void Compact() ; //! Deletes in the images the shape of type
//! which are not in .
//! Warning: Compact() must be call before.
Standard_EXPORT void Filter(const TopoDS_Shape& S,const TopAbs_ShapeEnum ShapeType) ; protected: private: TopTools_ListOfShape roots; TopTools_DataMapOfShapeShape up; TopTools_DataMapOfShapeListOfShape down; }; // other Inline functions and methods (like "C++: function call" methods) #endif