mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-14 09:38:33 +05:00
53068: Create Mesh dialog box is frozen
This commit is contained in:
parent
82a86d922e
commit
db1bdbcddc
@ -5,8 +5,8 @@
|
|||||||
\n Selection filter library allows creating and storing in files
|
\n Selection filter library allows creating and storing in files
|
||||||
the filters that can be later reused for operations on meshes. You can
|
the filters that can be later reused for operations on meshes. You can
|
||||||
access it from the Main Menu via <b>Tools / Selection filter library</b>.
|
access it from the Main Menu via <b>Tools / Selection filter library</b>.
|
||||||
It is also possible to save any filter by invoking the filter library
|
It is also possible to save/load a filter by invoking the filter library
|
||||||
from \a Filter dialog launched from any mesh operation.
|
from \ref filtering_elements "Filter dialog" launched from any mesh operation.
|
||||||
|
|
||||||
\image html selectionfilterlibrary.png
|
\image html selectionfilterlibrary.png
|
||||||
|
|
||||||
@ -19,6 +19,7 @@ the current study. You can \b Add or \b Delete filters.
|
|||||||
filter. By default it is prefixed with the corresponding entity type.
|
filter. By default it is prefixed with the corresponding entity type.
|
||||||
|
|
||||||
\anchor filtering_elements
|
\anchor filtering_elements
|
||||||
|
<h2>Filter Dialog</h2>
|
||||||
|
|
||||||
When we use filters during group creation or another operation (by
|
When we use filters during group creation or another operation (by
|
||||||
clicking <b>Set Filter</b> button in the corresponding dialog), the
|
clicking <b>Set Filter</b> button in the corresponding dialog), the
|
||||||
@ -66,15 +67,22 @@ created. You have to select the mesh and the button will be enabled.
|
|||||||
Some criteria are applicable to all <b>Entity types</b>:
|
Some criteria are applicable to all <b>Entity types</b>:
|
||||||
<ul><li>
|
<ul><li>
|
||||||
<b>Belong to Geom</b> selects entities whose all nodes lie on the
|
<b>Belong to Geom</b> selects entities whose all nodes lie on the
|
||||||
shape defined by <b>Threshold Value</b>. If the threshold shape is a
|
shape defined by <b>Threshold Value</b>.
|
||||||
sub-shape of the main shape of the mesh the algorithm works faster, if
|
If the threshold shape is a sub-shape of the main shape of the mesh,
|
||||||
this is any other shape the algorithm works slower.
|
the filtering algorithm works faster because node-to-shape association
|
||||||
|
is used instead of measuring distance between nodes and the shape, and
|
||||||
|
\b Tolerance is not used. If the threshold shape is any other shape,
|
||||||
|
the algorithm works slower because distance between nodes and the
|
||||||
|
shape is measured and is compared with \b Tolerance.
|
||||||
</li><li>
|
</li><li>
|
||||||
<b>Lying on Geom</b> selects entities whose at least one node
|
<b>Lying on Geom</b> selects entities whose at least one node
|
||||||
lies on the shape defined by the <b>Threshold Value</b>.
|
lies on the shape defined by the <b>Threshold Value</b>.
|
||||||
If the threshold shape is a sub-shape of the main shape of the mesh the
|
If the threshold shape is a sub-shape of the main shape of the mesh,
|
||||||
algorithm works faster, if this is any other
|
the filtering algorithm works faster because node-to-shape association
|
||||||
shape, the algorithm works slower.
|
is used instead of measuring distance between nodes and the shape, and
|
||||||
|
\b Tolerance is not used. If the threshold shape is any other shape,
|
||||||
|
the algorithm works slower because distance between nodes and the
|
||||||
|
shape is measured and is compared with \b Tolerance.
|
||||||
</li><li>
|
</li><li>
|
||||||
<b>Belong to Mesh Group</b> selects entities included into the mesh group
|
<b>Belong to Mesh Group</b> selects entities included into the mesh group
|
||||||
defined by the <b>Threshold Value</b>.
|
defined by the <b>Threshold Value</b>.
|
||||||
@ -97,7 +105,7 @@ other parts. <b>Threshold Value</b> locating any element of the domain can be ei
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
Some criteria are applicable to all <b>Entity types</b> of dimension
|
Some criteria are applicable to entities of dimension
|
||||||
more than zero, i.e. to \b Edges, \b Faces and \b Volumes:
|
more than zero, i.e. to \b Edges, \b Faces and \b Volumes:
|
||||||
<ul><li>
|
<ul><li>
|
||||||
<b>Linear</b> allows selection of Linear or Quadratic elements (if Unary is set to "Not")
|
<b>Linear</b> allows selection of Linear or Quadratic elements (if Unary is set to "Not")
|
||||||
@ -111,8 +119,8 @@ as a combination of geometry type and the number of nodes.
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
The following criteria are applicable to all <b>Entity types</b>
|
The following criteria are applicable to Entities of \b all types
|
||||||
except for <b>Volumes</b>:
|
except for \a Volumes:
|
||||||
<ul><li>
|
<ul><li>
|
||||||
<b>Belong to Plane</b> selects entities whose all nodes belong to a
|
<b>Belong to Plane</b> selects entities whose all nodes belong to a
|
||||||
specified plane within a given <b>Tolerance</b>.
|
specified plane within a given <b>Tolerance</b>.
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
#include <SUIT_ResourceMgr.h>
|
#include <SUIT_ResourceMgr.h>
|
||||||
#include <SUIT_Session.h>
|
#include <SUIT_Session.h>
|
||||||
#include <SalomeApp_IntSpinBox.h>
|
#include <SalomeApp_IntSpinBox.h>
|
||||||
|
#include <SalomeApp_Tools.h>
|
||||||
|
|
||||||
// Qt includes
|
// Qt includes
|
||||||
#include <QFrame>
|
#include <QFrame>
|
||||||
@ -272,14 +273,21 @@ void SMESHGUI_GenericHypothesisCreator::onDialogFinished( int result )
|
|||||||
{
|
{
|
||||||
bool res = result==QDialog::Accepted;
|
bool res = result==QDialog::Accepted;
|
||||||
if( res )
|
if( res )
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
SUIT_OverrideCursor wc;
|
SUIT_OverrideCursor wc;
|
||||||
/*QString paramValues = */storeParams();
|
storeParams();
|
||||||
// No longer needed since NoteBook appears and "Value" OB field shows names of variable
|
// No longer needed since NoteBook appears and "Value" OB field shows names of variable
|
||||||
// if ( !paramValues.isEmpty() ) {
|
// QString paramValues = storeParams();
|
||||||
// if ( _PTR(SObject) SHyp = SMESH::FindSObject( myHypo ))
|
// if ( !paramValues.isEmpty() ) {
|
||||||
// SMESH::SetValue( SHyp, paramValues );
|
// if ( _PTR(SObject) SHyp = SMESH::FindSObject( myHypo ))
|
||||||
// }
|
// SMESH::SetValue( SHyp, paramValues );
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
catch ( const SALOME::SALOME_Exception& S_ex ) {
|
||||||
|
SalomeApp_Tools::QtCatchCorbaException( S_ex );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
changeWidgets().clear();
|
changeWidgets().clear();
|
||||||
|
@ -77,7 +77,7 @@ void StdMeshers_NumberOfLayers::SetNumberOfLayers(int numberOfLayers)
|
|||||||
{
|
{
|
||||||
if ( _nbLayers != numberOfLayers ) {
|
if ( _nbLayers != numberOfLayers ) {
|
||||||
if ( numberOfLayers <= 0 )
|
if ( numberOfLayers <= 0 )
|
||||||
throw SALOME_Exception(LOCALIZED("numberOfLayers must be positive"));
|
throw SALOME_Exception(LOCALIZED("numberOfLayers must be more than zero"));
|
||||||
_nbLayers = numberOfLayers;
|
_nbLayers = numberOfLayers;
|
||||||
|
|
||||||
NotifySubMeshesHypothesisModification();
|
NotifySubMeshesHypothesisModification();
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
#include <SMESHGUI_HypothesesUtils.h>
|
#include <SMESHGUI_HypothesesUtils.h>
|
||||||
#include <SMESHGUI_Utils.h>
|
#include <SMESHGUI_Utils.h>
|
||||||
#include <SMESHGUI_GEOMGenUtils.h>
|
#include <SMESHGUI_GEOMGenUtils.h>
|
||||||
|
|
||||||
#include <SMESH_TypeFilter.hxx>
|
#include <SMESH_TypeFilter.hxx>
|
||||||
#include <SMESH_NumberFilter.hxx>
|
#include <SMESH_NumberFilter.hxx>
|
||||||
|
|
||||||
@ -47,8 +46,9 @@
|
|||||||
#include <GEOM_wrap.hxx>
|
#include <GEOM_wrap.hxx>
|
||||||
|
|
||||||
// SALOME GUI includes
|
// SALOME GUI includes
|
||||||
#include <SUIT_ResourceMgr.h>
|
|
||||||
#include <SUIT_MessageBox.h>
|
#include <SUIT_MessageBox.h>
|
||||||
|
#include <SUIT_ResourceMgr.h>
|
||||||
|
#include <SalomeApp_IntSpinBox.h>
|
||||||
|
|
||||||
// IDL includes
|
// IDL includes
|
||||||
#include <SALOMEconfig.h>
|
#include <SALOMEconfig.h>
|
||||||
@ -1383,6 +1383,14 @@ void StdMeshersGUI_StdHypothesisCreator::attuneStdWidget (QWidget* w, const int)
|
|||||||
sb->RangeStepAndValidator( VALUE_SMALL, VALUE_MAX, 1.0, "length_precision" );
|
sb->RangeStepAndValidator( VALUE_SMALL, VALUE_MAX, 1.0, "length_precision" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if ( SalomeApp_IntSpinBox* sb = qobject_cast< SalomeApp_IntSpinBox* >( w ))
|
||||||
|
{
|
||||||
|
if ( hypType().startsWith( "NumberOfLayers" ) ||
|
||||||
|
hypType().startsWith( "ViscousLayers" ))
|
||||||
|
{
|
||||||
|
sb->setMinimum( 1 );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user