| // Created on: 1993-05-10 | |
| // Created by: Christian CAILLET | |
| // Copyright (c) 1993-1999 Matra Datavision | |
| // Copyright (c) 1999-2014 OPEN CASCADE SAS | |
| // | |
| // This file is part of Open CASCADE Technology software library. | |
| // | |
| // This library is free software; you can redistribute it and/or modify it under | |
| // the terms of the GNU Lesser General Public License version 2.1 as published | |
| // by the Free Software Foundation, with special exception defined in the file | |
| // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT | |
| // distribution for complete text of the license and disclaimer of any warranty. | |
| // | |
| // Alternatively, this file may be used under the terms of Open CASCADE | |
| // commercial license or contractual agreement. | |
| #ifndef _IGESBasic_GeneralModule_HeaderFile | |
| #define _IGESBasic_GeneralModule_HeaderFile | |
| #include <Standard.hxx> | |
| #include <Standard_Type.hxx> | |
| #include <IGESData_GeneralModule.hxx> | |
| #include <Standard_Integer.hxx> | |
| class IGESData_IGESEntity; | |
| class Interface_EntityIterator; | |
| class IGESData_DirChecker; | |
| class Interface_ShareTool; | |
| class Interface_Check; | |
| class Standard_Transient; | |
| class Interface_CopyTool; | |
| //! Definition of General Services for IGESBasic (specific part) | |
| //! This Services comprise : Shared & Implied Lists, Copy, Check | |
| class IGESBasic_GeneralModule : public IGESData_GeneralModule | |
| { | |
| public: | |
| //! Creates a GeneralModule from IGESBasic and puts it into GeneralLib | |
| Standard_EXPORT IGESBasic_GeneralModule(); | |
| //! Lists the Entities shared by a given IGESEntity <ent>, from | |
| //! its specific parameters : specific for each type | |
| Standard_EXPORT void OwnSharedCase(const int CN, | |
| const occ::handle<IGESData_IGESEntity>& ent, | |
| Interface_EntityIterator& iter) const override; | |
| //! Returns a DirChecker, specific for each type of Entity | |
| //! (identified by its Case Number) : this DirChecker defines | |
| //! constraints which must be respected by the DirectoryPart | |
| Standard_EXPORT IGESData_DirChecker | |
| DirChecker(const int CN, const occ::handle<IGESData_IGESEntity>& ent) const override; | |
| //! Performs Specific Semantic Check for each type of Entity | |
| Standard_EXPORT void OwnCheckCase(const int CN, | |
| const occ::handle<IGESData_IGESEntity>& ent, | |
| const Interface_ShareTool& shares, | |
| occ::handle<Interface_Check>& ach) const override; | |
| //! Specific creation of a new void entity | |
| Standard_EXPORT bool NewVoid(const int CN, occ::handle<Standard_Transient>& entto) const override; | |
| //! Copies parameters which are specific of each Type of Entity | |
| Standard_EXPORT void OwnCopyCase(const int CN, | |
| const occ::handle<IGESData_IGESEntity>& entfrom, | |
| const occ::handle<IGESData_IGESEntity>& entto, | |
| Interface_CopyTool& TC) const override; | |
| //! Returns a category number which characterizes an entity | |
| //! Structure for Groups, Figures & Co | |
| //! Description for External Refs | |
| //! Auxiliary for other | |
| Standard_EXPORT int CategoryNumber(const int CN, | |
| const occ::handle<Standard_Transient>& ent, | |
| const Interface_ShareTool& shares) const override; | |
| DEFINE_STANDARD_RTTIEXT(IGESBasic_GeneralModule, IGESData_GeneralModule) | |
| }; | |
| #endif // _IGESBasic_GeneralModule_HeaderFile |