]> OCCT Git - occt.git/commit
0028004: Visualization, AIS_ColorScale - allow defining labels list not equal to...
authorkgv <kgv@opencascade.com>
Thu, 22 Dec 2016 09:39:13 +0000 (12:39 +0300)
committerapn <apn@opencascade.com>
Thu, 22 Dec 2016 09:39:35 +0000 (12:39 +0300)
commit4b3d6eb1d2b6832a31ff1bb3f65c052838c15710
tree7103a82a5f8a17f7336a0176b31179df1577c447
parent09a4804444b47782c3158e9e7d05bdff345aaf10
0028004: Visualization, AIS_ColorScale - allow defining labels list not equal to intervals list

Cosmetics, code clean up.

AIS_ColorScale now draw labels using Graphic3d_VTA_CENTER
vertical alignment flag, instead of incorrect own alignment logic.
The color bar now adds margin on the top simmetrical to the bottom.

AIS_ColorScale::SetSmoothTransition() - added new property
for displaying colorscale with smooth transition between color intervals.

AIS_ColorScale::SetHueRange() - added new property defining the hue angles
corresponding to minimal and maximum values on the color scale.

AIS_ColorScale::SetLabels() now allows setting the sequence of free labels,
which number does not match the number of intervals.
In this case the labels will be displayed at positions of virtual
intervals corresponding to the number of labels.
src/AIS/AIS_ColorScale.cxx
src/AIS/AIS_ColorScale.hxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
tests/bugs/vis/bug25136
tests/bugs/vis/bug28004 [new file with mode: 0644]