1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00
occt/tests/bugs/vis/bug25027
isz 7a324550c8 0025785: Visualization - introduce AIS_ColorScale presentation for Color Scale
Color scale is implemented on AIS. Draw command vcolorscale now works with AIS_ColorScale.
In a qt sample VoxelDemo there was added a field AIS_ColorScale myColorsScale to control a color scale. Method displayColorScale and other methods were changed in order to work with this field.
2015-08-13 11:00:58 +03:00

18 lines
445 B
Plaintext
Executable File

puts "============"
puts "OCC25027"
puts "============"
puts ""
#######################################################################
# Visualization - 2D layer viewport is updated incorrectly on resize
#######################################################################
box b 1 2 3
vinit View1 w=1024 h=512
vsetdispmode 1
vdisplay b
vfit
vcolorscale cs -range 10 20 100 -font 16 -textpos right -xy 0 0
vmoveto 512 250
set only_screen 1