X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoImpl%2FGEOMAlgo_Splitter.hxx;h=234765aa26b2b50d1c65da614ecd31510b1fb1ad;hb=a82ea9780de8241676648ca46e467a74e082f328;hp=0796e5579cc690960d1a23d0a13c350d6ef4caba;hpb=42dfdea5422ab72d81c36155b4c6f352c85c1110;p=modules%2Fshaper.git diff --git a/src/GeomAlgoImpl/GEOMAlgo_Splitter.hxx b/src/GeomAlgoImpl/GEOMAlgo_Splitter.hxx index 0796e5579..234765aa2 100644 --- a/src/GeomAlgoImpl/GEOMAlgo_Splitter.hxx +++ b/src/GeomAlgoImpl/GEOMAlgo_Splitter.hxx @@ -48,51 +48,66 @@ //class : GEOMAlgo_Splitter //purpose : //======================================================================= -class GEOMAlgo_Splitter : public BOPAlgo_Builder +/*! + * \class GEOMAlgo_Splitter + * \ingroup DataAlgo + * A class for shapes partitioning + */ + class GEOMAlgo_Splitter : public BOPAlgo_Builder { public: - - GEOMALGOIMPL_EXPORT - GEOMAlgo_Splitter(); + /// Constructor + GEOMALGOIMPL_EXPORT GEOMAlgo_Splitter(); - GEOMALGOIMPL_EXPORT - GEOMAlgo_Splitter(const Handle(NCollection_BaseAllocator)& theAllocator); + /// Constructor + /// \param theAllocator an allocator object + GEOMALGOIMPL_EXPORT GEOMAlgo_Splitter(const Handle(NCollection_BaseAllocator)& theAllocator); - GEOMALGOIMPL_EXPORT - virtual ~GEOMAlgo_Splitter(); + GEOMALGOIMPL_EXPORT virtual ~GEOMAlgo_Splitter(); - GEOMALGOIMPL_EXPORT - void AddTool(const TopoDS_Shape& theShape); + /// Add a tool shape + /// \param theShape a tool shape + GEOMALGOIMPL_EXPORT void AddTool(const TopoDS_Shape& theShape); - GEOMALGOIMPL_EXPORT - const BOPCol_ListOfShape& Tools()const; + /// Returns list of tool shapes + GEOMALGOIMPL_EXPORT const BOPCol_ListOfShape& Tools()const; - GEOMALGOIMPL_EXPORT - void SetLimit(const TopAbs_ShapeEnum aLimit); + /// Set type of used shapes + /// \param aLimit a shape type + GEOMALGOIMPL_EXPORT void SetLimit(const TopAbs_ShapeEnum aLimit); - GEOMALGOIMPL_EXPORT - TopAbs_ShapeEnum Limit()const; + /// Returns defined limit type + GEOMALGOIMPL_EXPORT TopAbs_ShapeEnum Limit()const; - GEOMALGOIMPL_EXPORT - void SetLimitMode(const Standard_Integer aMode); + /// Set mode (0 or 1) of limit + /// \param aMode the mode value + GEOMALGOIMPL_EXPORT void SetLimitMode(const Standard_Integer aMode); - GEOMALGOIMPL_EXPORT - Standard_Integer LimitMode()const; + /// Returns mode of limit + GEOMALGOIMPL_EXPORT Standard_Integer LimitMode()const; - GEOMALGOIMPL_EXPORT - virtual void Clear(); + /// Clears all tool shapes + GEOMALGOIMPL_EXPORT virtual void Clear(); protected: - GEOMALGOIMPL_EXPORT - virtual void BuildResult(const TopAbs_ShapeEnum theType); + /// Build result. + /// \param theType a type of limit + GEOMALGOIMPL_EXPORT virtual void BuildResult(const TopAbs_ShapeEnum theType); - GEOMALGOIMPL_EXPORT - virtual void PostTreat(); + /// Post processing of the calculation + GEOMALGOIMPL_EXPORT virtual void PostTreat(); protected: + /// List of tools BOPCol_ListOfShape myTools; + + /// Map of tools BOPCol_MapOfShape myMapTools; + + /// A limit type TopAbs_ShapeEnum myLimit; + + /// A limit mode Standard_Integer myLimitMode; };