]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
Modification according to SMESH_Gen changes occ/shaper2smesh
authorvsv <vsv@opencascade.com>
Mon, 9 Dec 2019 13:15:39 +0000 (16:15 +0300)
committervsv <vsv@opencascade.com>
Mon, 9 Dec 2019 13:15:39 +0000 (16:15 +0300)
src/GHS3DPlugin/CMakeLists.txt
src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx
src/GUI/CMakeLists.txt
src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx

index e44ead374a497e0022902b5264255faddf685777..9115767cc60f4aeb69f2b0b12e77165d63d8fc02 100644 (file)
@@ -102,7 +102,7 @@ SET(_bin_SCRIPTS
 
 # --- rules ---
 
-ADD_LIBRARY(GHS3DEngine ${GHS3DEngine_SOURCES})
+ADD_LIBRARY(GHS3DEngine ${GHS3DEngine_SOURCES} ${GHS3DEngine_HEADERS})
 TARGET_LINK_LIBRARIES(GHS3DEngine ${_link_LIBRARIES} )
 INSTALL(TARGETS GHS3DEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
 
index 38babcd280bb8e69219b4e4275837c57c35c76bd..4584421bc9ed2a2dbd99233fa3de9f8ce474523a 100644 (file)
@@ -838,7 +838,7 @@ bool GHS3DPlugin_Hypothesis_i::SetEnforcedVertexGeom(GEOM::GEOM_Object_ptr theVe
   string theVertexEntry = theVertex->GetStudyEntry();
   CORBA::Double x = 0, y = 0, z = 0;
   CORBA::Boolean isCompound = false;
-  GEOM::GEOM_Gen_ptr geomGen = SMESH_Gen_i::GetGeomEngine();
+  GEOM::GEOM_Gen_ptr geomGen = SMESH_Gen_i::GetGeomEngine( theVertex );
   if (theVertexEntry.empty()) {
     string aName;
     if (theVertex->GetShapeType() == GEOM::VERTEX) {
@@ -880,7 +880,7 @@ bool GHS3DPlugin_Hypothesis_i::SetEnforcedVertexGeomWithGroup(GEOM::GEOM_Object_
   string theVertexEntry = theVertex->GetStudyEntry();
   CORBA::Double x = 0, y = 0, z = 0;
   CORBA::Boolean isCompound = false;
-  GEOM::GEOM_Gen_ptr geomGen = SMESH_Gen_i::GetGeomEngine();
+  GEOM::GEOM_Gen_ptr geomGen = SMESH_Gen_i::GetGeomEngine( theVertex );
   if (theVertexEntry.empty()) {
     string aName;
     if (theVertex->GetShapeType() == GEOM::VERTEX) {
@@ -1013,7 +1013,7 @@ CORBA::Double GHS3DPlugin_Hypothesis_i::GetEnforcedVertexGeom(GEOM::GEOM_Object_
   
   string theVertexEntry = theVertex->GetStudyEntry();
   if (theVertexEntry.empty()) {
-    GEOM::GEOM_Gen_ptr geomGen = SMESH_Gen_i::GetGeomEngine();
+    GEOM::GEOM_Gen_ptr geomGen = SMESH_Gen_i::GetGeomEngine( theVertex );
     string aName;
     if (theVertex->GetShapeType() == GEOM::VERTEX)
       aName = "Vertex_";
@@ -1116,7 +1116,7 @@ bool GHS3DPlugin_Hypothesis_i::RemoveEnforcedVertexGeom(GEOM::GEOM_Object_ptr th
   
   string theVertexEntry = theVertex->GetStudyEntry();
   if (theVertexEntry.empty()) {
-    GEOM::GEOM_Gen_ptr geomGen = SMESH_Gen_i::GetGeomEngine();
+    GEOM::GEOM_Gen_ptr geomGen = SMESH_Gen_i::GetGeomEngine( theVertex );
     string aName;
     if (theVertex->GetShapeType() == GEOM::VERTEX)
       aName = "Vertex_";
index e381f5f705c3138b4e97e451b538c23c0036b2c6..4bf2c005915bcd3c66adb36a040d9ede3135b0d5 100644 (file)
@@ -58,6 +58,7 @@ SET(_link_LIBRARIES
   ${GUI_SalomeApp}
   ${OpenCASCADE_FoundationClasses_LIBRARIES}
   SalomeIDLGHS3DPLUGIN
+  GHS3DEngine
 )
 
 # --- headers ---
index 2183f96a0fb3d613b9d3356076453aa1bd9794b6..2775a8acc3fbe81386b812da8c4bc8b71fc732ca 100644 (file)
@@ -45,6 +45,8 @@
 #include <SalomeApp_Tools.h>
 #include <SalomeApp_TypeFilter.h>
 
+#include "GHS3DPlugin_Hypothesis.hxx"
+
 #include <QCheckBox>
 #include <QComboBox>
 #include <QFileInfo>