Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-04 08:32:22

0001 // Created on: 1993-08-26
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 _IFSelect_Modifier_HeaderFile
0018 #define _IFSelect_Modifier_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <IFSelect_GeneralModifier.hxx>
0024 class IFSelect_ContextModif;
0025 class Interface_InterfaceModel;
0026 class Interface_Protocol;
0027 class Interface_CopyTool;
0028 
0029 class IFSelect_Modifier;
0030 DEFINE_STANDARD_HANDLE(IFSelect_Modifier, IFSelect_GeneralModifier)
0031 
0032 //! This class gives a frame for Actions which can work globally
0033 //! on a File once completely defined (i.e. afterwards)
0034 //!
0035 //! Remark : if no Selection is set as criterium, the Modifier is
0036 //! set to work and should consider all the content of the Model
0037 //! produced.
0038 class IFSelect_Modifier : public IFSelect_GeneralModifier
0039 {
0040 
0041 public:
0042   //! This deferred method defines the action specific to each class
0043   //! of Modifier. It is called by a ModelCopier, once the Model
0044   //! generated and filled. ModelCopier has already checked the
0045   //! criteria (Dispatch, Model Rank, Selection) before calling it.
0046   //!
0047   //! <ctx> detains information about original data and selection.
0048   //! The result of copying, on which modifications are to be done,
0049   //! is <target>.
0050   //! <TC> allows to run additional copies as required
0051   //!
0052   //! In case of Error, use methods CCheck from the ContextModif
0053   //! to acknowledge an entity Check or a Global Check with messages
0054   Standard_EXPORT virtual void Perform(IFSelect_ContextModif&                  ctx,
0055                                        const Handle(Interface_InterfaceModel)& target,
0056                                        const Handle(Interface_Protocol)&       protocol,
0057                                        Interface_CopyTool&                     TC) const = 0;
0058 
0059   DEFINE_STANDARD_RTTIEXT(IFSelect_Modifier, IFSelect_GeneralModifier)
0060 
0061 protected:
0062   //! Calls inherited Initialize, transmits to it the information
0063   //! <maychangegraph>
0064   Standard_EXPORT IFSelect_Modifier(const Standard_Boolean maychangegraph);
0065 
0066 private:
0067 };
0068 
0069 #endif // _IFSelect_Modifier_HeaderFile