42cf5bc1 |
1 | // Created on: 1994-05-31 |
2 | // Created by: Christian CAILLET |
3 | // Copyright (c) 1994-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
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. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _IGESSelect_ModelModifier_HeaderFile |
18 | #define _IGESSelect_ModelModifier_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <IFSelect_Modifier.hxx> |
24 | #include <Standard_Boolean.hxx> |
25 | class IGESData_IGESModel; |
26 | class IGESData_Protocol; |
27 | class IFSelect_ContextModif; |
28 | class Interface_InterfaceModel; |
29 | class Interface_Protocol; |
30 | class Interface_CopyTool; |
31 | |
32 | |
33 | class IGESSelect_ModelModifier; |
34 | DEFINE_STANDARD_HANDLE(IGESSelect_ModelModifier, IFSelect_Modifier) |
35 | |
36 | |
37 | class IGESSelect_ModelModifier : public IFSelect_Modifier |
38 | { |
39 | |
40 | public: |
41 | |
42 | |
36b9ff75 |
43 | //! The inherited Perform does the required cast (and refuses to |
44 | //! go further if cast has failed) then calls the instantiated |
45 | //! Performing |
79104795 |
46 | Standard_EXPORT void Perform (IFSelect_ContextModif& ctx, const Handle(Interface_InterfaceModel)& target, const Handle(Interface_Protocol)& protocol, Interface_CopyTool& TC) const Standard_OVERRIDE; |
42cf5bc1 |
47 | |
36b9ff75 |
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. |
42cf5bc1 |
52 | Standard_EXPORT virtual void PerformProtocol (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, const Handle(IGESData_Protocol)& proto, Interface_CopyTool& TC) const; |
53 | |
36b9ff75 |
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 |
57 | //! by the linker) |
42cf5bc1 |
58 | Standard_EXPORT virtual void Performing (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, Interface_CopyTool& TC) const = 0; |
59 | |
60 | |
61 | |
62 | |
92efcf78 |
63 | DEFINE_STANDARD_RTTI_INLINE(IGESSelect_ModelModifier,IFSelect_Modifier) |
42cf5bc1 |
64 | |
65 | protected: |
66 | |
67 | |
36b9ff75 |
68 | //! Calls inherited Initialize, transmits to it the information |
69 | //! <maychangegraph> |
42cf5bc1 |
70 | Standard_EXPORT IGESSelect_ModelModifier(const Standard_Boolean maychangegraph); |
71 | |
72 | |
73 | |
74 | private: |
75 | |
76 | |
77 | |
78 | |
79 | }; |
80 | |
81 | |
82 | |
83 | |
84 | |
85 | |
86 | |
87 | #endif // _IGESSelect_ModelModifier_HeaderFile |