Open CASCADE Technology  6.8.0
Public Member Functions | Data Fields
Graphic3d_ZLayerSettings Struct Reference

#include <Graphic3d_ZLayerSettings.hxx>

Public Member Functions

 Graphic3d_ZLayerSettings ()
 
const Standard_Boolean IsSettingEnabled (const Graphic3d_ZLayerSetting theSetting) const
 Returns true if theSetting is enabled. More...
 
void EnableSetting (const Graphic3d_ZLayerSetting theSetting)
 Enables theSetting. More...
 
void DisableSetting (const Graphic3d_ZLayerSetting theSetting)
 Disables theSetting. More...
 
void SetDepthOffsetPositive ()
 Sets minimal possible positive depth offset. Access DepthOffsetFactor and DepthOffsetUnits values for manual offset control. More...
 
void SetDepthOffsetNegative ()
 Sets minimal possible negative depth offset. Access DepthOffsetFactor and DepthOffsetUnits values for manual offset control. More...
 

Data Fields

Standard_ShortReal DepthOffsetFactor
 Factor argument value for OpenGl glPolygonOffset function. More...
 
Standard_ShortReal DepthOffsetUnits
 Units argument value for OpenGl glPolygonOffset function. More...
 
Standard_Integer Flags
 Storage field for settings. More...
 

Constructor & Destructor Documentation

Graphic3d_ZLayerSettings::Graphic3d_ZLayerSettings ( )
inline

Member Function Documentation

void Graphic3d_ZLayerSettings::DisableSetting ( const Graphic3d_ZLayerSetting  theSetting)
inline

Disables theSetting.

void Graphic3d_ZLayerSettings::EnableSetting ( const Graphic3d_ZLayerSetting  theSetting)
inline

Enables theSetting.

const Standard_Boolean Graphic3d_ZLayerSettings::IsSettingEnabled ( const Graphic3d_ZLayerSetting  theSetting) const
inline

Returns true if theSetting is enabled.

void Graphic3d_ZLayerSettings::SetDepthOffsetNegative ( )
inline

Sets minimal possible negative depth offset. Access DepthOffsetFactor and DepthOffsetUnits values for manual offset control.

void Graphic3d_ZLayerSettings::SetDepthOffsetPositive ( )
inline

Sets minimal possible positive depth offset. Access DepthOffsetFactor and DepthOffsetUnits values for manual offset control.

Field Documentation

Standard_ShortReal Graphic3d_ZLayerSettings::DepthOffsetFactor

Factor argument value for OpenGl glPolygonOffset function.

Standard_ShortReal Graphic3d_ZLayerSettings::DepthOffsetUnits

Units argument value for OpenGl glPolygonOffset function.

Standard_Integer Graphic3d_ZLayerSettings::Flags

Storage field for settings.


The documentation for this struct was generated from the following file: