Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-20 09:18:04

0001 // Created on: 1994-06-01
0002 // Created by: Christian CAILLET
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 _IGESSelect_AutoCorrect_HeaderFile
0018 #define _IGESSelect_AutoCorrect_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <IGESSelect_ModelModifier.hxx>
0024 class IFSelect_ContextModif;
0025 class IGESData_IGESModel;
0026 class Interface_CopyTool;
0027 class TCollection_AsciiString;
0028 
0029 //! Does the absolutely effective corrections on IGES Entity.
0030 //! That is to say : regarding the norm in details, some values
0031 //! have mandatory values, or set of values with constraints.
0032 //! When such values/constraints are univoque, they can be forced.
0033 //! Also nullifies items of Directory Part, Associativities, and
0034 //! Properties, which are not (or not longer) in <target> Model.
0035 //!
0036 //! Works by calling a BasicEditor from IGESData
0037 //! Works with the specific IGES Services : DirChecker which
0038 //! allows to correct data in "Directory Part" of Entities (such
0039 //! as required values for status, or references to be null), and
0040 //! the specific IGES service OwnCorrect, which is specialised for
0041 //! each type of entity.
0042 //!
0043 //! Remark : this does not comprise the computation of use flag or
0044 //! subordinate status according references, which is made by
0045 //! the ModelModifier class ComputeStatus.
0046 //!
0047 //! The Input Selection, when present, designates the entities to
0048 //! be corrected. If it is not present, all the entities of the
0049 //! model are corrected.
0050 class IGESSelect_AutoCorrect : public IGESSelect_ModelModifier
0051 {
0052 
0053 public:
0054   //! Creates an AutoCorrect.
0055   Standard_EXPORT IGESSelect_AutoCorrect();
0056 
0057   //! Specific action : corrects entities when it is absolutely
0058   //! obvious, i.e. non equivoque (by DirChecker and specific
0059   //! service OwnCorrect) : works with a protocol.
0060   Standard_EXPORT void Performing(IFSelect_ContextModif&                 ctx,
0061                                   const occ::handle<IGESData_IGESModel>& target,
0062                                   Interface_CopyTool&                    TC) const override;
0063 
0064   //! Returns a text which is
0065   //! "Auto-correction of IGES Entities"
0066   Standard_EXPORT TCollection_AsciiString Label() const override;
0067 
0068   DEFINE_STANDARD_RTTIEXT(IGESSelect_AutoCorrect, IGESSelect_ModelModifier)
0069 };
0070 
0071 #endif // _IGESSelect_AutoCorrect_HeaderFile