1 // NETGENPlugin GUI: GUI for plugged-in mesher NETGENPlugin
3 // Copyright (C) 2003 CEA
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License.
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // File : NETGENPluginGUI_HypothesisCreator.h
24 // Author : Michael Zorin
25 // Module : NETGENPlugin
28 #ifndef NETGENPLUGINGUI_HypothesisCreator_HeaderFile
29 #define NETGENPLUGINGUI_HypothesisCreator_HeaderFile
32 #ifdef NETGENPLUGIN_GUI_EXPORTS
33 #define NETGENPLUGIN_GUI_EXPORT __declspec( dllexport )
35 #define NETGENPLUGIN_GUI_EXPORT __declspec( dllimport )
38 #define NETGENPLUGIN_GUI_EXPORT
41 #include <SMESHGUI_Hypotheses.h>
50 double myMaxSize, myGrowthRate, myNbSegPerEdge, myNbSegPerRadius;
52 bool mySecondOrder, myAllowQuadrangles, myOptimize;
54 } NetgenHypothesisData;
57 * \brief Class for creation of NETGEN2D and NETGEN3D hypotheses
59 class NETGENPLUGIN_GUI_EXPORT NETGENPluginGUI_HypothesisCreator : public SMESHGUI_GenericHypothesisCreator
64 NETGENPluginGUI_HypothesisCreator( const QString& );
65 virtual ~NETGENPluginGUI_HypothesisCreator();
67 virtual bool checkParams() const;
70 virtual QFrame* buildFrame ();
71 virtual void retrieveParams() const;
72 virtual QString storeParams () const;
74 virtual QString caption() const;
75 virtual QPixmap icon() const;
76 virtual QString type() const;
79 virtual void onFinenessChanged();
82 bool readParamsFromHypo( NetgenHypothesisData& ) const;
83 bool readParamsFromWidgets( NetgenHypothesisData& ) const;
84 bool storeParamsToHypo( const NetgenHypothesisData& ) const;
88 QtxDblSpinBox* myMaxSize;
89 QCheckBox* mySecondOrder;
90 QCheckBox* myOptimize;
91 QtxComboBox* myFineness;
92 QtxDblSpinBox* myGrowthRate;
93 QtxDblSpinBox* myNbSegPerEdge;
94 QtxDblSpinBox* myNbSegPerRadius;
95 QCheckBox* myAllowQuadrangles;