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 // Module : BLSURFPlugin
28 #ifndef BLSURFPLUGINGUI_HypothesisCreator_HeaderFile
29 #define BLSURFPLUGINGUI_HypothesisCreator_HeaderFile
31 #include <SMESHGUI_Hypotheses.h>
40 int myPhysicalMesh, myGeometricMesh;
41 double myPhySize, myAngleMeshS, myGradation;
42 bool myAllowQuadrangles, myDecimesh;
44 } BlsurfHypothesisData;
47 * \brief Class for creation of BLSURF hypotheses
50 class BLSURFPlugin_Hypothesis;
52 class BLSURFPluginGUI_HypothesisCreator : public SMESHGUI_GenericHypothesisCreator
57 BLSURFPluginGUI_HypothesisCreator( const QString& );
58 virtual ~BLSURFPluginGUI_HypothesisCreator();
60 virtual bool checkParams() const;
63 virtual QFrame* buildFrame ();
64 virtual void retrieveParams() const;
65 virtual QString storeParams () const;
67 virtual QString caption() const;
68 virtual QPixmap icon() const;
69 virtual QString type() const;
72 virtual void onPhysicalMeshChanged();
73 virtual void onGeometricMeshChanged();
76 bool readParamsFromHypo( BlsurfHypothesisData& ) const;
77 bool readParamsFromWidgets( BlsurfHypothesisData& ) const;
78 bool storeParamsToHypo( const BlsurfHypothesisData& ) const;
82 QtxComboBox* myPhysicalMesh;
83 QtxDblSpinBox* myPhySize;
84 QtxComboBox* myGeometricMesh;
85 QtxDblSpinBox* myAngleMeshS;
86 QtxDblSpinBox* myGradation;
87 QCheckBox* myAllowQuadrangles;
88 QCheckBox* myDecimesh;