QString aSelCount = QString( "%1 = 1" ).arg( QtxPopupMgr::Selection::defSelCountParam() );
QString lc = QtxPopupMgr::Selection::defEquality();
- QString aClient = QString( "%1client in {%2}" ).arg( lc ).arg( "'VTKViewer' 'ObjectBrowser'" );
+ QString aClient = QString( "%1client in {%2}" ).arg( lc ).arg( "'VTKViewer'" );
QString aType = QString( "%1type in {%2}" ).arg( QtxPopupMgr::Selection::defEquality() ).arg( mesh_group );
QString aMeshInVTK = aClient + "&&" + aType;// + "&&" + aSelCount;
SMESH_Actor* SMESHGUI_Selection::getActor( int ind ) const
{
if ( ind >= 0 && ind < myDataOwners.count() ) {
- const SalomeApp_DataOwner* owner =
- dynamic_cast<const SalomeApp_DataOwner*> ( myDataOwners[ ind ].get() );
- if ( owner )
- {
- Handle( SALOME_InteractiveObject ) anObj = owner->IO();
- QString entry = anObj->getEntry();
- return dynamic_cast<SMESH_Actor*>( SMESH::FindActorByEntry( entry ) );
- }
- //return dynamic_cast<SMESH_Actor*>( owner->GetActor() );
+ const SalomeApp_SVTKDataOwner* owner =
+ dynamic_cast<const SalomeApp_SVTKDataOwner*> ( myDataOwners[ ind ].get() );
+ if ( owner )
+ return dynamic_cast<SMESH_Actor*>( owner->GetActor() );
}
return 0;
}