0030024: Data Exchange - STEP, IGES export support of BRep shapes based on tessellate...
[occt.git] / src / TopoDSToStep / TopoDSToStep_MakeTessellatedItem.hxx
1 // Copyright (c) 2022 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13
14 #ifndef _TopoDSToStep_MakeTessellatedItem_HeaderFile
15 #define _TopoDSToStep_MakeTessellatedItem_HeaderFile
16
17 #include <Standard.hxx>
18 #include <Standard_DefineAlloc.hxx>
19 #include <Standard_Handle.hxx>
20
21 #include <TopoDSToStep_Root.hxx>
22 #include <Message_ProgressRange.hxx>
23
24 class StepVisual_TessellatedItem;
25 class TopoDS_Face;
26 class TopoDS_Shell;
27 class Transfer_FinderProcess;
28
29 //! This class implements the mapping between
30 //! Face, Shell fromTopoDS and TriangulatedFace from StepVisual. 
31 class TopoDSToStep_MakeTessellatedItem : public TopoDSToStep_Root
32 {
33 public:
34
35   DEFINE_STANDARD_ALLOC
36
37
38   Standard_EXPORT TopoDSToStep_MakeTessellatedItem();
39
40   Standard_EXPORT TopoDSToStep_MakeTessellatedItem(const TopoDS_Face& theFace,
41                                                    TopoDSToStep_Tool& theTool,
42                                                    const Handle(Transfer_FinderProcess)& theFP,
43                                                    const Message_ProgressRange& theProgress = Message_ProgressRange());
44   
45   Standard_EXPORT TopoDSToStep_MakeTessellatedItem(const TopoDS_Shell& theShell,
46                                                    TopoDSToStep_Tool& theTool,
47                                                    const Handle(Transfer_FinderProcess)& theFP,
48                                                    const Message_ProgressRange& theProgress = Message_ProgressRange());
49
50   Standard_EXPORT void Init(const TopoDS_Face& theFace,
51                             TopoDSToStep_Tool& theTool,
52                             const Handle(Transfer_FinderProcess)& theFP,
53                             const Message_ProgressRange& theProgress = Message_ProgressRange());
54   
55   Standard_EXPORT void Init(const TopoDS_Shell& theShell,
56                             TopoDSToStep_Tool& theTool,
57                             const Handle(Transfer_FinderProcess)& theFP,
58                             const Message_ProgressRange& theProgress = Message_ProgressRange());
59   
60   Standard_EXPORT const Handle(StepVisual_TessellatedItem)& Value() const;
61
62
63
64
65 protected:
66
67
68
69
70
71 private:
72
73
74
75   Handle(StepVisual_TessellatedItem) theTessellatedItem;
76
77
78 };
79
80
81
82
83
84
85
86 #endif // _TopoDSToStep_MakeTessellatedItem_HeaderFile