mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0028621: Visualization - AIS_ColoredShape::UnsetTransparency() is not implemented
# Conflicts: # src/AIS/AIS_ColoredShape.cxx
This commit is contained in:
@@ -77,6 +77,9 @@ public: //! @name global aspects
|
|||||||
//! Sets transparency value.
|
//! Sets transparency value.
|
||||||
Standard_EXPORT virtual void SetTransparency (const Standard_Real theValue) Standard_OVERRIDE;
|
Standard_EXPORT virtual void SetTransparency (const Standard_Real theValue) Standard_OVERRIDE;
|
||||||
|
|
||||||
|
//! Removes the setting for transparency in the reconstructed compound shape.
|
||||||
|
Standard_EXPORT virtual void UnsetTransparency() Standard_OVERRIDE;
|
||||||
|
|
||||||
//! Sets the material aspect.
|
//! Sets the material aspect.
|
||||||
Standard_EXPORT virtual void SetMaterial (const Graphic3d_MaterialAspect& theAspect) Standard_OVERRIDE;
|
Standard_EXPORT virtual void SetMaterial (const Graphic3d_MaterialAspect& theAspect) Standard_OVERRIDE;
|
||||||
|
|
||||||
|
28
tests/bugs/vis/bug28621
Normal file
28
tests/bugs/vis/bug28621
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
puts "================================================================================================="
|
||||||
|
puts "0028621: Visualization - AIS_ColoredShape::UnsetTransparency() is not implemented"
|
||||||
|
puts "================================================================================================="
|
||||||
|
|
||||||
|
pload VISUALIZATION MODELING
|
||||||
|
box b 1 2 3
|
||||||
|
vclear
|
||||||
|
vinit View1
|
||||||
|
vdisplay -noupdate -dispMode 1 b
|
||||||
|
vfit
|
||||||
|
|
||||||
|
# OK
|
||||||
|
set aColor11 [vreadpixel 250 250 rgb name]
|
||||||
|
vsettransparency b 0.8
|
||||||
|
vunsettransparency b
|
||||||
|
set aColor12 [vreadpixel 250 250 rgb name]
|
||||||
|
if { "$aColor11" != "$aColor12" } { puts "Error: color is not set back" }
|
||||||
|
|
||||||
|
explode b F
|
||||||
|
vaspects b -subShapes b_2 -setColor RED
|
||||||
|
|
||||||
|
set aColor21 [vreadpixel 250 250 rgb name]
|
||||||
|
vsettransparency b 0.8
|
||||||
|
vunsettransparency b
|
||||||
|
set aColor22 [vreadpixel 250 250 rgb name]
|
||||||
|
if { "$aColor21" != "$aColor22" } { puts "Error: color is not set back" }
|
||||||
|
|
||||||
|
vdump $imagedir/${casename}.png
|
Reference in New Issue
Block a user