]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
OCC Bugs are 24965, 24966
authornds <natalia.donis@opencascade.com>
Wed, 28 May 2014 07:33:08 +0000 (11:33 +0400)
committernds <natalia.donis@opencascade.com>
Wed, 28 May 2014 07:33:08 +0000 (11:33 +0400)
src/PartSet/PartSet_Module.cpp
src/PartSet/PartSet_TestOCC.cpp
src/PartSet/PartSet_TestOCC.h

index 7cd1460300b283fee7df42cfcf54eee08ab3aaa3..374b1d503bb2607c30e30610eeaeb09e4395df78 100644 (file)
@@ -109,12 +109,11 @@ std::string PartSet_Module::featureFile(const std::string& theFeatureId)
  */
 void PartSet_Module::onFeatureTriggered()
 {
-  //PartSet_TestOCC::testSelection_OCC(myWorkshop->viewer()->AISContext(),
+  //PartSet_TestOCC::local_selection_change_shape(myWorkshop->viewer()->AISContext(),
   //                                   myWorkshop->viewer()->activeView());
 
-  //PartSet_TestOCC::testErase_OCC(myWorkshop->viewer()->AISContext(),
-  //                               myWorkshop->viewer()->activeView());
-
+  //PartSet_TestOCC::local_selection_erase(myWorkshop->viewer()->AISContext(),
+  //                                       myWorkshop->viewer()->activeView());
   QAction* aCmd = dynamic_cast<QAction*>(sender());
   //Do nothing on uncheck
   if(aCmd->isCheckable() && !aCmd->isChecked())
index 846973bcae5534b6b892da8599eabd5fd7c2cc99..60798a78beae046b0a02c73e2740e7672321e81b 100644 (file)
@@ -43,8 +43,8 @@ void PartSet_TestOCC::testSelection(XGUI_Workshop* theWorkshop)
   }
 }
 
-void PartSet_TestOCC::testSelection_OCC(Handle_AIS_InteractiveContext theContext,
-                                        Handle_V3d_View theView)
+void PartSet_TestOCC::local_selection_change_shape(Handle_AIS_InteractiveContext theContext,
+                                                   Handle_V3d_View theView)
 {
   // 1. Create shape
   gp_Pnt aPnt1(100, 100, 0);
@@ -94,7 +94,7 @@ void PartSet_TestOCC::testSelection_OCC(Handle_AIS_InteractiveContext theContext
     std::cout << "Error: The point of the first line should not be selected." << std::endl;
 }
 
-void PartSet_TestOCC::testErase_OCC(Handle_AIS_InteractiveContext theContext,
+void PartSet_TestOCC::local_selection_erase(Handle_AIS_InteractiveContext theContext,
                                     Handle_V3d_View theView)
 {
   // 1. Create shape
index 5de140c30af412fc88e09c8529b2b22c7bb0c23f..e4b8dd005417a9c2eddd74fba7dbb5c4d7a9f428 100644 (file)
@@ -28,15 +28,15 @@ public:
   /// BUG: The result contains the selection from the first presentation
   /// \param theContext a viewer interactive context
   /// \param theContext a view
-  static void testSelection_OCC(Handle_AIS_InteractiveContext theContext,
-                                Handle_V3d_View theView);
+  static void local_selection_change_shape(Handle_AIS_InteractiveContext theContext,
+                                           Handle_V3d_View theView);
 
   /// Creates row OCC presentation, activate in the local context, select it, erase the presentation
   /// BUG: The selected shape are in the viewer even after erase
   /// \param theContext a viewer interactive context
   /// \param theContext a view
-  static void testErase_OCC(Handle_AIS_InteractiveContext theContext,
-                            Handle_V3d_View theView);
+  static void local_selection_erase(Handle_AIS_InteractiveContext theContext,
+                                    Handle_V3d_View theView);
 
 private: