X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Hypotheses.h;h=431ca2294c04d15c743108f7608644971ac8c26f;hb=71d173d51a36d3a3ad7b51972b5be88c2df9865e;hp=85a621791352a3c0e44b500b07b6e12d93fa7da0;hpb=e4737e85f0da6d3f90fd08f6be1c2825195fe16f;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_Hypotheses.h b/src/SMESHGUI/SMESHGUI_Hypotheses.h index 85a621791..431ca2294 100644 --- a/src/SMESHGUI/SMESHGUI_Hypotheses.h +++ b/src/SMESHGUI/SMESHGUI_Hypotheses.h @@ -34,11 +34,12 @@ // QT Includes #include #include +#include +#include -//================================================================================= -// class : SMESHGUI_GenericHypothesisCreator -// purpose : -//================================================================================= +/*! + * \brief Auxiliary class for creation of hypotheses +*/ class SMESHGUI_GenericHypothesisCreator { public: @@ -46,30 +47,52 @@ class SMESHGUI_GenericHypothesisCreator virtual void EditHypothesis (SMESH::SMESH_Hypothesis_ptr theHyp) = 0; }; -//================================================================================= -// class : HypothesisData -// purpose : -//================================================================================= +/*! + * \brief Class containing information about hypothesis +*/ class HypothesisData { public: - HypothesisData (const QString& aPluginName, - const QString& aServerLibName, - const QString& aClientLibName, - const QString& aLabel, - const QString& anIconId) : - PluginName(aPluginName), - ServerLibName(aServerLibName), - ClientLibName(aClientLibName), - Label(aLabel), - IconId(anIconId) + HypothesisData( const QString& thePluginName, + const QString& theServerLibName, + const QString& theClientLibName, + const QString& theLabel, + const QString& theIconId, + const QValueList& theDim, + const bool theIsAux ) +: PluginName( thePluginName ), + ServerLibName( theServerLibName ), + ClientLibName( theClientLibName ), + Label( theLabel ), + IconId( theIconId ), + Dim( theDim ), + IsAux( theIsAux ) {}; - QString PluginName; - QString ServerLibName; - QString ClientLibName; - QString Label; - QString IconId; + QString PluginName; //!< plugin name + QString ServerLibName; //!< server library name + QString ClientLibName; //!< client library name + QString Label; //!< label + QString IconId; //!< icon identifier + QValueList Dim; //!< list of supported dimensions (see SMESH::Dimension enumeration) + bool IsAux; //!< TRUE if given hypothesis is auxiliary one, FALSE otherwise }; +/*! + * \brief Class containing set of hypotheses + * + * Actually it contains list of hypo types + */ +class HypothesesSet +{ + public: + HypothesesSet( const QString& theSetName ) + : HypoSetName( theSetName ) {}; + HypothesesSet( const QString& theSetName, + const QStringList& theHypoList, + const QStringList& theAlgoList ) + : HypoSetName( theSetName ), HypoList(theHypoList), AlgoList(theAlgoList) {}; + QString HypoSetName; + QStringList HypoList, AlgoList; +}; #endif