*/
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())
}
}
-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);
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
/// 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: