mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024785: Visualization - Modifying z-layers concept to gain more control over OpenGl depth buffer.
Cosmetic fixes. glDepthFunc fix.
This commit is contained in:
@@ -40,6 +40,7 @@ class Viewer from V3d inherits TShared from MMgt
|
||||
uses
|
||||
|
||||
GraphicDriver from Graphic3d,
|
||||
ZLayerSettings from Graphic3d,
|
||||
TypeOfUpdate from V3d,
|
||||
TypeOfVisualization from V3d,
|
||||
TypeOfShadingModel from V3d,
|
||||
@@ -643,6 +644,17 @@ is
|
||||
---Purpose:
|
||||
-- Temporarly hide grid echo.
|
||||
|
||||
SetZLayerSettings ( me : mutable;
|
||||
theLayerId : Integer from Standard;
|
||||
theSettings : ZLayerSettings from Graphic3d )
|
||||
is static;
|
||||
---Purpose: Sets the settings for a single Z layer.
|
||||
|
||||
ZLayerSettings ( me : mutable;
|
||||
theLayerId : Integer from Standard )
|
||||
returns ZLayerSettings from Graphic3d is static;
|
||||
---Purpose: Returns the settings of a single Z layer.
|
||||
|
||||
AddZLayer ( me : mutable;
|
||||
theLayerId : in out Integer from Standard )
|
||||
returns Boolean from Standard is static;
|
||||
|
@@ -332,6 +332,27 @@ void V3d_Viewer::DelView( const Handle(V3d_View)& TheView ) {
|
||||
MyDefinedViews.Remove(TheView);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetZLayerSettings
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void V3d_Viewer::SetZLayerSettings (const Standard_Integer theLayerId,
|
||||
const Graphic3d_ZLayerSettings& theSettings)
|
||||
{
|
||||
MyViewer->SetZLayerSettings (theLayerId, theSettings);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ZLayerSettings
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Graphic3d_ZLayerSettings V3d_Viewer::ZLayerSettings (const Standard_Integer theLayerId)
|
||||
{
|
||||
return MyViewer->ZLayerSettings (theLayerId);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : AddZLayer
|
||||
//purpose :
|
||||
|
Reference in New Issue
Block a user