1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: PartSet_TestOCC.h
4 // Created: 28 Apr 2014
5 // Author: Natalia ERMOLAEVA
7 #ifndef PartSet_TestOCC_H
8 #define PartSet_TestOCC_H
13 class Handle_AIS_InteractiveContext;
14 class Handle_V3d_View;
17 \class PartSet_TestOCC
18 * \brief The operation to test OCC viewer work
20 class PARTSET_EXPORT PartSet_TestOCC
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);
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);
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);
48 /// Creates a temporary line
49 /// \param the workshop to get the operation manager and the displayer
50 static void createTestLine(XGUI_Workshop* theWorkshop);
52 /// Changes a temporary line
53 /// \param the workshop to get the operation manager and the displayer
54 static void changeTestLine(XGUI_Workshop* theWorkshop);
56 /// Emulates the mouse moving in the viewer
57 static void moveMouse(Handle_AIS_InteractiveContext theContext, Handle_V3d_View theView);