1 // Copyright (C) 2012-2013 ALNEOS
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.alneos.com/ or email : contact@alneos.fr
19 #ifndef GMSHPLUGINGUI_HypothesisCreator_HeaderFile
20 #define GMSHPLUGINGUI_HypothesisCreator_HeaderFile
22 #include "GMSHPluginGUI.h"
24 #include <SMESHGUI_Hypotheses.h>
26 #include <TopAbs_ShapeEnum.hxx>
30 class SMESHGUI_SpinBox;
31 class GeomSelectionTools;
40 int my2DAlgo,my3DAlgo,myRecomb2DAlgo;
42 int mySubdivAlgo,myRemeshAlgo,myRemeshPara,mySmouthSteps;
43 bool myUseIncomplElem;
45 double mySizeFactor,myMaxSize, myMinSize;
46 QString myMaxSizeVar, myMinSizeVar, mySmouthStepsVar, mySizeFactorVar;
50 * \brief Class for creation of GMSH2D and GMSH3D hypotheses
52 class GMSHPLUGIN_GUI_EXPORT GMSHPluginGUI_HypothesisCreator : public SMESHGUI_GenericHypothesisCreator
57 GMSHPluginGUI_HypothesisCreator( const QString& );
58 virtual ~GMSHPluginGUI_HypothesisCreator();
60 virtual bool checkParams(QString& msg) const;
61 virtual QString helpPage() const;
64 virtual QFrame* buildFrame ();
65 virtual void retrieveParams() const;
66 virtual QString storeParams () const;
68 virtual QString caption() const;
69 virtual QPixmap icon() const;
70 virtual QString type() const;
74 virtual void onAddCompound();
75 virtual void onRemoveCompound();
78 bool readParamsFromHypo( GmshHypothesisData& ) const;
79 bool readParamsFromWidgets( GmshHypothesisData& ) const;
80 bool storeParamsToHypo( const GmshHypothesisData& ) const;
81 GeomSelectionTools* getGeomSelectionTools();
87 QComboBox* myRecomb2DAlgo;
88 QCheckBox* myRecombineAll;
89 QComboBox* mySubdivAlgo;
90 QComboBox* myRemeshAlgo;
91 QComboBox* myRemeshPara;
92 SMESHGUI_SpinBox* mySmouthSteps;
93 SMESHGUI_SpinBox* mySizeFactor;
94 SMESHGUI_SpinBox* myMaxSize;
95 SMESHGUI_SpinBox* myMinSize;
96 QCheckBox* myUseIncomplElem;
97 QCheckBox* mySecondOrder;
101 QTableWidget* myCompoundTable;
102 GeomSelectionTools* myGeomSelectionTools;
103 QSet<QString> myCompoundSet;
104 QSet<QString> myCompoundToRemove;