API Reference > OdDb Classes > OdDbEntity Class > OdDbEntity Methods > OdDbEntity::setTransparency Method
OdDbEntity::setTransparency Method
Syntax
C++
virtual OdResult setTransparency(const OdCmTransparency& transparency, bool doSubents = true);
Parameters 
Description 
const OdCmTransparency& transparency 
[in] OdCmTransparency object be assigned.  
bool doSubents = true 
[in] If and only if true, applies the change to all sub-entities owned by this entity. 

Returns eOk if successful, or an appropriate error code if not. 

If you override this function, you must call OdDbEntity::setTransparency(), passing to it the calling arguments.

Sets the transparency setting of this entity, and returns eOk if successful. 

 

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