Fix some bugs.
This commit is contained in:
parent
f58f52a559
commit
59908477ae
@ -80,9 +80,16 @@ NETGENPluginGUI_SimpleCreator::~NETGENPluginGUI_SimpleCreator()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
bool NETGENPluginGUI_SimpleCreator::checkParams() const
|
bool NETGENPluginGUI_SimpleCreator::checkParams(QString& msg) const
|
||||||
{
|
{
|
||||||
return true;
|
bool result = true;
|
||||||
|
result = myNbSeg->isValid(msg,true) && result;
|
||||||
|
result = myLength->isValid(msg,true) && result;
|
||||||
|
result = myArea->isValid(msg,true) && result;
|
||||||
|
if (myVolume)
|
||||||
|
result = myVolume->isValid(msg,true) && result;
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
QFrame* NETGENPluginGUI_SimpleCreator::buildFrame()
|
QFrame* NETGENPluginGUI_SimpleCreator::buildFrame()
|
||||||
@ -329,7 +336,6 @@ QString NETGENPluginGUI_SimpleCreator::storeParams() const
|
|||||||
h->SetMaxElementVolume( myVolume->value() );
|
h->SetMaxElementVolume( myVolume->value() );
|
||||||
valStr += "; vol=" + myVolume->text();
|
valStr += "; vol=" + myVolume->text();
|
||||||
aVariablesList.append( myVolume->text());
|
aVariablesList.append( myVolume->text());
|
||||||
h->SetParameters(SMESHGUI::JoinObjectParameters(aVariablesList));
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
h->LengthFromFaces();
|
h->LengthFromFaces();
|
||||||
|
@ -42,7 +42,7 @@ public:
|
|||||||
NETGENPluginGUI_SimpleCreator(const QString& theHypType);
|
NETGENPluginGUI_SimpleCreator(const QString& theHypType);
|
||||||
virtual ~NETGENPluginGUI_SimpleCreator();
|
virtual ~NETGENPluginGUI_SimpleCreator();
|
||||||
|
|
||||||
virtual bool checkParams() const;
|
virtual bool checkParams(QString& msg) const;
|
||||||
virtual QString helpPage() const;
|
virtual QString helpPage() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user