]> OCCT Git - occt-copy.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>
Sat, 9 Jan 2016 16:52:52 +0000 (19:52 +0300)
commit1d65b853b2930ce57d63810564da2d5f95291277
tree220df80831b57f830e43ee470fa3e9d4d0aa629b
parent11f3d1ca3d10cd1a32436fdda29d0bdd2e89581b
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