Bug 9193:

Only nodes mode in "Display mode" popup in SMESH
This commit is contained in:
asl 2005-06-17 04:57:03 +00:00
parent f44f3fbf0b
commit 656c73ce33
2 changed files with 5 additions and 10 deletions

View File

@ -2856,7 +2856,7 @@ void SMESHGUI::initialize( CAM_Application* app )
QString aSelCount = QString( "%1 = 1" ).arg( QtxPopupMgr::Selection::defSelCountParam() ); QString aSelCount = QString( "%1 = 1" ).arg( QtxPopupMgr::Selection::defSelCountParam() );
QString lc = QtxPopupMgr::Selection::defEquality(); 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 aType = QString( "%1type in {%2}" ).arg( QtxPopupMgr::Selection::defEquality() ).arg( mesh_group );
QString aMeshInVTK = aClient + "&&" + aType;// + "&&" + aSelCount; QString aMeshInVTK = aClient + "&&" + aType;// + "&&" + aSelCount;

View File

@ -100,15 +100,10 @@ QtxValue SMESHGUI_Selection::param( const int ind, const QString& p ) const
SMESH_Actor* SMESHGUI_Selection::getActor( int ind ) const SMESH_Actor* SMESHGUI_Selection::getActor( int ind ) const
{ {
if ( ind >= 0 && ind < myDataOwners.count() ) { if ( ind >= 0 && ind < myDataOwners.count() ) {
const SalomeApp_DataOwner* owner = const SalomeApp_SVTKDataOwner* owner =
dynamic_cast<const SalomeApp_DataOwner*> ( myDataOwners[ ind ].get() ); dynamic_cast<const SalomeApp_SVTKDataOwner*> ( myDataOwners[ ind ].get() );
if ( owner ) if ( owner )
{ return dynamic_cast<SMESH_Actor*>( owner->GetActor() );
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() );
} }
return 0; return 0;
} }