04810529205f197c6b8440642305b83f46b2c0bc
[occt.git] / src / StepToTopoDS / StepToTopoDS_Builder.hxx
1 // Created on: 1994-12-16
2 // Created by: Frederic MAUPAS
3 // Copyright (c) 1994-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _StepToTopoDS_Builder_HeaderFile
18 #define _StepToTopoDS_Builder_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <StepToTopoDS_BuilderError.hxx>
25 #include <TopoDS_Shape.hxx>
26 #include <StepToTopoDS_Root.hxx>
27 #include <Standard_Boolean.hxx>
28 #include <Message_ProgressRange.hxx>
29
30 class StdFail_NotDone;
31 class StepShape_ManifoldSolidBrep;
32 class Transfer_TransientProcess;
33 class StepShape_BrepWithVoids;
34 class StepShape_FacetedBrep;
35 class StepShape_FacetedBrepAndBrepWithVoids;
36 class StepShape_ShellBasedSurfaceModel;
37 class StepToTopoDS_NMTool;
38 class StepShape_GeometricSet;
39 class StepShape_EdgeBasedWireframeModel;
40 class StepShape_FaceBasedSurfaceModel;
41 class Transfer_ActorOfTransientProcess;
42 class TopoDS_Shape;
43
44
45
46 class StepToTopoDS_Builder  : public StepToTopoDS_Root
47 {
48 public:
49
50   DEFINE_STANDARD_ALLOC
51
52   
53   Standard_EXPORT StepToTopoDS_Builder();
54   
55   Standard_EXPORT void Init (const Handle(StepShape_ManifoldSolidBrep)& S,
56                              const Handle(Transfer_TransientProcess)& TP,
57                              const Message_ProgressRange& theProgress = Message_ProgressRange());
58   
59   Standard_EXPORT void Init (const Handle(StepShape_BrepWithVoids)& S,
60                              const Handle(Transfer_TransientProcess)& TP,
61                              const Message_ProgressRange& theProgress = Message_ProgressRange());
62   
63   Standard_EXPORT void Init (const Handle(StepShape_FacetedBrep)& S,
64                              const Handle(Transfer_TransientProcess)& TP,
65                              const Message_ProgressRange& theProgress = Message_ProgressRange());
66   
67   Standard_EXPORT void Init (const Handle(StepShape_FacetedBrepAndBrepWithVoids)& S,
68                              const Handle(Transfer_TransientProcess)& TP,
69                              const Message_ProgressRange& theProgress = Message_ProgressRange());
70   
71   Standard_EXPORT void Init (const Handle(StepShape_ShellBasedSurfaceModel)& S,
72                              const Handle(Transfer_TransientProcess)& TP,
73                              StepToTopoDS_NMTool& NMTool,
74                              const Message_ProgressRange& theProgress = Message_ProgressRange());
75   
76   Standard_EXPORT void Init (const Handle(StepShape_EdgeBasedWireframeModel)& S,
77                              const Handle(Transfer_TransientProcess)& TP);
78   
79   Standard_EXPORT void Init (const Handle(StepShape_FaceBasedSurfaceModel)& S,
80                              const Handle(Transfer_TransientProcess)& TP);
81   
82   Standard_EXPORT void Init (const Handle(StepShape_GeometricSet)& S,
83                              const Handle(Transfer_TransientProcess)& TP,
84                              const Handle(Transfer_ActorOfTransientProcess)& RA = NULL,
85                              const Standard_Boolean isManifold = Standard_False,
86                              const Message_ProgressRange& theProgress = Message_ProgressRange());
87   
88   Standard_EXPORT const TopoDS_Shape& Value() const;
89   
90   Standard_EXPORT StepToTopoDS_BuilderError Error() const;
91
92
93
94
95 protected:
96
97
98
99
100
101 private:
102
103
104
105   StepToTopoDS_BuilderError myError;
106   TopoDS_Shape myResult;
107
108
109 };
110
111
112
113
114
115
116
117 #endif // _StepToTopoDS_Builder_HeaderFile