0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / IGESControl / IGESControl_IGESBoundary.hxx
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 <IGESData_HArray1OfIGESEntity.hxx>
24 #include <Standard_Integer.hxx>
25 class IGESToBRep_CurveAndSurface;
26 class IGESData_IGESEntity;
27 class ShapeExtend_WireData;
28
29 class IGESControl_IGESBoundary;
30 DEFINE_STANDARD_HANDLE(IGESControl_IGESBoundary, IGESToBRep_IGESBoundary)
31
32 //! Translates IGES boundary entity (types 141, 142 and 508)
33 //! in Advanced Data Exchange.
34 //! Redefines translation and treatment methods from inherited
35 //! open class IGESToBRep_IGESBoundary.
36 class IGESControl_IGESBoundary : public IGESToBRep_IGESBoundary
37 {
38
39 public:
40
41   //! Creates an object and calls inherited constructor.
42   Standard_EXPORT IGESControl_IGESBoundary();
43
44   //! Creates an object and calls inherited constructor.
45   Standard_EXPORT IGESControl_IGESBoundary(const IGESToBRep_CurveAndSurface& CS);
46
47   //! Checks result of translation of IGES boundary entities
48   //! (types 141, 142 or 508).
49   //! Checks consistency of 2D and 3D representations and keeps
50   //! only one if they are inconsistent.
51   //! Checks the closure of resulting wire and if it is not closed,
52   //! checks 2D and 3D representation and updates the resulting
53   //! wire to contain only closed representation.
54   Standard_EXPORT virtual void Check (const Standard_Boolean result, const Standard_Boolean checkclosure, const Standard_Boolean okCurve3d, const Standard_Boolean okCurve2d) Standard_OVERRIDE;
55
56   DEFINE_STANDARD_RTTIEXT(IGESControl_IGESBoundary,IGESToBRep_IGESBoundary)
57
58 protected:
59
60   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;
61
62 };
63
64 #endif // _IGESControl_IGESBoundary_HeaderFile