Salome HOME
c0de06fb519e0302b4d8baca8334960dac95a24c
[modules/filter.git] / idl / FILTER_Gen.idl
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License.
8 // 
9 // This library is distributed in the hope that it will be useful 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public  
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20 //=============================================================================
21 // File      : FILTER_Gen.idl
22 // Project   : SALOME
23 //=============================================================================
24
25 #ifndef _Filter_GEN_IDL_
26 #define _Filter_GEN_IDL_
27
28
29 #include "SALOME_Exception.idl"
30 #include "SALOME_Component.idl"
31
32 module SALOME_FILTER
33 {
34   struct DT_IT {
35     long dt;
36     long it;
37   };
38
39   enum rfunc {F_FIELD,F_GRAD};
40   typedef rfunc ref_func;
41   typedef sequence<long> LongSeq;
42   typedef sequence<string> StrSeq;
43   typedef sequence<DT_IT> DTITSeq;
44
45   interface FILTER_Gen : Engines::Component
46   {
47     exception FilterError{
48       string error_msg;
49     };
50
51     void loadMED(in string inMEDFile);
52     void unloadMED();
53     StrSeq getMeshNames();
54     StrSeq getFieldNames();
55     long getMeshDimension(in string meshName);
56     DTITSeq getFieldIteration(in string fieldName);
57     string getMeshName(in string fieldName,in long dt,in long it);
58     void readReferenceField(in string meshName,in string fieldName,in long ts);
59     void buildGradient() raises(FilterError);
60     void getMinMax(out double min,out double max,in ref_func rf);
61     LongSeq getHistogram(in long size,in ref_func rf);
62     void generateCriteria(in long nbthresh,in double fthresh,in double sthresh,in boolean areaFlag) raises(FilterError);
63     void createEnsightInputFiles();
64     void filtering();
65     void projectFieldsOnDecimateMesh() raises(FilterError);
66     void createMedOutputFile(in string outMedFile);
67   };
68
69 };
70
71 #endif