mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-24 16:30:34 +05:00
Bug 9193:
Only nodes mode in "Display mode" popup in SMESH
This commit is contained in:
parent
f44f3fbf0b
commit
656c73ce33
@ -2856,7 +2856,7 @@ void SMESHGUI::initialize( CAM_Application* app )
|
||||
|
||||
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;
|
||||
|
||||
|
@ -100,15 +100,10 @@ QtxValue SMESHGUI_Selection::param( const int ind, const QString& p ) const
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user