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

kDrawableNone.

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–2021. Open Design Alliance. All rights reserved.