From: rnv Date: Mon, 7 Feb 2011 09:22:22 +0000 (+0000) Subject: Set deflection coefficient for VTK viewer equal to the 0.0, because it is currently... X-Git-Tag: Start_BR_19998_21191~73 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2d64222b28ca071049b6513ce70eb3d00ea1d1cd;p=modules%2Fgeom.git Set deflection coefficient for VTK viewer equal to the 0.0, because it is currently not supported. --- diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index 0d4641f3b..15a8f75a4 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -1665,8 +1665,8 @@ PropMap GEOM_Displayer::getDefaultPropepryMap(const QString& viewer_type){ anUIsoNumber = aResMgr->integerValue("OCCViewer", "iso_number_u", 1); aVIsoNumber = aResMgr->integerValue("OCCViewer", "iso_number_v", 1); } else if( viewer_type==SVTK_Viewer::Type()) { - anUIsoNumber = 1; - aVIsoNumber = 1; + anUIsoNumber = aResMgr->integerValue("VTKViewer", "iso_number_u", 1); + aVIsoNumber = aResMgr->integerValue("VTKViewer", "iso_number_u", 1); } QString anIsos("%1%2%3"); anIsos = anIsos.arg(anUIsoNumber);anIsos = anIsos.arg(DIGIT_SEPARATOR);anIsos = anIsos.arg(aVIsoNumber); @@ -1686,7 +1686,13 @@ PropMap GEOM_Displayer::getDefaultPropepryMap(const QString& viewer_type){ aDefaultMap.insert( COLOR_PROP , col); //7. Deflection Coeff - double aDC = aResMgr->doubleValue("Geometry", "deflection_coeff", 0.001); + double aDC; + //rnv: Currently deflection coefficient is not supported by VTK viewer. + if(viewer_type == SOCC_Viewer::Type()) { + double aDC = aResMgr->doubleValue("Geometry", "deflection_coeff", 0.001); + } else if( viewer_type==SVTK_Viewer::Type()) { + aDC = 0.0; + } aDefaultMap.insert( DEFLECTION_COEFF_PROP , aDC); return aDefaultMap;