X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_HypothesesUtils.h;h=a3b93265772ece809f773ae9ffc7149617bd83dd;hp=d87f45cb8a972efe356788574117d8a717b7ad1a;hb=60bdcf56b18b6a2e8e6b90906a99ff43241991b8;hpb=e4737e85f0da6d3f90fd08f6be1c2825195fe16f diff --git a/src/SMESHGUI/SMESHGUI_HypothesesUtils.h b/src/SMESHGUI/SMESHGUI_HypothesesUtils.h index d87f45cb8..a3b932657 100644 --- a/src/SMESHGUI/SMESHGUI_HypothesesUtils.h +++ b/src/SMESHGUI/SMESHGUI_HypothesesUtils.h @@ -20,7 +20,7 @@ // // // -// File : SMESHGUI_Hypotheses.h +// File : SMESHGUI_HypothesesUtils.h // Author : Julia DOROVSKIKH // Module : SMESH // $Header$ @@ -32,20 +32,31 @@ #include #include "SALOME_InteractiveObject.hxx" +#include "SALOMEDSClient_definitions.hxx" #include "SALOMEconfig.h" #include CORBA_CLIENT_HEADER(SALOMEDS) #include CORBA_SERVER_HEADER(SMESH_Mesh) #include CORBA_SERVER_HEADER(SMESH_Hypothesis) +#include + class HypothesisData; +class HypothesesSet; class SMESHGUI_GenericHypothesisCreator; +class SALOMEDSClient_SObject; namespace SMESH{ void InitAvailableHypotheses(); - QStringList GetAvailableHypotheses(const bool isAlgo); + QStringList GetAvailableHypotheses( const bool isAlgo, + const int theDim = -1, + const bool isAux = false); + + QStringList GetHypothesesSets(); + + HypothesesSet* GetHypothesesSet(const QString theSetName); HypothesisData* GetHypothesisData(const char* aHypType); @@ -61,10 +72,11 @@ namespace SMESH{ bool RemoveHypothesisOrAlgorithmOnMesh(const Handle(SALOME_InteractiveObject)& IObject); - bool RemoveHypothesisOrAlgorithmOnMesh(SALOMEDS::SObject_ptr MorSM, + bool RemoveHypothesisOrAlgorithmOnMesh(_PTR(SObject) MorSM, SMESH::SMESH_Hypothesis_ptr anHyp); - SALOMEDS::Study::ListOfSObject* GetMeshesUsingAlgoOrHypothesis(SMESH::SMESH_Hypothesis_ptr AlgoOrHyp ) ; + typedef std::vector<_PTR(SObject)> SObjectList; + SObjectList GetMeshesUsingAlgoOrHypothesis(SMESH::SMESH_Hypothesis_ptr AlgoOrHyp ) ; }