1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/vis/bug23012
vpa 8e5fb5eabc 0027818: Visualization - provide an interface to define highlight presentation properties
- introduces a wrapper for setting up highlight properties: Graphic3d_HighlightStyle;
- API of all methods that use highlight or selection color is changed to deal with Graphic3d_HighlightStyle;
- highlight in shading mode now supports transparency, implemented via blending;
- transparency for selection can also be set, but implementing custom entity owners with additional presentation on application level;
- methods PrsMgr_PresentationManager::Highlight, PrsMgr_PresentationManager::BoundBox that highlight object with hard-coded color are removed;
- deprecated methods of SelectMgr_EntityOwner, that use presentation manager's highlight method, were removed;
- methods of IsHilighted AIS context with selection color checks were replaced;
- added API to store dynamic and selection highlight to Prs3d_Drawer class;
- customization of dynamic and selection highlight for particular objects is now available through SelectMgr_SelectableObject::HilightAttributes();
- AIS_InteractiveContext highlight methods were updated to support individual highlight styles of interactive objects;
- introduced new command - vselprops, that allows to customize global selection and highlight properties like autoactivation, pixel tolerance and colors;
- Draw Harness commands vautoactivatesel and vselprecision were removed, use vselprops instead;
- fixed bug in command's parser;
- test case for issue #27818
2016-09-30 11:17:11 +03:00

40 lines
847 B
Plaintext
Executable File

puts "================"
puts "OCC23012"
puts "================"
puts ""
#######################################################################################
# Detection gives incorrect results
######################################################################################
set BugNumber OCC23012
catch {pload XDE}
set x1 210
set y1 184
set x2 207
set y2 180
stepread [locate_data_file OCC23012-Sample_3.stp] a *
stepread [locate_data_file OCC23012-Sample_9.stp] b *
vdisplay a_1 b_1
vsetdispmode a_1 1
vsetdispmode b_1 1
vselprops -pixtol 0
set ColorBefore [vreadpixel ${x1} ${y1} rgb]
vmoveto ${x2} ${y2}
set ColorAfter [vreadpixel ${x2} ${y2} rgb]
if { "$ColorBefore" == "$ColorAfter" } {
puts "OK ${BugNumber}"
} else {
puts "Faulty ${BugNumber}"
}
vfit
checkview -screenshot -3d -path ${imagedir}/${test_image}.png