]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix for bug PAL13958(iso don't run (regressive bug)). V3_2_3_PkvImpr V3_2_3 V3_2_3pre4 V3_2_3pre5
authormzn <mzn@opencascade.com>
Fri, 24 Nov 2006 13:52:20 +0000 (13:52 +0000)
committermzn <mzn@opencascade.com>
Fri, 24 Nov 2006 13:52:20 +0000 (13:52 +0000)
src/GEOMGUI/GEOM_Displayer.cxx

index 23a9fb777119f54fd8b217a57f521c84a7bedcdb..4557ba97b6c483c5f7b5d17703bdc38558ffde7b 100644 (file)
@@ -521,16 +521,20 @@ void GEOM_Displayer::Update( SALOME_OCCPrs* prs )
        AISShape->SetDisplayMode( myDisplayMode );
         AISShape->SetShadingColor( myShadingColor );
 
-       // Set color for iso lines
+       // Set color and number for iso lines
        SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr();
        QColor col = aResMgr->colorValue( "Geometry", "isos_color", QColor(int(0.5*255), int(0.5*255), int(0.5*255)) );
        Quantity_Color aColor = SalomeApp_Tools::color( col );
-       
+       int anUIsoNumber = aResMgr->integerValue("OCCViewer", "iso_number_u", 1);
+       int aVIsoNumber  = aResMgr->integerValue("OCCViewer", "iso_number_v", 1);
+               
        Handle(Prs3d_IsoAspect) anAspect = AISShape->Attributes()->UIsoAspect();
+       anAspect->SetNumber( anUIsoNumber );
        anAspect->SetColor( aColor );
        AISShape->Attributes()->SetUIsoAspect( anAspect );
        
        anAspect = AISShape->Attributes()->VIsoAspect();
+       anAspect->SetNumber( aVIsoNumber );
        anAspect->SetColor( aColor );
        AISShape->Attributes()->SetVIsoAspect( anAspect );