mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-25 03:22:04 +05:00
IPAL21468 Copmpound is not Shown after its creation.
This commit is contained in:
parent
50d3f067f7
commit
7673a0f5a5
@ -289,6 +289,8 @@ bool SMESHGUI_BuildCompoundDlg::ClickOnApply()
|
|||||||
if (!isValid())
|
if (!isValid())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
SMESH::SMESH_Mesh_var aCompoundMesh;
|
||||||
|
|
||||||
if (!myMesh->_is_nil()) {
|
if (!myMesh->_is_nil()) {
|
||||||
QStringList aParameters;
|
QStringList aParameters;
|
||||||
aParameters << (CheckBoxMerge->isChecked() ? SpinBoxTol->text() : QString(" "));
|
aParameters << (CheckBoxMerge->isChecked() ? SpinBoxTol->text() : QString(" "));
|
||||||
@ -297,7 +299,6 @@ bool SMESHGUI_BuildCompoundDlg::ClickOnApply()
|
|||||||
|
|
||||||
SMESH::SMESH_Gen_var aSMESHGen = SMESHGUI::GetSMESHGen();
|
SMESH::SMESH_Gen_var aSMESHGen = SMESHGUI::GetSMESHGen();
|
||||||
// concatenate meshes
|
// concatenate meshes
|
||||||
SMESH::SMESH_Mesh_var aCompoundMesh;
|
|
||||||
if(CheckBoxCommon->isChecked())
|
if(CheckBoxCommon->isChecked())
|
||||||
aCompoundMesh = aSMESHGen->ConcatenateWithGroups(myMeshArray,
|
aCompoundMesh = aSMESHGen->ConcatenateWithGroups(myMeshArray,
|
||||||
!(ComboBoxUnion->currentIndex()),
|
!(ComboBoxUnion->currentIndex()),
|
||||||
@ -319,8 +320,16 @@ bool SMESHGUI_BuildCompoundDlg::ClickOnApply()
|
|||||||
|
|
||||||
LineEditName->setText(GetDefaultName(tr("COMPOUND_MESH")));
|
LineEditName->setText(GetDefaultName(tr("COMPOUND_MESH")));
|
||||||
|
|
||||||
//mySelectionMgr->clearSelected();
|
// IPAL21468 Compound is hidden after creation.
|
||||||
SMESH::UpdateView();
|
if ( SMESHGUI::automaticUpdate() ) {
|
||||||
|
mySelectionMgr->clearSelected();
|
||||||
|
SMESH::UpdateView();
|
||||||
|
|
||||||
|
_PTR(SObject) aSO = SMESH::FindSObject(aCompoundMesh.in());
|
||||||
|
if ( SMESH_Actor* anActor = SMESH::CreateActor(aSO->GetStudy(), aSO->GetID().c_str()) )
|
||||||
|
SMESH::DisplayActor(SMESH::GetActiveWindow(), anActor);
|
||||||
|
}// end IPAL21468
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -2155,6 +2155,17 @@ SMESH_Gen_i::ConcatenateCommon(const SMESH::mesh_array& theMeshesArray,
|
|||||||
{
|
{
|
||||||
SMESH::ListOfGroups_var groups = aNewMesh->GetGroups();
|
SMESH::ListOfGroups_var groups = aNewMesh->GetGroups();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IPAL21468 Change icon of compound because it need not be computed.
|
||||||
|
SALOMEDS::SObject_var aMeshSObj = ObjectToSObject( myCurrentStudy, aNewMesh );
|
||||||
|
if(aMeshSObj) {
|
||||||
|
SALOMEDS::GenericAttribute_var anAttr;
|
||||||
|
SALOMEDS::StudyBuilder_var aBuilder = myCurrentStudy->NewBuilder();
|
||||||
|
anAttr = aBuilder->FindOrCreateAttribute( aMeshSObj,"AttributePixMap" );
|
||||||
|
SALOMEDS::AttributePixMap_var aPixmap = SALOMEDS::AttributePixMap::_narrow(anAttr);
|
||||||
|
aPixmap->SetPixMap("ICON_SMESH_TREE_MESH");
|
||||||
|
}
|
||||||
|
|
||||||
return aNewMesh._retn();
|
return aNewMesh._retn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user