1 // BLSURFPlugin GUI: GUI for plugged-in mesher BLSURFPlugin
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.org
23 // File : BLSURFPluginGUI_HypothesisCreator.h
24 // Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
25 // & Aurelien ALLEAUME (DISTENE)
26 // Module : BLSURFPlugin
29 #ifndef BLSURFPLUGINGUI_HypothesisCreator_HeaderFile
30 #define BLSURFPLUGINGUI_HypothesisCreator_HeaderFile
32 #include <SMESHGUI_Hypotheses.h>
42 int myPhysicalMesh, myGeometricMesh;
43 double myPhySize, myAngleMeshS, myGradation;
44 bool myAllowQuadrangles, myDecimesh;
46 } BlsurfHypothesisData;
49 * \brief Class for creation of BLSURF hypotheses
52 class BLSURFPlugin_Hypothesis;
54 class BLSURFPluginGUI_HypothesisCreator : public SMESHGUI_GenericHypothesisCreator
59 BLSURFPluginGUI_HypothesisCreator( const QString& );
60 virtual ~BLSURFPluginGUI_HypothesisCreator();
62 virtual bool checkParams() const;
65 virtual QFrame* buildFrame ();
66 virtual void retrieveParams() const;
67 virtual QString storeParams () const;
69 virtual QString caption() const;
70 virtual QPixmap icon() const;
71 virtual QString type() const;
74 virtual void onPhysicalMeshChanged();
75 virtual void onGeometricMeshChanged();
78 bool readParamsFromHypo( BlsurfHypothesisData& ) const;
79 bool readParamsFromWidgets( BlsurfHypothesisData& ) const;
80 bool storeParamsToHypo( const BlsurfHypothesisData& ) const;
84 QtxComboBox* myTopology;
85 QtxComboBox* myPhysicalMesh;
86 QtxDblSpinBox* myPhySize;
87 QtxComboBox* myGeometricMesh;
88 QtxDblSpinBox* myAngleMeshS;
89 QtxDblSpinBox* myGradation;
90 QCheckBox* myAllowQuadrangles;
91 QCheckBox* myDecimesh;