42cf5bc1 |
1 | // Created on: 2000-02-05 |
2 | // Created by: data exchange team |
3 | // Copyright (c) 2000-2014 OPEN CASCADE SAS |
4 | // |
5 | // This file is part of Open CASCADE Technology software library. |
6 | // |
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. |
12 | // |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
15 | |
16 | #ifndef _IGESControl_IGESBoundary_HeaderFile |
17 | #define _IGESControl_IGESBoundary_HeaderFile |
18 | |
19 | #include <Standard.hxx> |
20 | #include <Standard_Type.hxx> |
21 | |
22 | #include <IGESToBRep_IGESBoundary.hxx> |
23 | #include <Standard_Boolean.hxx> |
24 | #include <IGESData_HArray1OfIGESEntity.hxx> |
25 | #include <Standard_Integer.hxx> |
26 | class IGESToBRep_CurveAndSurface; |
27 | class IGESData_IGESEntity; |
28 | class ShapeExtend_WireData; |
29 | |
30 | |
31 | class IGESControl_IGESBoundary; |
32 | DEFINE_STANDARD_HANDLE(IGESControl_IGESBoundary, IGESToBRep_IGESBoundary) |
33 | |
34 | //! Translates IGES boundary entity (types 141, 142 and 508) |
35 | //! in Advanced Data Exchange. |
36 | //! Redefines translation and treatment methods from inherited |
37 | //! open class IGESToBRep_IGESBoundary. |
38 | class IGESControl_IGESBoundary : public IGESToBRep_IGESBoundary |
39 | { |
40 | |
41 | public: |
42 | |
43 | |
44 | //! Creates an object and calls inherited constuctor. |
45 | Standard_EXPORT IGESControl_IGESBoundary(); |
46 | |
47 | //! Creates an object and calls inherited constuctor. |
48 | Standard_EXPORT IGESControl_IGESBoundary(const IGESToBRep_CurveAndSurface& CS); |
49 | |
50 | //! Checks result of translation of IGES boundary entities |
51 | //! (types 141, 142 or 508). |
52 | //! Checks consistency of 2D and 3D representations and keeps |
53 | //! only one if they are inconsistent. |
54 | //! Checks the closure of resulting wire and if it is not closed, |
55 | //! checks 2D and 3D representation and updates the resulting |
56 | //! wire to contain only closed representation. |
57 | Standard_EXPORT virtual void Check (const Standard_Boolean result, const Standard_Boolean checkclosure, const Standard_Boolean okCurve3d, const Standard_Boolean okCurve2d) Standard_OVERRIDE; |
58 | |
59 | |
60 | |
61 | |
92efcf78 |
62 | DEFINE_STANDARD_RTTIEXT(IGESControl_IGESBoundary,IGESToBRep_IGESBoundary) |
42cf5bc1 |
63 | |
64 | protected: |
65 | |
66 | |
67 | Standard_EXPORT virtual Standard_Boolean Transfer (Standard_Boolean& okCurve, Standard_Boolean& okCurve3d, Standard_Boolean& okCurve2d, const Handle(IGESData_IGESEntity)& icurve3d, const Handle(ShapeExtend_WireData)& scurve3d, const Standard_Boolean usescurve, const Standard_Boolean toreverse3d, const Handle(IGESData_HArray1OfIGESEntity)& curves2d, const Standard_Boolean toreverse2d, const Standard_Integer number, Handle(ShapeExtend_WireData)& lsewd) Standard_OVERRIDE; |
68 | |
69 | |
70 | |
71 | private: |
72 | |
73 | |
74 | |
75 | |
76 | }; |
77 | |
78 | |
79 | |
80 | |
81 | |
82 | |
83 | |
84 | #endif // _IGESControl_IGESBoundary_HeaderFile |