Back to index

salome-smesh  6.5.0
SMESH_Hypothesis.idl
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  File   : SMESH_Hypothesis.idl
00024 //  Author : Paul RASCLE, EDF
00025 //
00026 #ifndef _SMESH_HYPOTHESIS_IDL_
00027 #define _SMESH_HYPOTHESIS_IDL_
00028 
00029 #include "SALOME_Exception.idl"
00030 #include "SALOME_GenericObj.idl"
00031 
00032 module SMESH
00033 {
00034   enum Dimension
00035   {
00036     DIM_0D,
00037     DIM_1D,
00038     DIM_2D,
00039     DIM_3D
00040   };
00041   
00042   typedef sequence<string> ListOfParameters;
00043 
00044   interface SMESH_Hypothesis : SALOME::GenericObj
00045   {
00046     
00050     string GetName();
00051 
00055     string GetLibName();
00056 
00060     long GetId();
00061 
00070     void SetVarParameter (in string parameter, in string method);
00071 
00076     string GetVarParameter (in string methodName);
00077 
00083     void SetParameters (in string theParameters);
00084 
00088     string GetParameters();
00089 
00093     ListOfParameters GetLastParameters();
00094 
00100     void SetLastParameters(in string theParameters);
00101     
00105     void ClearParameters();
00106 
00110     boolean IsDimSupported( in Dimension type );
00111   };
00112 
00113   typedef sequence<string> ListOfHypothesisName;
00114 
00115   interface SMESH_Algo : SMESH_Hypothesis
00116   {
00120     ListOfHypothesisName GetCompatibleHypothesis();
00121 
00122   };
00123 
00124   interface SMESH_0D_Algo : SMESH_Algo
00125   {
00129   };
00130 
00131   interface SMESH_1D_Algo : SMESH_Algo
00132   {
00136   };
00137 
00138   interface SMESH_2D_Algo : SMESH_Algo
00139   {
00143   };
00144 
00145   interface SMESH_3D_Algo : SMESH_Algo
00146   {
00150   };
00151 };
00152 
00153   // -----------------------------------------------------------------
00154   // Specific Algorithms in separate idl file
00155   // -----------------------------------------------------------------
00156 
00157 
00158 #endif