mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0028738: Data Exchange, XCAFPrs_Style - add transparency property
Use Quantity_ColorRGBA as surface color to store a transparency in XCAFPrs_Style.
This commit is contained in:
@@ -655,8 +655,16 @@ public: //! @name methods to alter or retrieve current state
|
||||
//! Checks if transparency is required for the given aspect and highlight style.
|
||||
Standard_EXPORT static Standard_Boolean CheckIsTransparent (const OpenGl_AspectFace* theAspect,
|
||||
const Handle(Graphic3d_PresentationAttributes)& theHighlight,
|
||||
Standard_ShortReal& theTranspFront,
|
||||
Standard_ShortReal& theTranspBack);
|
||||
Standard_ShortReal& theAlphaFront,
|
||||
Standard_ShortReal& theAlphaBack);
|
||||
|
||||
//! Checks if transparency is required for the given aspect and highlight style.
|
||||
static Standard_Boolean CheckIsTransparent (const OpenGl_AspectFace* theAspect,
|
||||
const Handle(Graphic3d_PresentationAttributes)& theHighlight)
|
||||
{
|
||||
Standard_ShortReal anAlphaFront = 1.0f, anAlphaBack = 1.0f;
|
||||
return CheckIsTransparent (theAspect, theHighlight, anAlphaFront, anAlphaBack);
|
||||
}
|
||||
|
||||
//! Setup current color.
|
||||
Standard_EXPORT void SetColor4fv (const OpenGl_Vec4& theColor);
|
||||
|
Reference in New Issue
Block a user