Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-07 08:36:05

0001 // Created on: 1994-11-03
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_Actor_HeaderFile
0018 #define _IGESToBRep_Actor_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <Standard_Integer.hxx>
0024 #include <Transfer_ActorOfTransientProcess.hxx>
0025 #include <Message_ProgressRange.hxx>
0026 
0027 struct DE_ShapeFixParameters;
0028 class Interface_InterfaceModel;
0029 class Standard_Transient;
0030 class Transfer_Binder;
0031 class Transfer_TransientProcess;
0032 
0033 class IGESToBRep_Actor;
0034 DEFINE_STANDARD_HANDLE(IGESToBRep_Actor, Transfer_ActorOfTransientProcess)
0035 
0036 //! This class performs the transfer of an Entity from
0037 //! IGESToBRep
0038 //!
0039 //! I.E. for each type of Entity, it invokes the appropriate Tool
0040 //! then returns the Binder which contains the Result
0041 class IGESToBRep_Actor : public Transfer_ActorOfTransientProcess
0042 {
0043 public:
0044   Standard_EXPORT IGESToBRep_Actor();
0045 
0046   Standard_EXPORT void SetModel(const Handle(Interface_InterfaceModel)& model);
0047 
0048   //! ---Purpose   By default continuity = 0
0049   //! if continuity = 1 : try C1
0050   //! if continuity = 2 : try C2
0051   Standard_EXPORT void SetContinuity(const Standard_Integer continuity = 0);
0052 
0053   //! Return "thecontinuity"
0054   Standard_EXPORT Standard_Integer GetContinuity() const;
0055 
0056   Standard_EXPORT virtual Standard_Boolean Recognize(const Handle(Standard_Transient)& start)
0057     Standard_OVERRIDE;
0058 
0059   Standard_EXPORT virtual Handle(Transfer_Binder) Transfer(
0060     const Handle(Standard_Transient)&        start,
0061     const Handle(Transfer_TransientProcess)& TP,
0062     const Message_ProgressRange& theProgress = Message_ProgressRange()) Standard_OVERRIDE;
0063 
0064   //! Returns the tolerance which was actually used, either from
0065   //! the file or from statics
0066   Standard_EXPORT Standard_Real UsedTolerance() const;
0067 
0068   DEFINE_STANDARD_RTTIEXT(IGESToBRep_Actor, Transfer_ActorOfTransientProcess)
0069 
0070 private:
0071   Handle(Interface_InterfaceModel) themodel;
0072   Standard_Integer                 thecontinuity;
0073   Standard_Real                    theeps;
0074 };
0075 
0076 #endif // _IGESToBRep_Actor_HeaderFile