1 // GHS3DPlugin GUI: GUI for plugged-in mesher GHS3DPlugin
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 : GHS3DPluginGUI_HypothesisCreator.h
24 // Author : Michael Zorin
25 // Module : GHS3DPlugin
27 #ifndef GHS3DPLUGINGUI_HypothesisCreator_HeaderFile
28 #define GHS3DPLUGINGUI_HypothesisCreator_HeaderFile
30 #include "GHS3DPlugin_Defs.hxx"
31 #include <SMESHGUI_Hypotheses.h>
44 int myOptimizationLevel;
49 bool myToCreateNewNodes;
50 bool myBoundaryRecovery;
53 } GHS3DHypothesisData;
56 \brief Class for creation of GHS3D2D and GHS3D3D hypotheses
58 class GHS3DPLUGIN_EXPORT GHS3DPluginGUI_HypothesisCreator : public SMESHGUI_GenericHypothesisCreator
63 GHS3DPluginGUI_HypothesisCreator( const QString& );
64 virtual ~GHS3DPluginGUI_HypothesisCreator();
66 virtual bool checkParams() const;
67 virtual QString helpPage() 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 void onDirBtnClicked();
83 bool readParamsFromHypo( GHS3DHypothesisData& ) const;
84 bool readParamsFromWidgets( GHS3DHypothesisData& ) const;
85 bool storeParamsToHypo( const GHS3DHypothesisData& ) const;
90 QCheckBox* myToMeshHolesCheck;
91 QComboBox* myOptimizationLevelCombo;
94 QCheckBox* myMaximumMemoryCheck;
95 QSpinBox* myMaximumMemorySpin;
96 QCheckBox* myInitialMemoryCheck;
97 QSpinBox* myInitialMemorySpin;
98 QLineEdit* myWorkingDir;
99 QCheckBox* myKeepFiles;
100 QSpinBox* myVerboseLevelSpin;
101 QCheckBox* myToCreateNewNodesCheck;
102 QCheckBox* myBoundaryRecoveryCheck;
103 QLineEdit* myTextOption;