Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:47:22

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 
0030 class IGESSelect_AutoCorrect;
0031 DEFINE_STANDARD_HANDLE(IGESSelect_AutoCorrect, IGESSelect_ModelModifier)
0032 
0033 //! Does the absolutely effective corrections on IGES Entity.
0034 //! That is to say : regarding the norm in details, some values
0035 //! have mandatory values, or set of values with constraints.
0036 //! When such values/constraints are univoque, they can be forced.
0037 //! Also nullifies items of Directory Part, Associativities, and
0038 //! Properties, which are not (or not longer) in <target> Model.
0039 //!
0040 //! Works by calling a BasicEditor from IGESData
0041 //! Works with the specific IGES Services : DirChecker which
0042 //! allows to correct data in "Directory Part" of Entities (such
0043 //! as required values for status, or references to be null), and
0044 //! the specific IGES service OwnCorrect, which is specialised for
0045 //! each type of entity.
0046 //!
0047 //! Remark : this does not comprise the computation of use flag or
0048 //! subordinate status according references, which is made by
0049 //! the ModelModifier class ComputeStatus.
0050 //!
0051 //! The Input Selection, when present, designates the entities to
0052 //! be corrected. If it is not present, all the entities of the
0053 //! model are corrected.
0054 class IGESSelect_AutoCorrect : public IGESSelect_ModelModifier
0055 {
0056 
0057 public:
0058 
0059   
0060   //! Creates an AutoCorrect.
0061   Standard_EXPORT IGESSelect_AutoCorrect();
0062   
0063   //! Specific action : corrects entities when it is absolutely
0064   //! obvious, i.e. non equivoque (by DirChecker and specific
0065   //! service OwnCorrect) : works with a protocol.
0066   Standard_EXPORT void Performing (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, Interface_CopyTool& TC) const Standard_OVERRIDE;
0067   
0068   //! Returns a text which is
0069   //! "Auto-correction of IGES Entities"
0070   Standard_EXPORT TCollection_AsciiString Label() const Standard_OVERRIDE;
0071 
0072 
0073 
0074 
0075   DEFINE_STANDARD_RTTIEXT(IGESSelect_AutoCorrect,IGESSelect_ModelModifier)
0076 
0077 protected:
0078 
0079 
0080 
0081 
0082 private:
0083 
0084 
0085 
0086 
0087 };
0088 
0089 
0090 
0091 
0092 
0093 
0094 
0095 #endif // _IGESSelect_AutoCorrect_HeaderFile