mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-15 05:28:47 +08: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
|