1 // Created by: Peter KURNEV
2 // Copyright (c) 2014 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 #ifndef _BRepAlgoAPI_BuilderAlgo_HeaderFile
16 #define _BRepAlgoAPI_BuilderAlgo_HeaderFile
18 #include <Standard.hxx>
19 #include <Standard_DefineAlloc.hxx>
20 #include <Standard_Handle.hxx>
22 #include <Standard_Integer.hxx>
23 #include <BOPAlgo_PPaveFiller.hxx>
24 #include <BOPAlgo_PBuilder.hxx>
25 #include <Standard_Real.hxx>
26 #include <TopTools_ListOfShape.hxx>
27 #include <BRepAlgoAPI_Algo.hxx>
28 #include <Standard_Boolean.hxx>
29 class BOPAlgo_PaveFiller;
34 //! The clsss contains API level of General Fuse algorithm
35 class BRepAlgoAPI_BuilderAlgo : public BRepAlgoAPI_Algo
43 Standard_EXPORT BRepAlgoAPI_BuilderAlgo();
44 Standard_EXPORT virtual ~BRepAlgoAPI_BuilderAlgo();
47 Standard_EXPORT BRepAlgoAPI_BuilderAlgo(const BOPAlgo_PaveFiller& thePF);
49 //! Sets the additional tolerance
50 Standard_EXPORT void SetFuzzyValue (const Standard_Real theFuzz);
52 //! Returns the additional tolerance
53 Standard_EXPORT Standard_Real FuzzyValue() const;
55 //! Sets the arguments
56 Standard_EXPORT void SetArguments (const TopTools_ListOfShape& theLS);
58 //! Gets the arguments
59 Standard_EXPORT const TopTools_ListOfShape& Arguments() const;
61 //! Performs the algorithm
64 Standard_EXPORT virtual void Build() Standard_OVERRIDE;
66 //! Returns the list of shapes modified from the shape <S>.
67 Standard_EXPORT virtual const TopTools_ListOfShape& Modified (const TopoDS_Shape& aS) Standard_OVERRIDE;
69 //! Returns true if the shape S has been deleted. The
70 //! result shape of the operation does not contain the shape S.
71 Standard_EXPORT virtual Standard_Boolean IsDeleted (const TopoDS_Shape& aS) Standard_OVERRIDE;
73 //! Returns the list of shapes generated from the shape <S>.
74 //! For use in BRepNaming.
75 Standard_EXPORT virtual const TopTools_ListOfShape& Generated (const TopoDS_Shape& S) Standard_OVERRIDE;
77 //! Returns true if there is at least one modified shape.
78 //! For use in BRepNaming.
79 Standard_EXPORT virtual Standard_Boolean HasModified() const;
81 //! Returns true if there is at least one generated shape.
82 //! For use in BRepNaming.
83 Standard_EXPORT virtual Standard_Boolean HasGenerated() const;
85 //! Returns true if there is at least one deleted shape.
86 //! For use in BRepNaming.
89 Standard_EXPORT virtual Standard_Boolean HasDeleted() const;
97 Standard_EXPORT virtual void Clear() Standard_OVERRIDE;
100 Standard_Integer myEntryType;
101 BOPAlgo_PPaveFiller myDSFiller;
102 BOPAlgo_PBuilder myBuilder;
103 Standard_Real myFuzzyValue;
104 TopTools_ListOfShape myArguments;
121 #endif // _BRepAlgoAPI_BuilderAlgo_HeaderFile