Integrated in BR_imps_2013 branch: 0022357: EDF NETGENPLUGIN: NETGEN options
This commit is contained in:
parent
7695c4d08b
commit
ce25c56124
@ -329,7 +329,7 @@ void NETGENPluginGUI_HypothesisCreator::retrieveParams() const
|
||||
|
||||
// update widgets
|
||||
bool isCustom = (myFineness->currentIndex() == UserDefined);
|
||||
bool isSurfaceCurvature = (mySurfaceCurvature ? mySurfaceCurvature->checkState() == Qt::Checked : false);
|
||||
bool isSurfaceCurvature = (mySurfaceCurvature ? mySurfaceCurvature->checkState() == Qt::Checked : true);
|
||||
myFineness->setEnabled(isSurfaceCurvature);
|
||||
myGrowthRate->setEnabled(isCustom && isSurfaceCurvature);
|
||||
if ( myNbSegPerEdge )
|
||||
@ -561,7 +561,7 @@ bool NETGENPluginGUI_HypothesisCreator::readParamsFromWidgets( NetgenHypothesisD
|
||||
|
||||
void NETGENPluginGUI_HypothesisCreator::onSurfaceCurvatureChanged()
|
||||
{
|
||||
bool isSurfaceCurvature = (mySurfaceCurvature ? mySurfaceCurvature->checkState() == Qt::Checked : false);
|
||||
bool isSurfaceCurvature = (mySurfaceCurvature ? mySurfaceCurvature->checkState() == Qt::Checked : true);
|
||||
bool isCustom = (myFineness->currentIndex() == UserDefined);
|
||||
myFineness->setEnabled(isSurfaceCurvature);
|
||||
myGrowthRate->setEnabled(isCustom && isSurfaceCurvature);
|
||||
|
Loading…
Reference in New Issue
Block a user