From a8fd1e6ddd2b52120e44e6848bd73ab49f84e5a2 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Tue, 11 Apr 2023 13:39:34 +0200 Subject: [PATCH] Entry in pipeline browser with same name than those into the object browser. --- src/GEOMGUI/GEOM_Displayer.cxx | 2 ++ src/GEOMGUI/GEOM_Displayer.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index 7f73e81a2..aabceb8cb 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -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 diff --git a/src/GEOMGUI/GEOM_Displayer.h b/src/GEOMGUI/GEOM_Displayer.h index 11f35c1b0..73d7e8236 100644 --- a/src/GEOMGUI/GEOM_Displayer.h +++ b/src/GEOMGUI/GEOM_Displayer.h @@ -284,6 +284,7 @@ protected: TCollection_AsciiString myFieldStepName; double myFieldStepRangeMin; double myFieldStepRangeMax; + std::string myNameInObjBrowser; std::string myName; std::string myTexture; int myType; -- 2.39.2