mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
IPAL9193 (Jun 16)
This commit is contained in:
parent
cf0ecc3c36
commit
f44f3fbf0b
@ -100,10 +100,15 @@ 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_SVTKDataOwner* owner =
|
const SalomeApp_DataOwner* owner =
|
||||||
dynamic_cast<const SalomeApp_SVTKDataOwner*> ( myDataOwners[ ind ].get() );
|
dynamic_cast<const SalomeApp_DataOwner*> ( 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;
|
||||||
}
|
}
|
||||||
|
@ -99,8 +99,8 @@ namespace SMESH{
|
|||||||
{
|
{
|
||||||
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>
|
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>
|
||||||
(SUIT_Session::session()->activeApplication());
|
(SUIT_Session::session()->activeApplication());
|
||||||
if (app && app->activeViewManager())
|
if (app && app->desktop() )
|
||||||
return app->activeViewManager()->getActiveView();
|
return app->desktop()->activeWindow();
|
||||||
else
|
else
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user