1 // Created on: 1993-08-26
2 // Created by: Christian CAILLET
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _IFSelect_Modifier_HeaderFile
18 #define _IFSelect_Modifier_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <IFSelect_GeneralModifier.hxx>
24 class IFSelect_ContextModif;
25 class Interface_InterfaceModel;
26 class Interface_Protocol;
27 class Interface_CopyTool;
30 class IFSelect_Modifier;
31 DEFINE_STANDARD_HANDLE(IFSelect_Modifier, IFSelect_GeneralModifier)
33 //! This class gives a frame for Actions which can work globally
34 //! on a File once completely defined (i.e. afterwards)
36 //! Remark : if no Selection is set as criterium, the Modifier is
37 //! set to work and should consider all the content of the Model
39 class IFSelect_Modifier : public IFSelect_GeneralModifier
45 //! This deferred method defines the action specific to each class
46 //! of Modifier. It is called by a ModelCopier, once the Model
47 //! generated and filled. ModelCopier has already checked the
48 //! criteria (Dispatch, Model Rank, Selection) before calling it.
50 //! <ctx> detains information about original data and selection.
51 //! The result of copying, on which modifications are to be done,
53 //! <TC> allows to run additional copies as required
55 //! In case of Error, use methods CCheck from the ContextModif
56 //! to aknowledge an entity Check or a Global Check with messages
57 Standard_EXPORT virtual void Perform (IFSelect_ContextModif& ctx, const Handle(Interface_InterfaceModel)& target, const Handle(Interface_Protocol)& protocol, Interface_CopyTool& TC) const = 0;
62 DEFINE_STANDARD_RTTIEXT(IFSelect_Modifier,IFSelect_GeneralModifier)
67 //! Calls inherited Initialize, transmits to it the information
69 Standard_EXPORT IFSelect_Modifier(const Standard_Boolean maychangegraph);
86 #endif // _IFSelect_Modifier_HeaderFile