mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-11 10:44:53 +03:00
Update documentat if the class. SetColor() and SetLabel() now work with 0-based index. SetColor() now checks length of myColors. Remove methods GetCurrentColor() and GetCurrentLabel(). Methods GetColor() and GetLabel() now can be used to get user-specified and default colors / labels. Round down IntervNumber in FindColor(). DrawScale() - show labels even for one interval. Redesign Draw Harness command vcolorscale, provide new options. Update test cases which use vcolorscale command.
18 lines
442 B
Plaintext
Executable File
18 lines
442 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 -range 10 20 100 -font 16 -textpos right -xy 0 0
|
|
vmoveto 512 250
|
|
|
|
set only_screen 1
|