Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
DEFAULTLIGHTING
Syntax
C++
OdInt16 DEFAULTLIGHTING;
Type
OdInt16
Initial value
1
Read-Only
No
Saved In
Nondatabase, Quasi variable
Versions
2007+

 

The DEFAULTLIGHTING variable is used for turning on and off default lighting instead of other lighting types. The value can be: 

 

Value
Description
0
Default lighting is turned off automatically when the other lights such as distant lights, point lights, spotlights, or the sun are turned on.
1
Only default lighting is turned on.

 

Access Methods
OdDbDatabase::getSysVar()
OdDbDatabase::setSysVar()

 

Access methods provide access to the value for the current viewport. Alternatively users can invoke direct access methods in their code depending on the type of database object:

OdAbstractViewPE::isDefaultLightingOn()
OdAbstractViewPE::setDefaultLightingOn()
OdDbAbstractViewTableRecord::isDefaultLightingOn()
OdDbAbstractViewTableRecord::setDefaultLightingOn()
OdDbViewport::isDefaultLightingOn()
OdDbViewport::setDefaultLightingOn()

 

File: QuasiVarDefs.h 

Module: API Reference 

Copyright © 2002-2022. Open Design Alliance All rights reserved.