From 4beda885d01eb0d30f70400ff6ce093a8f2f4a36 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 16 Sep 2008 08:51:05 +0000 Subject: [PATCH] [SALOME platform 0013410]: SubMesh not taken into account with Netgen 1D-2D et 1D-2D-3D + bool IsSupportSubmeshes; //!< TRUE if the algo building all-dim elems supports submeshes --- src/SMESHGUI/SMESHGUI_Hypotheses.cxx | 6 ++++-- src/SMESHGUI/SMESHGUI_Hypotheses.h | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_Hypotheses.cxx b/src/SMESHGUI/SMESHGUI_Hypotheses.cxx index ad1df48b0..230491f7b 100644 --- a/src/SMESHGUI/SMESHGUI_Hypotheses.cxx +++ b/src/SMESHGUI/SMESHGUI_Hypotheses.cxx @@ -537,7 +537,8 @@ HypothesisData::HypothesisData( const QString& theTypeName, const QStringList& theOptionalHypos, const QStringList& theInputTypes, const QStringList& theOutputTypes, - const bool theIsNeedGeometry ) + const bool theIsNeedGeometry, + const bool supportSub) : TypeName( theTypeName ), PluginName( thePluginName ), ServerLibName( theServerLibName ), @@ -550,7 +551,8 @@ HypothesisData::HypothesisData( const QString& theTypeName, OptionalHypos( theOptionalHypos ), InputTypes( theInputTypes ), OutputTypes( theOutputTypes ), - IsNeedGeometry( theIsNeedGeometry ) + IsNeedGeometry( theIsNeedGeometry ), + IsSupportSubmeshes( supportSub ) { } diff --git a/src/SMESHGUI/SMESHGUI_Hypotheses.h b/src/SMESHGUI/SMESHGUI_Hypotheses.h index f13f89d22..c46be7f34 100644 --- a/src/SMESHGUI/SMESHGUI_Hypotheses.h +++ b/src/SMESHGUI/SMESHGUI_Hypotheses.h @@ -150,7 +150,7 @@ public: const QList&, const bool, const QStringList&, const QStringList&, const QStringList&, const QStringList&, - const bool = true ); + const bool=true, const bool supportSub=false ); QString TypeName; //!< hypothesis type name QString PluginName; //!< plugin name @@ -160,7 +160,8 @@ public: QString IconId; //!< icon identifier QList Dim; //!< list of supported dimensions (see SMESH::Dimension enumeration) bool IsAux; //!< TRUE if given hypothesis is auxiliary one, FALSE otherwise - bool IsNeedGeometry; //!< TRUE if for given hypothesis need shape, FALSE otherwise + bool IsNeedGeometry; //!< TRUE if the algorithm works with shapes only, FALSE otherwise + bool IsSupportSubmeshes; //!< TRUE if the algo building all-dim elems supports submeshes // for algorithm only: dependencies algo <-> algo and algo -> hypos QStringList NeededHypos; //!< list of obligatory hypotheses -- 2.39.2