1 // Created on: 2000-01-19
2 // Created by: data exchange team
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _XSAlgo_AlgoContainer_HeaderFile
17 #define _XSAlgo_AlgoContainer_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_Type.hxx>
22 #include <Standard_Transient.hxx>
23 #include <Standard_Real.hxx>
24 #include <Standard_CString.hxx>
25 #include <Standard_Boolean.hxx>
26 #include <Standard_Integer.hxx>
27 class XSAlgo_ToolContainer;
29 class Standard_Transient;
30 class Message_ProgressIndicator;
33 class Transfer_TransientProcess;
34 class Transfer_FinderProcess;
37 class XSAlgo_AlgoContainer;
38 DEFINE_STANDARD_HANDLE(XSAlgo_AlgoContainer, Standard_Transient)
41 class XSAlgo_AlgoContainer : public Standard_Transient
48 Standard_EXPORT XSAlgo_AlgoContainer();
50 //! Sets ToolContainer
51 void SetToolContainer (const Handle(XSAlgo_ToolContainer)& TC);
53 //! Returns ToolContainer
54 Handle(XSAlgo_ToolContainer) ToolContainer() const;
56 //! Performs actions necessary for preparing environment
57 //! for transfer. Empty in Open version.
58 Standard_EXPORT virtual void PrepareForTransfer() const;
60 //! Does shape processing with specified tolerances
61 //! and returns resulting shape and associated information
62 //! in the form of Transient.
63 //! This information should be later transmitted to
64 //! MergeTransferInfo in order to be recorded in the
66 Standard_EXPORT virtual TopoDS_Shape ProcessShape (
67 const TopoDS_Shape& shape, const Standard_Real Prec, const Standard_Real MaxTol,
68 const Standard_CString rscfile, const Standard_CString seq, Handle(Standard_Transient)& info,
69 const Handle(Message_ProgressIndicator)& progress = 0,
70 const Standard_Boolean NonManifold = Standard_False) const;
72 //! Checks quality of pcurve of the edge on the given face,
73 //! and corrects it if necessary.
74 Standard_EXPORT virtual Standard_Boolean CheckPCurve (const TopoDS_Edge& edge, const TopoDS_Face& face, const Standard_Real preci, const Standard_Boolean isSeam) const;
76 Standard_EXPORT virtual void MergeTransferInfo (const Handle(Transfer_TransientProcess)& TP, const Handle(Standard_Transient)& info, const Standard_Integer startTPitem = 1) const;
78 //! Updates translation map (TP or FP) with information
79 //! resulting from ShapeProcessing
80 //! Parameter startTPitem can be used for optimisation, to
81 //! restrict modifications to entities stored in TP starting
82 //! from item startTPitem
83 Standard_EXPORT virtual void MergeTransferInfo (const Handle(Transfer_FinderProcess)& FP, const Handle(Standard_Transient)& info) const;
88 DEFINE_STANDARD_RTTIEXT(XSAlgo_AlgoContainer,Standard_Transient)
98 Handle(XSAlgo_ToolContainer) myTC;
104 #include <XSAlgo_AlgoContainer.lxx>
110 #endif // _XSAlgo_AlgoContainer_HeaderFile