API Reference > OdDg Classes > OdGiContextForDgDatabase Class > OdGiContextForDgDatabase Methods > OdGiContextForDgDatabase::getTrueColor Method
OdGiContextForDgDatabase::getTrueColor Method
Syntax
C++
virtual bool getTrueColor(OdUInt32 colorIndex, OdDgCmEntityColor& trueColor, OdDgLevelTableRecordPtr level, const OdGiAuxDataForDgDatabasePtr& pAuxData, bool bAllowForLevelOverrides = true, const OdDgDatabase* pDb = NULL) const;

Some tools to apply the common rules of DGN about overrides for symbologies (color, weight, style). Initially, it could operate with:

  1. kColorByLevel, etc - if set, a property should be taken from level (default properties)
  2. 'overrideByLevel' flag of views (OdDgView) - if set and an appropriate flag of the level is set (for example, 'override colors'), then this property is taken from level (overrided properties)
 

Notes:

  1. All methods return false if a property can not be evaluated
  2. The level could be zero, that leads to 'can not be evaluated' if the level is required
  3. If this context does not have 'view' property initialized, its features are not used (of course)
  4. Sometimes Level Override should be ignored. For instance, If Text has background it should use a native background color value not override. Don't apply override in this case. 'bAllowForLevelOverrides' flag should handle just such kind of cases.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.