mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +05:00
IPAL52934: Elements are't not highlighted in vtk viewer after set id in measurements dialog box
Fix SMESHGUI_Measurements.cxx In "Build Compound Mesh", set "Merge coincident nodes and elements" ON by default after reflection about a question on the Forum http://www.salome-platform.org/forum/forum_11/866636535 Change SMESHGUI_BuildCompoundDlg.cxx
This commit is contained in:
parent
219f1c3410
commit
387ee09383
@ -228,7 +228,7 @@ void SMESHGUI_BuildCompoundDlg::Init()
|
||||
ComboBoxUnion->addItem(tr("RENAME"));
|
||||
ComboBoxUnion->setCurrentIndex(0);
|
||||
|
||||
CheckBoxMerge->setChecked(false);
|
||||
CheckBoxMerge->setChecked(true);
|
||||
|
||||
TextLabelTol->setEnabled(CheckBoxMerge->isChecked());
|
||||
SpinBoxTol->SetValue(1e-05);
|
||||
|
@ -198,6 +198,7 @@ SMESHGUI_MinDistance::SMESHGUI_MinDistance( QWidget* parent )
|
||||
clear();
|
||||
|
||||
//setTarget( FirstTgt );
|
||||
selectionChanged();
|
||||
}
|
||||
|
||||
/*!
|
||||
@ -500,13 +501,21 @@ void SMESHGUI_MinDistance::secondEdited()
|
||||
setTarget( SecondTgt );
|
||||
if ( sender() == mySecondTgt )
|
||||
clear();
|
||||
QString text = mySecondTgt->text();
|
||||
if ( !mySecondActor )
|
||||
{
|
||||
selectionChanged();
|
||||
mySecondTgt->setText( text );
|
||||
}
|
||||
SVTK_Selector* selector = SMESH::GetViewWindow()->GetSelector();
|
||||
if ( mySecondActor && selector ) {
|
||||
Handle(SALOME_InteractiveObject) IO = mySecondActor->getIO();
|
||||
if ( mySecond->checkedId() == NodeTgt || mySecond->checkedId() == ElementTgt ) {
|
||||
TColStd_MapOfInteger ID;
|
||||
ID.Add( mySecondTgt->text().toLong() );
|
||||
selector->AddOrRemoveIndex( IO, ID, false );
|
||||
if ( !text.isEmpty() ) {
|
||||
TColStd_MapOfInteger ID;
|
||||
ID.Add( text.toLong() );
|
||||
selector->AddOrRemoveIndex( IO, ID, false );
|
||||
}
|
||||
}
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow() )
|
||||
aViewWindow->highlight( IO, true, true );
|
||||
|
Loading…
Reference in New Issue
Block a user