d2c4d6d5dd2ceb5d6b9e7d09f6060f1d3ef47889
[occt.git] / src / IGESToBRep / IGESToBRep_Actor.hxx
1 // Created on: 1994-11-03
2 // Created by: Marie Jose MARTZ
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 _IGESToBRep_Actor_HeaderFile
18 #define _IGESToBRep_Actor_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <Standard_Integer.hxx>
24 #include <Standard_Real.hxx>
25 #include <Transfer_ActorOfTransientProcess.hxx>
26 #include <Standard_Boolean.hxx>
27 class Interface_InterfaceModel;
28 class Standard_Transient;
29 class Transfer_Binder;
30 class Transfer_TransientProcess;
31
32
33 class IGESToBRep_Actor;
34 DEFINE_STANDARD_HANDLE(IGESToBRep_Actor, Transfer_ActorOfTransientProcess)
35
36 //! This class performs the transfer of an Entity from
37 //! IGESToBRep
38 //!
39 //! I.E. for each type of Entity, it invokes the appropriate Tool
40 //! then returns the Binder which contains the Result
41 class IGESToBRep_Actor : public Transfer_ActorOfTransientProcess
42 {
43
44 public:
45
46   
47   Standard_EXPORT IGESToBRep_Actor();
48   
49   Standard_EXPORT void SetModel (const Handle(Interface_InterfaceModel)& model);
50   
51   //! ---Purpose   By default continuity = 0
52   //! if continuity = 1 : try C1
53   //! if continuity = 2 : try C2
54   Standard_EXPORT void SetContinuity (const Standard_Integer continuity = 0);
55   
56   //! Return "thecontinuity"
57   Standard_EXPORT Standard_Integer GetContinuity() const;
58   
59   Standard_EXPORT virtual Standard_Boolean Recognize (const Handle(Standard_Transient)& start) Standard_OVERRIDE;
60   
61   Standard_EXPORT virtual Handle(Transfer_Binder) Transfer (const Handle(Standard_Transient)& start, const Handle(Transfer_TransientProcess)& TP) Standard_OVERRIDE;
62   
63   //! Returns the tolerance which was actually used, either from
64   //! the file or from statics
65   Standard_EXPORT Standard_Real UsedTolerance() const;
66
67
68
69
70   DEFINE_STANDARD_RTTIEXT(IGESToBRep_Actor,Transfer_ActorOfTransientProcess)
71
72 protected:
73
74
75
76
77 private:
78
79
80   Handle(Interface_InterfaceModel) themodel;
81   Standard_Integer thecontinuity;
82   Standard_Real theeps;
83
84
85 };
86
87
88
89
90
91
92
93 #endif // _IGESToBRep_Actor_HeaderFile