From: apo Date: Mon, 27 Nov 2006 11:46:29 +0000 (+0000) Subject: To use a new method for ColoredPrs3dHolder to allow user to get know what type of... X-Git-Tag: WP1_2_3_05-12-2006_cache_system~52 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b84295c3163799ffbfe90971ff34f3d71547f9a5;p=modules%2Fvisu.git To use a new method for ColoredPrs3dHolder to allow user to get know what type of presentation the holder instance is mananged --- diff --git a/src/VISUGUI/VisuGUI_PopupTools.cxx b/src/VISUGUI/VisuGUI_PopupTools.cxx index 45d034d9..0708e576 100644 --- a/src/VISUGUI/VisuGUI_PopupTools.cxx +++ b/src/VISUGUI/VisuGUI_PopupTools.cxx @@ -86,6 +86,10 @@ QString VisuGUI_Selection::type( const int ind ) const VISU::Base_var aVisuObj = VISU::Base::_narrow( anObject ); if ( !CORBA::is_nil( aVisuObj ) ){ VISU::VISUType aType = aVisuObj->GetType(); + if(aType == VISU::TCOLOREDPRS3DHOLDER){ + VISU::ColoredPrs3dHolder_var aHolder = VISU::ColoredPrs3dHolder::_narrow(aVisuObj); + aType = aHolder->GetPrsType(); + } switch (aType) { ENUM2STRING( aResStr, VISU::TVISUGEN ); ENUM2STRING( aResStr, VISU::TRESULT );