From 84515af621b1bb46da30b4af97718fa333865973 Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 9 Dec 2019 16:15:39 +0300 Subject: [PATCH] Modification according to SMESH_Gen changes --- src/GHS3DPlugin/CMakeLists.txt | 2 +- src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx | 8 ++++---- src/GUI/CMakeLists.txt | 1 + src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx | 2 ++ 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/GHS3DPlugin/CMakeLists.txt b/src/GHS3DPlugin/CMakeLists.txt index e44ead3..9115767 100644 --- a/src/GHS3DPlugin/CMakeLists.txt +++ b/src/GHS3DPlugin/CMakeLists.txt @@ -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}) diff --git a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx index 38babcd..4584421 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx @@ -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_"; diff --git a/src/GUI/CMakeLists.txt b/src/GUI/CMakeLists.txt index e381f5f..4bf2c00 100644 --- a/src/GUI/CMakeLists.txt +++ b/src/GUI/CMakeLists.txt @@ -58,6 +58,7 @@ SET(_link_LIBRARIES ${GUI_SalomeApp} ${OpenCASCADE_FoundationClasses_LIBRARIES} SalomeIDLGHS3DPLUGIN + GHS3DEngine ) # --- headers --- diff --git a/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx b/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx index 2183f96..2775a8a 100644 --- a/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx @@ -45,6 +45,8 @@ #include #include +#include "GHS3DPlugin_Hypothesis.hxx" + #include #include #include -- 2.39.2