+ myObjects.clear();
+ myObjectsNames.clear();
+ myMeshes.clear();
+
+ for ( SALOME_ListIteratorOfListIO it( aList ); it.More(); it.Next() ) {
+ Handle(SALOME_InteractiveObject) IO = it.Value();
+ SMESH::SMESH_Mesh_var aMesh = SMESH::GetMeshByIO( IO );
+ if ( aMesh->_is_nil() )
+ return;
+
+ myActor = SMESH::FindActorByObject( aMesh );
+ if ( !myActor )
+ myActor = SMESH::FindActorByEntry( IO->getEntry() );
+ if ( !myActor && !CheckBoxMesh->isChecked() )
+ return;
+
+ if ( !SMESH::IObjectToInterface<SMESH::SMESH_IDSource>( IO )->_is_nil() ) {
+ if ( _PTR(Study) aStudy = SMESH::GetActiveStudyDocument() ) {
+ _PTR(SObject) obj = aStudy->FindObjectID( qPrintable( QString( IO->getEntry() ) ) );
+ _PTR(GenericAttribute) anAttr;
+ if ( obj && obj->FindAttribute( anAttr, "AttributeName" ) ) {
+ _PTR(AttributeName) aNameAttr( anAttr );
+ myObjects << SMESH::IObjectToInterface<SMESH::SMESH_IDSource>( IO );
+ myObjectsNames << aNameAttr->Value().c_str();
+ myMeshes << aMesh;
+ }
+ }
+ }
+ }