]> OCCT Git - occt.git/commit
0027058: AIS_ColorScale defines methods SetColor and SetWidth hiding inherited methods
authorabv <abv@opencascade.com>
Sat, 9 Jan 2016 10:53:31 +0000 (13:53 +0300)
committerabv <abv@opencascade.com>
Mon, 11 Jan 2016 22:55:33 +0000 (01:55 +0300)
commit180f89a29e719574aa1f0761208b4f07e098c086
tree33cb77e48e9e0c01d2ac7d7c2a4797156254e4fc
parente0280ce92e48ce5a00a41c05cfe522d1e576dd60
0027058: AIS_ColorScale defines methods SetColor and SetWidth hiding inherited methods

Interface of AIS_ColorScale is revised to make it more consistent:

- Methods SetBgColor()/GetBGColor(), and corresponding field, are removed. It was used to select white or black color for the color bar frame (by contrast). That color can now be set explicitly by inherited method SetColor().
- Own methods Get/SetColor() are renamed to Get/SetIntervalColor(), to avoid confusion with inherited method SetColor()
- Methods Get/SetWidth() are renamed to Get/SetBreadth(), to avoid confusion with inherited method SetWidth()
- Method Get/Set for labels and colors, and DRAW command vcolorscale, now all accept index starting at 1
- Comments added to explain indexation rules
src/AIS/AIS_ColorScale.cxx
src/AIS/AIS_ColorScale.hxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
tests/bugs/vis/bug25136