]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To use a new method for ColoredPrs3dHolder to allow user to get know what type of...
authorapo <apo@opencascade.com>
Mon, 27 Nov 2006 11:46:29 +0000 (11:46 +0000)
committerapo <apo@opencascade.com>
Mon, 27 Nov 2006 11:46:29 +0000 (11:46 +0000)
src/VISUGUI/VisuGUI_PopupTools.cxx

index 45d034d939acaee43cca21f06586e49fa9324069..0708e5768fe2695541957dfab59e174b2b4037d9 100644 (file)
@@ -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 );