Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:04

0001 // Created on: 1994-09-28
0002 // Created by: Marie Jose MARTZ
0003 // Copyright (c) 1994-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _IGESToBRep_BRepEntity_HeaderFile
0018 #define _IGESToBRep_BRepEntity_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <IGESToBRep_CurveAndSurface.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <Message_ProgressRange.hxx>
0027 
0028 class TopoDS_Shape;
0029 class IGESData_IGESEntity;
0030 class TopoDS_Vertex;
0031 class IGESSolid_VertexList;
0032 class IGESSolid_EdgeList;
0033 class IGESSolid_Loop;
0034 class TopoDS_Face;
0035 class gp_Trsf2d;
0036 class IGESSolid_Face;
0037 class IGESSolid_Shell;
0038 class IGESSolid_ManifoldSolid;
0039 
0040 
0041 //! Provides methods to transfer BRep entities
0042 //! ( VertexList 502, EdgeList 504, Loop 508,
0043 //! Face 510, Shell 514, ManifoldSolid 186)
0044 //! from IGES to CASCADE.
0045 class IGESToBRep_BRepEntity  : public IGESToBRep_CurveAndSurface
0046 {
0047 public:
0048 
0049   DEFINE_STANDARD_ALLOC
0050 
0051   
0052   //! Creates  a tool BRepEntity  ready  to  run, with
0053   //! epsilons  set  to  1.E-04,  TheModeTopo  to  True,  the
0054   //! optimization of  the continuity to False.
0055   Standard_EXPORT IGESToBRep_BRepEntity();
0056   
0057   //! Creates a tool BRepEntity ready to run and sets its
0058   //! fields as CS's.
0059   Standard_EXPORT IGESToBRep_BRepEntity(const IGESToBRep_CurveAndSurface& CS);
0060   
0061   //! Creates a tool BRepEntity ready to run.
0062   Standard_EXPORT IGESToBRep_BRepEntity(const Standard_Real eps, const Standard_Real epsGeom, const Standard_Real epsCoeff, const Standard_Boolean mode, const Standard_Boolean modeapprox, const Standard_Boolean optimized);
0063   
0064   //! Transfer the BRepEntity" : Face, Shell or ManifoldSolid.
0065   Standard_EXPORT TopoDS_Shape TransferBRepEntity (const Handle(IGESData_IGESEntity)& start,
0066                                                    const Message_ProgressRange& theProgress = Message_ProgressRange());
0067   
0068   //! Transfer the entity number "index" of the VertexList "start"
0069   Standard_EXPORT TopoDS_Vertex TransferVertex (const Handle(IGESSolid_VertexList)& start, const Standard_Integer index);
0070   
0071   //! Transfer the entity number "index" of the EdgeList "start".
0072   Standard_EXPORT TopoDS_Shape TransferEdge (const Handle(IGESSolid_EdgeList)& start, const Standard_Integer index);
0073   
0074   //! Transfer the Loop Entity
0075   Standard_EXPORT TopoDS_Shape TransferLoop (const Handle(IGESSolid_Loop)& start, const TopoDS_Face& Face, const gp_Trsf2d& trans, const Standard_Real uFact);
0076   
0077   //! Transfer the Face Entity
0078   Standard_EXPORT TopoDS_Shape TransferFace (const Handle(IGESSolid_Face)& start);
0079   
0080   //! Transfer the Shell Entity
0081   Standard_EXPORT TopoDS_Shape TransferShell (const Handle(IGESSolid_Shell)& start,
0082                                               const Message_ProgressRange& theProgress = Message_ProgressRange());
0083   
0084   //! Transfer the ManifoldSolid Entity
0085   Standard_EXPORT TopoDS_Shape TransferManifoldSolid (const Handle(IGESSolid_ManifoldSolid)& start,
0086                                                       const Message_ProgressRange& theProgress = Message_ProgressRange());
0087 
0088 
0089 
0090 
0091 protected:
0092 
0093 
0094 
0095 
0096 
0097 private:
0098 
0099 
0100 
0101 
0102 
0103 };
0104 
0105 
0106 
0107 
0108 
0109 
0110 
0111 #endif // _IGESToBRep_BRepEntity_HeaderFile