Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-12 09:17:43

0001 // Created on: 1993-05-10
0002 // Created by: Christian CAILLET
0003 // Copyright (c) 1993-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 _IGESSolid_GeneralModule_HeaderFile
0018 #define _IGESSolid_GeneralModule_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <IGESData_GeneralModule.hxx>
0024 #include <Standard_Integer.hxx>
0025 class IGESData_IGESEntity;
0026 class Interface_EntityIterator;
0027 class IGESData_DirChecker;
0028 class Interface_ShareTool;
0029 class Interface_Check;
0030 class Standard_Transient;
0031 class Interface_CopyTool;
0032 
0033 //! Definition of General Services for IGESSolid (specific part)
0034 //! This Services comprise : Shared & Implied Lists, Copy, Check
0035 class IGESSolid_GeneralModule : public IGESData_GeneralModule
0036 {
0037 
0038 public:
0039   //! Creates a GeneralModule from IGESSolid and puts it into GeneralLib
0040   Standard_EXPORT IGESSolid_GeneralModule();
0041 
0042   //! Lists the Entities shared by a given IGESEntity <ent>, from
0043   //! its specific parameters : specific for each type
0044   Standard_EXPORT void OwnSharedCase(const int                               CN,
0045                                      const occ::handle<IGESData_IGESEntity>& ent,
0046                                      Interface_EntityIterator&               iter) const override;
0047 
0048   //! Returns a DirChecker, specific for each type of Entity
0049   //! (identified by its Case Number) : this DirChecker defines
0050   //! constraints which must be respected by the DirectoryPart
0051   Standard_EXPORT IGESData_DirChecker
0052     DirChecker(const int CN, const occ::handle<IGESData_IGESEntity>& ent) const override;
0053 
0054   //! Performs Specific Semantic Check for each type of Entity
0055   Standard_EXPORT void OwnCheckCase(const int                               CN,
0056                                     const occ::handle<IGESData_IGESEntity>& ent,
0057                                     const Interface_ShareTool&              shares,
0058                                     occ::handle<Interface_Check>&           ach) const override;
0059 
0060   //! Specific creation of a new void entity
0061   Standard_EXPORT bool NewVoid(const int CN, occ::handle<Standard_Transient>& entto) const override;
0062 
0063   //! Copies parameters which are specific of each Type of Entity
0064   Standard_EXPORT void OwnCopyCase(const int                               CN,
0065                                    const occ::handle<IGESData_IGESEntity>& entfrom,
0066                                    const occ::handle<IGESData_IGESEntity>& entto,
0067                                    Interface_CopyTool&                     TC) const override;
0068 
0069   //! Returns a category number which characterizes an entity
0070   //! Shape for all
0071   Standard_EXPORT int CategoryNumber(const int                              CN,
0072                                      const occ::handle<Standard_Transient>& ent,
0073                                      const Interface_ShareTool&             shares) const override;
0074 
0075   DEFINE_STANDARD_RTTIEXT(IGESSolid_GeneralModule, IGESData_GeneralModule)
0076 };
0077 
0078 #endif // _IGESSolid_GeneralModule_HeaderFile