1 // Created on: 1994-12-22
2 // Created by: Christian CAILLET
3 // Copyright (c) 1994-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 _StepSelect_ModelModifier_HeaderFile
18 #define _StepSelect_ModelModifier_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <IFSelect_Modifier.hxx>
24 #include <Standard_Boolean.hxx>
25 class StepData_StepModel;
26 class StepData_Protocol;
27 class IFSelect_ContextModif;
28 class Interface_InterfaceModel;
29 class Interface_Protocol;
30 class Interface_CopyTool;
33 class StepSelect_ModelModifier;
34 DEFINE_STANDARD_HANDLE(StepSelect_ModelModifier, IFSelect_Modifier)
37 class StepSelect_ModelModifier : public IFSelect_Modifier
43 //! The inherited Perform does the required cast (and refuses to
44 //! go further if cast has failed) then calls the instantiated
46 Standard_EXPORT void Perform (IFSelect_ContextModif& ctx, const Handle(Interface_InterfaceModel)& target, const Handle(Interface_Protocol)& protocol, Interface_CopyTool& TC) const;
48 //! Specific Perform with Protocol. It is defined to let the
49 //! Protocol unused and to call Performing without Protocol
50 //! (most current case). It can be redefined if specific action
51 //! requires Protocol.
52 Standard_EXPORT virtual void PerformProtocol (IFSelect_ContextModif& ctx, const Handle(StepData_StepModel)& target, const Handle(StepData_Protocol)& proto, Interface_CopyTool& TC) const;
54 //! Specific Perform, without Protocol. If Performing with
55 //! Protocol is redefined, Performing without Protocol must
56 //! though be defined to do nothing (not called, but demanded
58 Standard_EXPORT virtual void Performing (IFSelect_ContextModif& ctx, const Handle(StepData_StepModel)& target, Interface_CopyTool& TC) const = 0;
63 DEFINE_STANDARD_RTTI(StepSelect_ModelModifier,IFSelect_Modifier)
68 //! Calls inherited Initialize, transmits to it the information
70 Standard_EXPORT StepSelect_ModelModifier(const Standard_Boolean maychangegraph);
87 #endif // _StepSelect_ModelModifier_HeaderFile