]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
IPAL21345 SetBarOrientation works wrong in TUI V5_1_main_20090901 V5_1_main_20090903 V5_1_main_20090904 V5_1_main_20090907 V5_1_main_20090910
authordmv <dmv@opencascade.com>
Mon, 31 Aug 2009 07:01:17 +0000 (07:01 +0000)
committerdmv <dmv@opencascade.com>
Mon, 31 Aug 2009 07:01:17 +0000 (07:01 +0000)
src/VISU_I/VISU_PointMap3d_i.cc

index aebf5c9c97678d5b9fa3f079e2a3ea4a2f1ae5a1..a846c3d8e453811d384ee3f10e78b2ce084e9d7c 100644 (file)
@@ -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()