]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
For PARAVIS: use AttributeUserID instead of AttributeLocalID V5_1_main_20100128
authorvsr <vsr@opencascade.com>
Wed, 27 Jan 2010 09:54:01 +0000 (09:54 +0000)
committervsr <vsr@opencascade.com>
Wed, 27 Jan 2010 09:54:01 +0000 (09:54 +0000)
src/VISU_I/VISU_Result_i.cc

index 903a5f0b52640467eccd6154319045b78272c017..3099bec2751cc4a89e897c8859fc6f8e2020b882 100644 (file)
@@ -37,6 +37,7 @@
 
 #include "SALOMEDS_Tool.hxx"
 #include "HDFascii.hxx"
+#include "Basics_Utils.hxx"
 
 #include "SUIT_Session.h"
 #include "SALOME_Event.h"
@@ -385,15 +386,17 @@ VISU::Result_i
 
     SALOMEDS::GenericAttribute_var anAttr;
     SALOMEDS::AttributePixMap_var  aPixmap;
-    SALOMEDS::AttributeLocalID_var aId;
+    SALOMEDS::AttributeUserID_var aId;
     
     anAttr  = aStudyBuilder->FindOrCreateAttribute( mySObject, "AttributePixMap" );
     aPixmap = SALOMEDS::AttributePixMap::_narrow( anAttr );
     aPixmap ->SetPixMap("ICON_TREE_RESULT");
 
-    anAttr  = aStudyBuilder->FindOrCreateAttribute( mySObject, "AttributeLocalID" );
-    aId     = SALOMEDS::AttributeLocalID::_narrow( anAttr );
-    aId     ->SetValue(VISU::TRESULT);
+    std::string auid = "AttributeUserID";
+    auid += Kernel_Utils::GetGUID(Kernel_Utils::ObjectdID);
+    anAttr  = aStudyBuilder->FindOrCreateAttribute( mySObject, auid.c_str() );
+    aId     = SALOMEDS::AttributeUserID::_narrow( anAttr );
+    aId     ->SetValue("VISU.RESULT");
  
     if(theIsBuildAll)
       return BuildAll();