1 // Created on: 2017-06-16
2 // Created by: Natalia ERMOLAEVA
3 // Copyright (c) 2017 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef VInspectorAPI_CallBack_H
17 #define VInspectorAPI_CallBack_H
19 #include <Standard.hxx>
20 #include <Standard_Integer.hxx>
21 #include <Standard_Transient.hxx>
22 #include <TColStd_ListOfInteger.hxx>
23 #include <TopoDS_Shape.hxx>
25 class AIS_InteractiveObject;
26 class SelectMgr_EntityOwner;
28 //! \class VInspectorAPI_CallBack
29 //! API of AIS_InteractiveContext methods to provide information about the actions
30 class VInspectorAPI_CallBack : public Standard_Transient
36 Standard_EXPORT VInspectorAPI_CallBack();
39 virtual ~VInspectorAPI_CallBack() {}
41 //! Processing method of context
42 virtual void Display(Handle(AIS_InteractiveObject) thePrs) = 0;
44 //! Processing method of context
45 virtual void Redisplay(Handle(AIS_InteractiveObject) thePrs) = 0;
47 //! Processing method of context
48 virtual void Remove(Handle(AIS_InteractiveObject) thePrs) = 0;
50 //! Processing method of context
51 virtual void Load(Handle(AIS_InteractiveObject) thePrs) = 0;
53 //! Processing method of context
54 virtual void ActivatedModes (Handle(AIS_InteractiveObject) thePrs, TColStd_ListOfInteger& theList) = 0;
56 //! Processing method of context
57 virtual void Activate(Handle(AIS_InteractiveObject) thePrs, const Standard_Integer theMode) = 0;
59 //! Processing method of context
60 virtual void Deactivate(Handle(AIS_InteractiveObject) thePrs) = 0;
62 //! Processing method of context
63 virtual void Deactivate(Handle(AIS_InteractiveObject) thePrs, const Standard_Integer theMode) = 0;
65 //! Processing method of context
66 virtual void AddOrRemoveSelected (const TopoDS_Shape& theShape) = 0;
68 //! Processing method of context
69 virtual void AddOrRemoveSelected (Handle(AIS_InteractiveObject) thePrs) = 0;
71 //! Processing method of context
72 virtual void AddOrRemoveSelected (Handle(SelectMgr_EntityOwner) theOwner) = 0;
74 //! Processing method of context
75 virtual void ClearSelected() = 0;
77 //! Processing method of context
78 virtual void ClearSelected(Handle(AIS_InteractiveObject) thePrs) = 0;
80 //! Processing method of context
81 virtual void MoveTo (const Standard_Integer theXPix, const Standard_Integer theYPix) = 0;
83 //! Processing method of context
84 virtual void SetSelected(Handle(AIS_InteractiveObject) thePrs) = 0;
86 //! Processing method of context
87 virtual void Select() = 0;
89 //! Processing method of context
90 virtual void ShiftSelect() = 0;
92 DEFINE_STANDARD_RTTIEXT(VInspectorAPI_CallBack, Standard_Transient)