]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
rnc: tiny modifications
authorgdd <gdd>
Wed, 9 Nov 2011 17:24:21 +0000 (17:24 +0000)
committergdd <gdd>
Wed, 9 Nov 2011 17:24:21 +0000 (17:24 +0000)
src/EntityGUI/EntityGUI_FeatureDetectorDlg.cxx
src/GEOMGUI/GeometryGUI.cxx

index d9b8a95339206324c12a24a8e1ef0bd3c2e15eba..2dc1adf3fe33c62bfd1e2b714ae4262d429cea4d 100644 (file)
@@ -434,16 +434,12 @@ GEOM::GEOM_IOperations_ptr EntityGUI_FeatureDetectorDlg::createOperation()
 //=================================================================================
 bool EntityGUI_FeatureDetectorDlg::execute( ObjectList& objects )
 {
-  MESSAGE("EntityGUI_FeatureDetectorDlg::execute( ObjectList& objects )")
-  
   bool res = false;
-  SUIT_ViewWindow*       theViewWindow  = getDesktop()->activeWindow();
   
-  MESSAGE("myFaceEntry = "<< myFaceEntry.toStdString());
+  SUIT_ViewWindow*       theViewWindow  = getDesktop()->activeWindow();
   std::map< std::string , std::vector<Handle(AIS_InteractiveObject)> >::iterator AISit;
   SOCC_Viewer* soccViewer = (SOCC_Viewer*)(theViewWindow->getViewManager()->getViewModel());
   
-  MESSAGE("repere1")
   AISit = soccViewer->entry2aisobjects.find(myFaceEntry.toStdString());
   if (AISit == soccViewer->entry2aisobjects.end())
     return res;
@@ -476,9 +472,9 @@ bool EntityGUI_FeatureDetectorDlg::execute( ObjectList& objects )
   QPoint bottomRight = QPoint(myEndPnt.X()   - pictureLeft, pictureTop - myEndPnt.Y());
   QRect aRect = QRect(topLeft, bottomRight);
   
-  
   GEOM::GEOM_IBasicOperations_var  aBasicOperations  = myGeomGUI->GetGeomGen()->GetIBasicOperations( getStudyId() );
   GEOM::GEOM_IShapesOperations_var aShapesOperations = GEOM::GEOM_IShapesOperations::_narrow( getOperation() );
+  
   if (myConstructorId == CORNERS)
   {
     if( !aRect.isEmpty() )
index d15bec532bc641ca2dd37bbc3ea5a027d712fffd..5e1a9979646ebeaca85db0bfc7526f7f1d5d4c4c 100644 (file)
@@ -915,8 +915,8 @@ void GeometryGUI::initialize( CAM_Application* app )
   createMenu( separator(),          newEntId, -1 );
   
 #ifdef WITH_OPENCV
-  createMenu( GEOMOp::OpFeatureDetect, newEntId, -1 );
   createMenu( GEOMOp::OpPictureImport, newEntId, -1 );
+  createMenu( GEOMOp::OpFeatureDetect, newEntId, -1 );
 #endif
 
   int operId = createMenu( tr( "MEN_OPERATIONS" ), -1, -1, 10 );