14bbbdcb |
1 | // Created on: 2017-06-16 |
2 | // Created by: Natalia ERMOLAEVA |
3 | // Copyright (c) 2017 OPEN CASCADE SAS |
4 | // |
5 | // This file is part of Open CASCADE Technology software library. |
6 | // |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
12 | // |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
15 | |
16 | #ifndef VInspectorAPI_CallBack_H |
17 | #define VInspectorAPI_CallBack_H |
18 | |
19 | #include <Standard.hxx> |
20 | #include <Standard_Integer.hxx> |
21 | #include <Standard_Version.hxx> |
22 | #include <Standard_Transient.hxx> |
23 | #include <TColStd_ListOfInteger.hxx> |
24 | #include <TopoDS_Shape.hxx> |
25 | |
26 | #if OCC_VERSION_HEX > 0x060901 |
27 | class AIS_InteractiveObject; |
28 | #else |
29 | #include <AIS_InteractiveObject.hxx> |
30 | #endif |
31 | class SelectMgr_EntityOwner; |
32 | |
33 | DEFINE_STANDARD_HANDLE(VInspectorAPI_CallBack, Standard_Transient) |
34 | |
35 | //! \class VInspectorAPI_CallBack |
36 | //! API of AIS_InteractiveContext methods to provide information about the actions |
37 | class VInspectorAPI_CallBack : public Standard_Transient |
38 | { |
39 | |
40 | public: |
41 | |
42 | //! Constructor |
43 | Standard_EXPORT VInspectorAPI_CallBack(); |
44 | |
45 | //! Destructor |
46 | virtual ~VInspectorAPI_CallBack() {} |
47 | |
48 | //! Processing method of context |
49 | virtual void Display(Handle(AIS_InteractiveObject) thePrs) = 0; |
50 | |
51 | //! Processing method of context |
52 | virtual void Redisplay(Handle(AIS_InteractiveObject) thePrs) = 0; |
53 | |
54 | //! Processing method of context |
55 | virtual void Remove(Handle(AIS_InteractiveObject) thePrs) = 0; |
56 | |
57 | //! Processing method of context |
58 | virtual void Load(Handle(AIS_InteractiveObject) thePrs) = 0; |
59 | |
60 | //! Processing method of context |
61 | virtual void ActivatedModes (Handle(AIS_InteractiveObject) thePrs, TColStd_ListOfInteger& theList) = 0; |
62 | |
63 | //! Processing method of context |
64 | virtual void Activate(Handle(AIS_InteractiveObject) thePrs, const Standard_Integer theMode) = 0; |
65 | |
66 | //! Processing method of context |
67 | virtual void Deactivate(Handle(AIS_InteractiveObject) thePrs) = 0; |
68 | |
69 | //! Processing method of context |
70 | virtual void Deactivate(Handle(AIS_InteractiveObject) thePrs, const Standard_Integer theMode) = 0; |
71 | |
72 | //! Processing method of context |
73 | virtual void AddOrRemoveSelected (const TopoDS_Shape& theShape) = 0; |
74 | |
75 | //! Processing method of context |
76 | virtual void AddOrRemoveSelected (Handle(AIS_InteractiveObject) thePrs) = 0; |
77 | |
78 | //! Processing method of context |
79 | virtual void AddOrRemoveSelected (Handle(SelectMgr_EntityOwner) theOwner) = 0; |
80 | |
81 | //! Processing method of context |
82 | virtual void ClearSelected() = 0; |
83 | |
84 | //! Processing method of context |
85 | virtual void ClearSelected(Handle(AIS_InteractiveObject) thePrs) = 0; |
86 | |
87 | //! Processing method of context |
88 | virtual void MoveTo (const Standard_Integer theXPix, const Standard_Integer theYPix) = 0; |
89 | |
90 | //! Processing method of context |
91 | virtual void SetSelected(Handle(AIS_InteractiveObject) thePrs) = 0; |
92 | |
93 | //! Processing method of context |
94 | virtual void Select() = 0; |
95 | |
96 | //! Processing method of context |
97 | virtual void ShiftSelect() = 0; |
98 | |
99 | #if OCC_VERSION_HEX <= 0x060901 |
100 | DEFINE_STANDARD_RTTI(VInspectorAPI_CallBack) |
101 | #else |
102 | DEFINE_STANDARD_RTTIEXT(VInspectorAPI_CallBack, Standard_Transient) |
103 | #endif |
104 | }; |
105 | |
106 | #endif |