0028427: Data Exchange - Update Reference Manual for STEP format
[occt.git] / src / StepToTopoDS / StepToTopoDS_Builder.hxx
CommitLineData
42cf5bc1 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>
28class StdFail_NotDone;
29class StepShape_ManifoldSolidBrep;
30class Transfer_TransientProcess;
31class StepShape_BrepWithVoids;
32class StepShape_FacetedBrep;
33class StepShape_FacetedBrepAndBrepWithVoids;
34class StepShape_ShellBasedSurfaceModel;
35class StepToTopoDS_NMTool;
36class StepShape_GeometricSet;
37class StepShape_EdgeBasedWireframeModel;
38class StepShape_FaceBasedSurfaceModel;
39class Transfer_ActorOfTransientProcess;
40class TopoDS_Shape;
41
42
43
44class StepToTopoDS_Builder : public StepToTopoDS_Root
45{
46public:
47
48 DEFINE_STANDARD_ALLOC
49
50
51 Standard_EXPORT StepToTopoDS_Builder();
52
53 Standard_EXPORT StepToTopoDS_Builder(const Handle(StepShape_ManifoldSolidBrep)& S, const Handle(Transfer_TransientProcess)& TP);
54
55 Standard_EXPORT StepToTopoDS_Builder(const Handle(StepShape_BrepWithVoids)& S, const Handle(Transfer_TransientProcess)& TP);
56
57 Standard_EXPORT StepToTopoDS_Builder(const Handle(StepShape_FacetedBrep)& S, const Handle(Transfer_TransientProcess)& TP);
58
59 Standard_EXPORT StepToTopoDS_Builder(const Handle(StepShape_FacetedBrepAndBrepWithVoids)& S, const Handle(Transfer_TransientProcess)& TP);
60
61 Standard_EXPORT StepToTopoDS_Builder(const Handle(StepShape_ShellBasedSurfaceModel)& S, const Handle(Transfer_TransientProcess)& TP, StepToTopoDS_NMTool& NMTool);
62
63 Standard_EXPORT StepToTopoDS_Builder(const Handle(StepShape_GeometricSet)& S, const Handle(Transfer_TransientProcess)& TP);
64
65 Standard_EXPORT void Init (const Handle(StepShape_ManifoldSolidBrep)& S, const Handle(Transfer_TransientProcess)& TP);
66
67 Standard_EXPORT void Init (const Handle(StepShape_BrepWithVoids)& S, const Handle(Transfer_TransientProcess)& TP);
68
69 Standard_EXPORT void Init (const Handle(StepShape_FacetedBrep)& S, const Handle(Transfer_TransientProcess)& TP);
70
71 Standard_EXPORT void Init (const Handle(StepShape_FacetedBrepAndBrepWithVoids)& S, const Handle(Transfer_TransientProcess)& TP);
72
73 Standard_EXPORT void Init (const Handle(StepShape_ShellBasedSurfaceModel)& S, const Handle(Transfer_TransientProcess)& TP, StepToTopoDS_NMTool& NMTool);
74
75 Standard_EXPORT void Init (const Handle(StepShape_EdgeBasedWireframeModel)& S, const Handle(Transfer_TransientProcess)& TP);
76
77 Standard_EXPORT void Init (const Handle(StepShape_FaceBasedSurfaceModel)& S, const Handle(Transfer_TransientProcess)& TP);
78
79 Standard_EXPORT void Init (const Handle(StepShape_GeometricSet)& S, const Handle(Transfer_TransientProcess)& TP, const Handle(Transfer_ActorOfTransientProcess)& RA = NULL, const Standard_Boolean isManifold = Standard_False);
80
81 Standard_EXPORT const TopoDS_Shape& Value() const;
82
83 Standard_EXPORT StepToTopoDS_BuilderError Error() const;
84
85
86
87
88protected:
89
90
91
92
93
94private:
95
96
97
98 StepToTopoDS_BuilderError myError;
99 TopoDS_Shape myResult;
100
101
102};
103
104
105
106
107
108
109
110#endif // _StepToTopoDS_Builder_HeaderFile