]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Entry in pipeline browser with same name than those into the object browser.
authorAnthony Geay <anthony.geay@edf.fr>
Tue, 11 Apr 2023 11:39:34 +0000 (13:39 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 11 Apr 2023 11:39:34 +0000 (13:39 +0200)
src/GEOMGUI/GEOM_Displayer.cxx
src/GEOMGUI/GEOM_Displayer.h

index 7f73e81a2c3a948e8059cf52680899dd3fee36dd..aabceb8cb3562d20b97186d940492a435a3b07ef 100644 (file)
@@ -1775,6 +1775,7 @@ void GEOM_Displayer::Update( SALOME_PV3DPrs* prs )
     // processing for usual geometry presentation
     // 
     {
+      pv3dPrs->SetName( myNameInObjBrowser );
       GEOM_Actor *actor = GEOM_Actor::New();
       updateActorProperties( actor, true );
       pv3dPrs->FillUsingActor( actor );
@@ -1882,6 +1883,7 @@ SALOME_Prs* GEOM_Displayer::buildPresentation( const QString& entry,
               GEOM::GEOM_BaseObject_var GeomBaseObject = GEOM::GEOM_BaseObject::_narrow( object );
               if ( !GeomBaseObject->_is_nil() )
               {
+                myNameInObjBrowser = getName( GeomBaseObject );
                 myType = GeomBaseObject->GetType();
 
                 // downcast to GEOM object
index 11f35c1b08b6bc3894d8cbcc296bd845e4f0ab8d..73d7e82366906e9566cb5c0332536f9c3840f900 100644 (file)
@@ -284,6 +284,7 @@ protected:
   TCollection_AsciiString          myFieldStepName;
   double                           myFieldStepRangeMin;
   double                           myFieldStepRangeMax;
+  std::string                      myNameInObjBrowser;
   std::string                      myName;
   std::string                      myTexture;
   int                              myType;