Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:57

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 
0041   //! Creates an object and calls inherited constructor.
0042   Standard_EXPORT IGESControl_IGESBoundary();
0043 
0044   //! Creates an object and calls inherited constructor.
0045   Standard_EXPORT IGESControl_IGESBoundary(const IGESToBRep_CurveAndSurface& CS);
0046 
0047   //! Checks result of translation of IGES boundary entities
0048   //! (types 141, 142 or 508).
0049   //! Checks consistency of 2D and 3D representations and keeps
0050   //! only one if they are inconsistent.
0051   //! Checks the closure of resulting wire and if it is not closed,
0052   //! checks 2D and 3D representation and updates the resulting
0053   //! wire to contain only closed representation.
0054   Standard_EXPORT virtual void Check (const Standard_Boolean result, const Standard_Boolean checkclosure, const Standard_Boolean okCurve3d, const Standard_Boolean okCurve2d) Standard_OVERRIDE;
0055 
0056   DEFINE_STANDARD_RTTIEXT(IGESControl_IGESBoundary,IGESToBRep_IGESBoundary)
0057 
0058 protected:
0059 
0060   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;
0061 
0062 };
0063 
0064 #endif // _IGESControl_IGESBoundary_HeaderFile