From: dmv Date: Mon, 31 Aug 2009 07:01:17 +0000 (+0000) Subject: IPAL21345 SetBarOrientation works wrong in TUI X-Git-Tag: V5_1_main_20090901 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ff0e94c154e148034b7e4d5e9a7dcde6be53a927;p=modules%2Fvisu.git IPAL21345 SetBarOrientation works wrong in TUI --- 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()