1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 //=============================================================================
21 // File : FILTER_Gen.idl
23 //=============================================================================
25 #ifndef _Filter_GEN_IDL_
26 #define _Filter_GEN_IDL_
29 #include "SALOME_Exception.idl"
30 #include "SALOME_Component.idl"
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;
45 interface FILTER_Gen : Engines::Component
47 exception FilterError{
51 void loadMED(in string inMEDFile);
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();
65 void projectFieldsOnDecimateMesh() raises(FilterError);
66 void createMedOutputFile(in string outMedFile);