A3DRootBaseSet
-
A3DStatus
A3DRootBaseSet(A3DRootBase *pRootBase, const A3DRootBaseData *pData) Adds an
A3DRootBaseDatastructure to an existing PRC entity.According to what is defined in the parameter pData, the A3DEntity will be updated.
If
A3DRootBaseData::m_pcNameis initialized, the entity will be renamed.Persistent and non-persistent id’s are systematically replaced.
The array
A3DRootBaseData::m_ppAttributeswill be appended to the current attribute array of the Entity. To manipulate just the Entity attributes, please use the following functions:A3DRootBaseAttributeRemoveAll(),A3DRootBaseAttributeRemove(),A3DRootBaseAttributeRemoveAt(),A3DRootBaseAttributeAppend(),A3DRootBaseAttributeAdd().2.0
Return Values
A3D_INVALID_DATA_STRUCT_SIZE:
A3D_INVALID_DATA_STRUCT_NULL:
A3D_SUCCESS:
A3DRootBaseis an abstract class and cannot be directly created; however, any entity created with a function of the formA3DEntity_nameCreateresults in the creation of a PRC entity of typeA3DRootBaseand of typeA3DEntity_name.Returns
A3D_SUCCESSon success, or an error code on failure