- // Show Dialog for hypothesis creation
- if (myHypType == "LocalLength")
- StdMeshersGUI_LocalLengthDlg *aDlg = new StdMeshersGUI_LocalLengthDlg(myHypType, parent, "");
- else if (myHypType == "NumberOfSegments")
- StdMeshersGUI_NbSegmentsDlg *aDlg = new StdMeshersGUI_NbSegmentsDlg(myHypType, parent, "");
- else if (myHypType == "MaxElementArea")
- StdMeshersGUI_MaxElementAreaDlg *aDlg = new StdMeshersGUI_MaxElementAreaDlg(myHypType, parent, "");
- else if (myHypType == "MaxElementVolume")
- StdMeshersGUI_MaxElementVolumeDlg *aDlg = new StdMeshersGUI_MaxElementVolumeDlg(myHypType, parent, "");
- else if (myHypType == "LengthFromEdges")
- mySMESHGUI->CreateHypothesis(myHypType, aHypName, isAlgo); // without GUI
- else if (myHypType == "NotConformAllowed")
- mySMESHGUI->CreateHypothesis(myHypType, aHypName, isAlgo); // without GUI
- else ;
+ if ( StdMeshersGUI_Parameters::HasParameters( myHypType ))
+ {
+ // Show Dialog for hypothesis creation
+ StdMeshersGUI_CreateStdHypothesisDlg *aDlg =
+ new StdMeshersGUI_CreateStdHypothesisDlg(myHypType, parent, "");
+ /* Move widget on the botton right corner of main widget */
+// int x, y ;
+// mySMESHGUI->DefineDlgPosition( aDlg, x, y ) ;
+// aDlg->move( x, y ) ;
+ aDlg->exec() ; /* displays Dialog */
+ }
+ else
+ SMESH::CreateHypothesis(myHypType, aHypName, isAlgo); // without GUI