idl/SMESH_Hypothesis.idl

Go to the documentation of this file.
00001 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00002 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
00003 // 
00004 //  This library is free software; you can redistribute it and/or 
00005 //  modify it under the terms of the GNU Lesser General Public 
00006 //  License as published by the Free Software Foundation; either 
00007 //  version 2.1 of the License. 
00008 // 
00009 //  This library is distributed in the hope that it will be useful, 
00010 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
00011 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
00012 //  Lesser General Public License for more details. 
00013 // 
00014 //  You should have received a copy of the GNU Lesser General Public 
00015 //  License along with this library; if not, write to the Free Software 
00016 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
00017 // 
00018 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00019 //
00020 //
00021 //
00022 //  File   : SMESH_Hypothesis.idl
00023 //  Author : Paul RASCLE, EDF
00024 //  $Header: /home/server/cvs/SMESH/SMESH_SRC/idl/SMESH_Hypothesis.idl,v 1.8 2006/06/01 11:39:15 jfa Exp $
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_1D,
00037     DIM_2D,
00038     DIM_3D
00039   };
00040   
00041   interface SMESH_Hypothesis : SALOME::GenericObj
00042   {
00046     string GetName();
00047 
00051     string GetLibName();
00052 
00056     long GetId();
00057     
00061     boolean IsDimSupported( in Dimension type );
00062   };
00063 
00064   typedef sequence<string> ListOfHypothesisName;
00065 
00066   interface SMESH_Algo : SMESH_Hypothesis
00067   {
00071     ListOfHypothesisName GetCompatibleHypothesis();
00072 
00073   };
00074 
00075   interface SMESH_1D_Algo : SMESH_Algo
00076   {
00080   };
00081 
00082   interface SMESH_2D_Algo : SMESH_Algo
00083   {
00087   };
00088 
00089   interface SMESH_3D_Algo : SMESH_Algo
00090   {
00094   };
00095 };
00096 
00097   // -----------------------------------------------------------------
00098   // Specific Algorithms in separate idl file
00099   // -----------------------------------------------------------------
00100 
00101 
00102 #endif