0030523: Visualization - Highlighting does not work anymore
[occt.git] / tests / v3d / materials / bug27818_1
CommitLineData
8e5fb5ea 1puts "============"
8a590580 2puts "0027818: Visualization - provide an interface to define highlight presentation properties"
3puts "Test change of highlight properties for whole interactive context"
8e5fb5ea 4puts "============"
5puts ""
8e5fb5ea 6
7pload VISUALIZATION MODELING
8
9box b 10 20 30
10pcone p 15 0 40
11
8e5fb5ea 12vclear
8a590580 13vinit View1
14vdisplay b -dispMode 1 b p
8e5fb5ea 15vsetcolor b RED
8a590580 16vsetcolor p GRAY
17
18vviewparams -scale 17.8 -proj 0.892687 -0.331602 0.305206 -up -0.162521 0.394789 0.904284 -at 1.99 2.4 20.9
19vselprops dynHighlight -transp 0.3 -color PALEGREEN2 -dispMode 1
8e5fb5ea 20
8a590580 21vmoveto 285 212
22if { [vreadpixel 285 212 name rgb] != "DARKKHAKI" } { puts "Error: highlighting of a box is not transparent!" }
8e5fb5ea 23
8a590580 24vmoveto -reset
25if { [vreadpixel 285 212 name rgb] != "RED" } { puts "Error: highlighting of a box is not reset!" }
8e5fb5ea 26
27vmoveto 167 263
8a590580 28if { [vreadpixel 167 263 name rgb] != "DARKSEAGREEN2" } { puts "Error: highlighting of a cone is not transparent!" }
8e5fb5ea 29
30vdump $imagedir/${casename}.png