Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-29 09:20:43

0001 // Created on: 1994-11-25
0002 // Created by: Frederic MAUPAS
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 _TopoDSToStep_HeaderFile
0018 #define _TopoDSToStep_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <TopoDSToStep_BuilderError.hxx>
0025 #include <TopoDSToStep_MakeFaceError.hxx>
0026 #include <TopoDSToStep_MakeWireError.hxx>
0027 #include <TopoDSToStep_MakeEdgeError.hxx>
0028 #include <TopoDSToStep_MakeVertexError.hxx>
0029 class TCollection_HAsciiString;
0030 class Transfer_FinderProcess;
0031 class TopoDS_Shape;
0032 class Standard_Transient;
0033 class TopoDSToStep_Tool;
0034 
0035 //! This package implements the mapping between CAS.CAD
0036 //! Shape representation and AP214 Shape Representation.
0037 //! The target schema is pms_c4 (a subset of AP214)
0038 //!
0039 //! How to use this Package :
0040 //!
0041 //! Entry point are context dependent. It can be :
0042 //! MakeManifoldSolidBrep
0043 //! MakeBrepWithVoids
0044 //! MakeFacetedBrep
0045 //! MakeFacetedBrepAndBrepWithVoids
0046 //! MakeShellBasedSurfaceModel
0047 //! Each of these classes call the Builder
0048 //! The class tool centralizes some common information.
0049 class TopoDSToStep
0050 {
0051 public:
0052   DEFINE_STANDARD_ALLOC
0053 
0054   Standard_EXPORT static occ::handle<TCollection_HAsciiString> DecodeBuilderError(
0055     const TopoDSToStep_BuilderError E);
0056 
0057   Standard_EXPORT static occ::handle<TCollection_HAsciiString> DecodeFaceError(
0058     const TopoDSToStep_MakeFaceError E);
0059 
0060   Standard_EXPORT static occ::handle<TCollection_HAsciiString> DecodeWireError(
0061     const TopoDSToStep_MakeWireError E);
0062 
0063   Standard_EXPORT static occ::handle<TCollection_HAsciiString> DecodeEdgeError(
0064     const TopoDSToStep_MakeEdgeError E);
0065 
0066   //! Returns a new shape without undirect surfaces.
0067   Standard_EXPORT static occ::handle<TCollection_HAsciiString> DecodeVertexError(
0068     const TopoDSToStep_MakeVertexError E);
0069 
0070   //! Adds an entity into the list of results (binders) for
0071   //! shape stored in FinderProcess
0072   Standard_EXPORT static void AddResult(const occ::handle<Transfer_FinderProcess>& FP,
0073                                         const TopoDS_Shape&                        Shape,
0074                                         const occ::handle<Standard_Transient>&     entity);
0075 
0076   //! Adds all entities recorded in Tool into the map of results
0077   //! (binders) stored in FinderProcess
0078   Standard_EXPORT static void AddResult(const occ::handle<Transfer_FinderProcess>& FP,
0079                                         const TopoDSToStep_Tool&                   Tool);
0080 };
0081 
0082 #endif // _TopoDSToStep_HeaderFile