API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Entity Functions > IG_vect_ent_get_attrib |
The function returns a pointer to the optional attribute specified by the parameter nAttrib.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_vect_ent_get_attrib( HIG_VECT_ENTITY hEntity, enumIGVectAttrib nAttrib, VOID** lplpAttribPtr ); |
Name | Type | Description |
---|---|---|
hEntity | HIG_VECT_ENTITY | Handle to the Entity. |
nAttrib | enumIGVectAttrib | The constant specifying which attribute should be returned. |
lpAttribPtr | VOID** | Buffer that receives a pointer or handle to the attribute. Buffer type depends on the nAttrib parameter. |
The attribute type is associated with the buffer type as follows:
Attribute Type | Buffer Type |
---|---|
IG_VECT_ENT_ATTR_DRAWCOLOR | IGVectColorEx* |
IG_VECT_ENT_ATTR_FILLCOLOR | IGVectColorEx* |
IG_VECT_ENT_ATTR_LINETYPEINDEX | long* |
IG_VECT_ENT_ATTR_THICKNESS | float* |
IG_VECT_ENT_ATTR_FILLTYPEINDEX | long* |
IG_VECT_ENT_ATTR_OFFSET | IGPoint3D* |
IG_VECT_ENT_ATTR_ROTATION | HIG_VECT_ROTATION |
IG_VECT_ENT_ATTR_SCALE | IGPoint3D* |
IG_VECT_ENT_ATTR_POSITION | IGPoint3D* |
Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.
This function does not process image pixels.
None