]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL13460 (force the mesh to go through a point)
authoreap <eap@opencascade.com>
Wed, 28 Feb 2007 10:00:55 +0000 (10:00 +0000)
committereap <eap@opencascade.com>
Wed, 28 Feb 2007 10:00:55 +0000 (10:00 +0000)
   add SMESHGUI_MakeNodeAtPointDlg
   extract SMESH_MeshEditor.idl from SMESH_Mesh.idl

src/SMESHGUI/Makefile.in
src/SMESHGUI/SMESHGUI.cxx

index 9a9385c7178dda78a3e1db6ded1125ebd2b80292..ee1d7f6919b911af47e8b76bfd6bffa0be51c028 100644 (file)
@@ -112,7 +112,8 @@ LIB_SRC =   SMESHGUI.cxx \
                SMESHGUI_AddQuadraticElementDlg.cxx \
                SMESHGUI_ConvToQuadDlg.cxx \
                SMESHGUI_ConvToQuadOp.cxx \
-               SMESHGUI_MeshEditPreview.cxx
+               SMESHGUI_MeshEditPreview.cxx \
+               SMESHGUI_MakeNodeAtPointDlg.cxx
 
 LIB_MOC = \
                SMESHGUI.h \
@@ -160,13 +161,15 @@ LIB_MOC = \
                SMESHGUI_ShapeByMeshDlg.h \
                SMESHGUI_AddQuadraticElementDlg.h \
                SMESHGUI_ConvToQuadDlg.h \
-               SMESHGUI_ConvToQuadOp.h
+               SMESHGUI_ConvToQuadOp.h \
+               SMESHGUI_MakeNodeAtPointDlg.h
 
 
 LIB_CLIENT_IDL = SALOME_Exception.idl \
                 GEOM_Gen.idl \
                 SMESH_Gen.idl \
                 SMESH_Mesh.idl \
+                SMESH_MeshEditor.idl \
                 SMESH_Hypothesis.idl \
                 SMESH_Group.idl \
                 SALOMEDS.idl \
index a99f1b2fde9f5f01648a005b01d47e04237b959b..89d212a3cea60404a85cd8132b7d16150a2fe249 100644 (file)
@@ -65,6 +65,7 @@
 #include "SMESHGUI_ConvToQuadOp.h"
 #include "SMESHGUI_MeshOp.h"
 #include "SMESHGUI_Displayer.h"
+#include "SMESHGUI_MakeNodeAtPointDlg.h"
 
 #include "SMESHGUI_Utils.h"
 #include "SMESHGUI_GEOMGenUtils.h"
 
 #include "SALOMEconfig.h"
 #include CORBA_CLIENT_HEADER(SALOMEDS_Attributes)
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
 
 // QT Includes
 #define         INCLUDE_MENUITEM_DEF
@@ -2108,6 +2110,10 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
       break;
     }
 
+  case 4067: // MAKE MESH PASS THROUGH POINT
+    startOperation( 4067 );
+    break;
+
   case 5105: // Library of selection filters
   {
     static QValueList<int> aTypes;
@@ -2384,6 +2390,7 @@ void SMESHGUI::initialize( CAM_Application* app )
   createSMESHAction( 4064, "SEW",             "ICON_SMESH_SEWING_FREEBORDERS" );
   createSMESHAction( 4065, "MERGE",           "ICON_SMESH_MERGE_NODES" );
   createSMESHAction( 4066, "MERGE_ELEMENTS",  "ICON_DLG_MERGE_ELEMENTS" );
+  createSMESHAction( 4067, "MESH_THROU_POINT","ICON_DLG_MESH_THROU_POINT" );
   createSMESHAction(  406, "MOVE",            "ICON_DLG_MOVE_NODE" );
   createSMESHAction(  407, "INV",             "ICON_DLG_MESH_DIAGONAL" );
   createSMESHAction(  408, "UNION2",          "ICON_UNION2TRI" );
@@ -2532,6 +2539,7 @@ void SMESHGUI::initialize( CAM_Application* app )
   createMenu( 4066, transfId, -1 );
 
   createMenu( 406, modifyId, -1 );
+  createMenu( 4067,modifyId, -1 );
   createMenu( 407, modifyId, -1 );
   createMenu( 408, modifyId, -1 );
   createMenu( 409, modifyId, -1 );
@@ -2617,6 +2625,7 @@ void SMESHGUI::initialize( CAM_Application* app )
   createTool( separator(), addRemTb );
 
   createTool( 406, modifyTb );
+  createTool( 4067,modifyTb );
   createTool( 407, modifyTb );
   createTool( 408, modifyTb );
   createTool( 409, modifyTb );
@@ -3288,6 +3297,9 @@ LightApp_Operation* SMESHGUI::createOperation( const int id ) const
     case 417: //convert to quadratic
       op = new SMESHGUI_ConvToQuadOp();
     break;
+    case 4067: // make mesh pass through point
+      op = new SMESHGUI_MakeNodeAtPointOp();
+      break;
     default:
     break;
   }