Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:54

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