A3DGlobalGetGraphStyleData

A3DStatus A3DGlobalGetGraphStyleData(const A3DUns32 uiIndexStyle, A3DGraphStyleData *pData)
A3DStatus A3DGlobalGetGraphStyleData(const A3DUns32 uiIndexStyle, A3DGraphStyleData* pData)

Retrieves an indexed graph style.

2.0

HOOPS stores styles in a global state using indexes. When given an index, you may call``A3DGlobalGetGraphStyleData``to fill in an``A3DGraphStyleData``instance.

//Retrievesthegraphstyleatindex3.Useinitializedstyleasdefault:
A3DGraphStyleDatastyle=A3D_MAKE_DATA(A3DGraphStyleData);
A3DStatusresult=A3DGlobalGetGraphStyleData(3,&style);
assert(result==A3D_SUCCESS);

Parameters

uiIndexStyle: The index of the style to retrieve data from

pData: The``A3DGraphRgbColorData``to fill in.

Returns

A3D_SUCCESSor an error code in case of failure.