Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-24 08:28:56

0001 // Created on: 2000-02-05
0002 // Created by: data exchange team
0003 // Copyright (c) 2000-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _IGESControl_IGESBoundary_HeaderFile
0017 #define _IGESControl_IGESBoundary_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021 
0022 #include <IGESToBRep_IGESBoundary.hxx>
0023 #include <IGESData_HArray1OfIGESEntity.hxx>
0024 #include <Standard_Integer.hxx>
0025 class IGESToBRep_CurveAndSurface;
0026 class IGESData_IGESEntity;
0027 class ShapeExtend_WireData;
0028 
0029 class IGESControl_IGESBoundary;
0030 DEFINE_STANDARD_HANDLE(IGESControl_IGESBoundary, IGESToBRep_IGESBoundary)
0031 
0032 //! Translates IGES boundary entity (types 141, 142 and 508)
0033 //! in Advanced Data Exchange.
0034 //! Redefines translation and treatment methods from inherited
0035 //! open class IGESToBRep_IGESBoundary.
0036 class IGESControl_IGESBoundary : public IGESToBRep_IGESBoundary
0037 {
0038 
0039 public:
0040   //! Creates an object and calls inherited constructor.
0041   Standard_EXPORT IGESControl_IGESBoundary();
0042 
0043   //! Creates an object and calls inherited constructor.
0044   Standard_EXPORT IGESControl_IGESBoundary(const IGESToBRep_CurveAndSurface& CS);
0045 
0046   //! Checks result of translation of IGES boundary entities
0047   //! (types 141, 142 or 508).
0048   //! Checks consistency of 2D and 3D representations and keeps
0049   //! only one if they are inconsistent.
0050   //! Checks the closure of resulting wire and if it is not closed,
0051   //! checks 2D and 3D representation and updates the resulting
0052   //! wire to contain only closed representation.
0053   Standard_EXPORT virtual void Check(const Standard_Boolean result,
0054                                      const Standard_Boolean checkclosure,
0055                                      const Standard_Boolean okCurve3d,
0056                                      const Standard_Boolean okCurve2d) Standard_OVERRIDE;
0057 
0058   DEFINE_STANDARD_RTTIEXT(IGESControl_IGESBoundary, IGESToBRep_IGESBoundary)
0059 
0060 protected:
0061   Standard_EXPORT virtual Standard_Boolean Transfer(
0062     Standard_Boolean&                           okCurve,
0063     Standard_Boolean&                           okCurve3d,
0064     Standard_Boolean&                           okCurve2d,
0065     const Handle(IGESData_IGESEntity)&          icurve3d,
0066     const Handle(ShapeExtend_WireData)&         scurve3d,
0067     const Standard_Boolean                      usescurve,
0068     const Standard_Boolean                      toreverse3d,
0069     const Handle(IGESData_HArray1OfIGESEntity)& curves2d,
0070     const Standard_Boolean                      toreverse2d,
0071     const Standard_Integer                      number,
0072     Handle(ShapeExtend_WireData)&               lsewd) Standard_OVERRIDE;
0073 };
0074 
0075 #endif // _IGESControl_IGESBoundary_HeaderFile