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
21 #ifndef SELECTPARAMS_HEADER
22 #define SELECTPARAMS_HEADER
24 #include "utilities.h"
25 #include "MEDMEM_Med.hxx"
27 #include "SelectField.h"
30 #include <SalomeApp_Module.h>
31 #include <SUIT_Desktop.h>
34 #include <SALOMEconfig.h>
35 /* #include CORBA_CLIENT_HEADER(MED_Gen) */
46 class SelectParams: public QDialog
51 SelectParams(FilterGUI*,SelectField *sel,
55 virtual ~SelectParams();
58 virtual void buildFrame();
59 virtual void calcHisto();
60 virtual void displayHisto();
61 virtual void calcRateRed();
62 virtual void clearSThresh();
63 virtual void displayFThresh();
64 virtual void displaySThresh();
65 virtual void enableWidgets();
68 virtual void updateHisto();
69 virtual void scaleSelected();
70 virtual void nbThreshSelected();
71 virtual void areaSelected();
72 virtual void enterFThresh();
73 virtual void enterSThresh();
74 virtual void moveThresh(const QMouseEvent &e);
75 virtual void getOutFileName();
76 virtual void process();
77 virtual void ClickOnClose();
78 virtual void ClickOnHelp();
84 long _myHistoCurve, _myHistoFThresh, _myHistoSThresh;
85 double _xmin, _xmax, _ymin, _ymax;
86 double _fthresh, _sthresh;
88 double _xft[100], _yft[100], _xst[100], _yst[100];
90 QLineEdit *_myFThresh, *_myExpr, *_myLEST, *_myLEFT, *_myOFN;
91 QButtonGroup *_myFunc, *_myFScale, *_myNbThresh, *_myArea, *_myVThresh, *_myOutFile;
92 QGridLayout *_myGroupLayout, *_myGroupLayout2, *_lay, *_GroupButtonsLayout;
93 QRadioButton *_myCutNeg, *_myInt, *_myExt, *_myOneThresh, *_myTwoThresh, *_myFieldB, *_myLinear, *_myLog;
94 QPushButton *_myHisto, *_myOFB, *_myProc, * _buttonClose, * _buttonHelp;
95 QGroupBox* _GroupC1, *_GroupC2, *_GroupButtons;
97 QLabel *_myLFT, *_myLST, *_myLRR;
100 QString _inputFile, _inputMesh, _inputField;
101 FIELD<double> * _myDField;
102 FIELD<int> * _myIField;