Salome HOME
Fix for the '21341: [CEA 496] impossible to modify color in "feature edge" mode'... V6_main_20110809
authorrnv <rnv@opencascade.com>
Mon, 8 Aug 2011 07:59:54 +0000 (07:59 +0000)
committerrnv <rnv@opencascade.com>
Mon, 8 Aug 2011 07:59:54 +0000 (07:59 +0000)
src/VISUGUI/VisuGUI.cxx

index e67f340e1f8e69a58393e0c11e945e663b0baace..e040c8df4d56cb087af3f2fff560c5409f15a7d3 100644 (file)
@@ -1308,6 +1308,7 @@ VisuGUI
         break;
       case VISU::WIREFRAME :
       case VISU::INSIDEFRAME :
+      case VISU::FEATURE_EDGES :       
         anOldColor = aMesh->GetLinkColor();
         break;
       case VISU::SHADED :
@@ -1340,6 +1341,7 @@ VisuGUI
           break;
         case VISU::SHADED :
         case VISU::SURFACEFRAME :
+        case VISU::FEATURE_EDGES :
           aMesh->SetCellColor(aNewColor);
           break;
       }
@@ -3243,7 +3245,7 @@ VisuGUI
   mgr->setRule( action( VISU_CELL_COLOR ), aRule + " and type='VISU::TMESH' and representation='VISU::SURFACEFRAME'" );
   mgr->setRule( action( VISU_EDGE_COLOR ), aRule + aSurfFrameType + " and representation='VISU::SURFACEFRAME'" );
   mgr->setRule( action( VISU_COLOR ), aRule + " and ((type='VISU::TMESH'"
-               " and $representation in {'VISU::POINT' 'VISU::WIREFRAME' 'VISU::SHADED' 'VISU::INSIDEFRAME'}) "
+               " and $representation in {'VISU::POINT' 'VISU::WIREFRAME' 'VISU::SHADED' 'VISU::INSIDEFRAME' 'VISU::FEATURE_EDGES'}) "
                "or (type='VISU::TDEFORMEDSHAPE' and hasActor=1))" );
   mgr->setRule( action( VISU_OPACITY ), aRule + " and hasActor=1" );
   mgr->setRule( action( VISU_LINE_WIDTH ), aRule + aLineType + " and hasActor=1 and representation!='VISU::POINT'" );