From: asl Date: Wed, 23 Nov 2005 11:34:48 +0000 (+0000) Subject: PAL10478 - display doesn't work in other VTK viewer X-Git-Tag: BR_3_1_0_deb~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0d727220d4761c272c4fdae791613a9323612765;p=modules%2Fvisu.git PAL10478 - display doesn't work in other VTK viewer --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 84811faa..f190ea85 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -622,7 +622,9 @@ OnDisplayPrs() VISU::Prs3d_i* aPrsObject = dynamic_cast(VISU::GetServant(anObject).in()); if(aPrsObject){ if(MYDEBUG) MESSAGE("VisuGUI::OnDisplayPrs : Prs3d object"); - UpdateViewer( this, aPrsObject ); + //UpdateViewer( this, aPrsObject ); + displayer()->Display( anIO->getEntry() ); + SVTK_ViewWindow* vw = GetViewWindow( this, /*create=*/true ); if ( vw ) { vw->highlight(anIO, 1); @@ -633,21 +635,24 @@ OnDisplayPrs() VISU::Curve_i* aCurve = dynamic_cast(VISU::GetServant(anObject).in()); if(aCurve){ if(MYDEBUG) MESSAGE("VisuGUI::OnDisplayPrs : Curve object"); - PlotCurve( this, aCurve, VISU::eDisplay ); + //PlotCurve( this, aCurve, VISU::eDisplay ); + displayer()->Display( anIO->getEntry() ); continue; } // is it Container ? VISU::Container_i* aContainer = dynamic_cast(VISU::GetServant(anObject).in()); if(aContainer){ if(MYDEBUG) MESSAGE("VisuGUI::DisplayPrs : Container object"); - PlotContainer( this, aContainer, VISU::eDisplay ); + //PlotContainer( this, aContainer, VISU::eDisplay ); + displayer()->Display( anIO->getEntry() ); continue; } // is it Table ? VISU::Table_i* aTable = dynamic_cast(VISU::GetServant(anObject).in()); if(aTable){ if(MYDEBUG) MESSAGE("VisuGUI::DisplayPrs : Table object"); - PlotTable( this, aTable, VISU::eDisplay ); + //PlotTable( this, aTable, VISU::eDisplay ); + displayer()->Display( anIO->getEntry() ); continue; } }