From ff0e94c154e148034b7e4d5e9a7dcde6be53a927 Mon Sep 17 00:00:00 2001 From: dmv Date: Mon, 31 Aug 2009 07:01:17 +0000 Subject: [PATCH] IPAL21345 SetBarOrientation works wrong in TUI --- src/VISU_I/VISU_PointMap3d_i.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/VISU_I/VISU_PointMap3d_i.cc b/src/VISU_I/VISU_PointMap3d_i.cc index aebf5c9c..a846c3d8 100644 --- a/src/VISU_I/VISU_PointMap3d_i.cc +++ b/src/VISU_I/VISU_PointMap3d_i.cc @@ -839,6 +839,7 @@ void VISU::PointMap3d_i::SetPosition(CORBA::Double theX, CORBA::Double theY) myPosition[0] = theX; myPosition[1] = theY; + myParamsTime.Modified(); } CORBA::Double VISU::PointMap3d_i::GetPosX() @@ -860,6 +861,7 @@ void VISU::PointMap3d_i::SetSize(CORBA::Double theWidth, CORBA::Double theHeight myWidth = theWidth; myHeight = theHeight; + myParamsTime.Modified(); } CORBA::Double VISU::PointMap3d_i::GetHeight() @@ -901,7 +903,15 @@ void VISU::PointMap3d_i::SetBarOrientation(VISU::ColoredPrs3dBase::Orientation t if(myBarOrientation == theBarOrientation) return; + if ( ( theBarOrientation == VISU::ColoredPrs3dBase::VERTICAL && myHeight < myWidth ) || + ( theBarOrientation == VISU::ColoredPrs3dBase::HORIZONTAL && myHeight > myWidth ) ) { + vtkFloatingPointType tmp = myHeight; + myHeight = myWidth; + myWidth = tmp; + } + myBarOrientation = theBarOrientation; + myParamsTime.Modified(); } VISU::ColoredPrs3dBase::Orientation VISU::PointMap3d_i::GetBarOrientation() -- 2.39.2