API Reference > OdDb Classes > OdDbViewport Class > OdDbViewport Methods > OdDbViewport::subSetAttributes Method
OdDbViewport::subSetAttributes Method
Syntax
C++
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits* pTraits) const;
Parameters 
Description 
OdGiDrawableTraits* pTraits 
[in] Pointer to the OdGiDrawableTraits object to be set. 

Sets the values of this object's subentity traits, and returns with the calling object's subentity traits. 

 

When overriding subSetAttributes(), you must OR (|) the return value of ::subSetAttributes(pTraits) with any flags you add. 

A derived class may not remove flags for any reason. 

The default implementation does nothing but returns kDrawableNone. This function can be overridden in custom classes.

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