Salome HOME
type method added
authorsln <sln@opencascade.com>
Tue, 23 Aug 2005 08:55:53 +0000 (08:55 +0000)
committersln <sln@opencascade.com>
Tue, 23 Aug 2005 08:55:53 +0000 (08:55 +0000)
src/SMESHGUI/SMESHGUI_Selection.cxx
src/SMESHGUI/SMESHGUI_Selection.h

index fe962f55ed740ede345e7889e46c77f0706dcb21..014e88a5a224c77011c207fe20d021266716e1a1 100644 (file)
@@ -316,16 +316,22 @@ QVariant SMESHGUI_Selection::isVisible( int ind ) const
 }
 
 
+//=======================================================================
+//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;
index 7137ebaef333b72e8adc07c0cac80f43688e9e69..524aa26a253fcbcaa2ffe0c7e53b9d5351e0b9b2 100644 (file)
@@ -63,6 +63,7 @@ public:
   
   SMESH_Actor* getActor( int ind ) const;
 
+  static int       type( const QString&, _PTR(Study) );
   static int       type( SalomeApp_DataOwner* owner, _PTR(Study) study);
   static QString   typeName( const int type);