Salome HOME
An interface creation for a separate filter in order to use as a filter the OCC reali...
[modules/shaper.git] / src / PartSet / PartSet_TestOCC.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        PartSet_TestOCC.h
4 // Created:     28 Apr 2014
5 // Author:      Natalia ERMOLAEVA
6
7 #ifndef PartSet_TestOCC_H
8 #define PartSet_TestOCC_H
9
10 #include "PartSet.h"
11
12 class XGUI_Workshop;
13 class Handle_AIS_InteractiveContext;
14 class Handle_V3d_View;
15
16 /*!
17  \class PartSet_TestOCC
18  * \brief The operation to test OCC viewer work
19  */
20 class PARTSET_EXPORT PartSet_TestOCC
21 {
22  public:
23   PartSet_TestOCC()
24   {
25   }
26   ;
27
28   /// Creates a line feature, select it, modify the line. Check whether the highlight is correct.
29   /// \param the workshop to provide an access to the application information
30   static void testSelection(XGUI_Workshop* theWorkshop);
31
32   /// Creates row OCC presentation, activate in the local context, modify it and check selection
33   /// BUG: The result contains the selection from the first presentation
34   /// \param theContext a viewer interactive context
35   /// \param theContext a view
36   static void local_selection_change_shape(Handle_AIS_InteractiveContext theContext,
37                                            Handle_V3d_View theView);
38
39   /// Creates row OCC presentation, activate in the local context, select it, erase the presentation
40   /// BUG: The selected shape are in the viewer even after erase
41   /// \param theContext a viewer interactive context
42   /// \param theContext a view
43   static void local_selection_erase(Handle_AIS_InteractiveContext theContext,
44                                     Handle_V3d_View theView);
45
46  private:
47
48   /// Creates a temporary line
49   /// \param the workshop to get the operation manager and the displayer
50   static void createTestLine(XGUI_Workshop* theWorkshop);
51
52   /// Changes a temporary line
53   /// \param the workshop to get the operation manager and the displayer
54   static void changeTestLine(XGUI_Workshop* theWorkshop);
55
56   /// Emulates the mouse moving in the viewer
57   static void moveMouse(Handle_AIS_InteractiveContext theContext, Handle_V3d_View theView);
58 };
59
60 #endif