From: rnv Date: Mon, 8 Aug 2011 07:59:54 +0000 (+0000) Subject: Fix for the '21341: [CEA 496] impossible to modify color in "feature edge" mode'... X-Git-Tag: V6_main_20110809 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=86f443b77eaf44abc54d5334789255b69bdb5e40;p=modules%2Fvisu.git Fix for the '21341: [CEA 496] impossible to modify color in "feature edge" mode' issue. --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index e67f340e..e040c8df 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -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'" );