From 0d727220d4761c272c4fdae791613a9323612765 Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 23 Nov 2005 11:34:48 +0000 Subject: [PATCH] PAL10478 - display doesn't work in other VTK viewer --- src/VISUGUI/VisuGUI.cxx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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; } } -- 2.39.2