mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-14 04:21:34 +05:00
There were added new version of method type returning type by string entry
This commit is contained in:
parent
6dea707b73
commit
eaeda2a220
@ -313,17 +313,21 @@ QVariant SMESHGUI_Selection::isVisible( int ind ) const
|
||||
return QVariant( false, 0 );
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : type
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
int SMESHGUI_Selection::type( SalomeApp_DataOwner* owner, _PTR(Study) study )
|
||||
{
|
||||
return type( owner->entry(), study );
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : type
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
int SMESHGUI_Selection::type( SalomeApp_DataOwner* owner,
|
||||
_PTR(Study) study )
|
||||
int SMESHGUI_Selection::type( const QString& entry, _PTR(Study) study )
|
||||
{
|
||||
QString entry = owner->entry();
|
||||
|
||||
_PTR(SObject) obj (study->FindObjectID(entry.latin1()));
|
||||
if( !obj )
|
||||
return -1;
|
||||
|
@ -63,7 +63,8 @@ public:
|
||||
|
||||
SMESH_Actor* getActor( int ind ) const;
|
||||
|
||||
static int type( SalomeApp_DataOwner* owner, _PTR(Study) study);
|
||||
static int type( const QString&, _PTR(Study) );
|
||||
static int type( SalomeApp_DataOwner* owner, _PTR(Study) );
|
||||
static QString typeName( const int type);
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user