Close

Relief for ODA Team in Ukraine

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

 

The DEFAULTLIGHTINGTYPE variable is used for specifying the old or new default lighting type in a viewport. When the default lighting type is old, only one distant light is used. The new default lighting type allows for two distant lights and ambient light adjustments. The value can be: 

 

Value
Description
0
Old type of default lighting
1
New type of default lighting

 

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::defaultLightingType()
OdAbstractViewPE::setDefaultLightingType()
OdDbAbstractViewTableRecord::defaultLightingType()
OdDbAbstractViewTableRecord::setDefaultLightingType()
OdDbViewport::defaultLightingType()
OdDbViewport::setDefaultLightingType()

 

File: QuasiVarDefs.h 

Module: API Reference 

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