1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D
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.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 // File : HexoticPluginGUI_HypothesisCreator.h
22 // Author : Lioka RAZAFINDRAZAKA (CEA)
25 #ifndef HexoticPLUGINGUI_HypothesisCreator_H
26 #define HexoticPLUGINGUI_HypothesisCreator_H
28 #include "HexoticPluginGUI.h"
30 #include <SMESHGUI_Hypotheses.h>
36 class HexoticPluginGUI_StdWidget;
41 int myHexesMinLevel, myHexesMaxLevel;
42 double myMinSize, myMaxSize;
43 bool myHexoticInvalidElements;
44 bool myHexoticIgnoreRidges;
45 double myHexoticSharpAngleThreshold;
47 QString myHexoticWorkingDir;
48 int myHexoticVerbosity;
49 int myHexoticMaxMemory;
51 } HexoticHypothesisData;
54 * \brief Class for creation of Hexotic hypotheses
56 class HEXOTICPLUGIN_GUI_EXPORT HexoticPluginGUI_HypothesisCreator : public SMESHGUI_GenericHypothesisCreator
61 HexoticPluginGUI_HypothesisCreator( const QString& );
62 virtual ~HexoticPluginGUI_HypothesisCreator();
64 virtual bool checkParams(QString&) const;
65 virtual QString helpPage() const;
68 virtual QFrame* buildFrame ();
69 virtual void retrieveParams() const;
70 virtual QString storeParams () const;
72 virtual QString caption() const;
73 virtual QPixmap icon() const;
74 virtual QString type() const;
77 bool readParamsFromHypo( HexoticHypothesisData& ) const;
78 bool readParamsFromWidgets( HexoticHypothesisData& ) const;
79 bool storeParamsToHypo( const HexoticHypothesisData& ) const;
80 void resizeEvent(QResizeEvent *event);
81 void printData(HexoticHypothesisData&) const;
85 // QWidget* myStdGroup;
87 HexoticPluginGUI_StdWidget* myStdWidget;