
##########################
A3DGlobalGetGraphStyleData
##########################

.. c:function:: A3DStatus A3DGlobalGetGraphStyleData(const A3DUns32 uiIndexStyle, A3DGraphStyleData *pData)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DGlobalGetGraphStyleData(*const* :c:type:`~A3DUns32` **uiIndexStyle**\ , :c:struct:`~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.
   
   .. code-block:: c
   
      // Retrieves the graph style at index 3. Use initialized style as default:
      A3DGraphStyleData style = A3D_MAKE_DATA(A3DGraphStyleData);
      A3DStatus result = A3DGlobalGetGraphStyleData(3, &style);
      assert(result == A3D_SUCCESS);
   
   **Return Values**
   
   
      **A3D_SUCCESS**\ : in case of success.
   
      **A3D_INITIALIZE_NOT_CALLED**\ : if the library is not initialized
   
      **A3D_INVALID_STYLE_INDEX**\ : if the style index does not match any color code.
   
      **A3D_INVALID_DATA_STRUCT_NULL**\ : if ``pData`` is null.
   
      **A3D_INVALID_DATA_STRUCT_SIZE**\ : if ``pData`` is incorrectly initialized
   
   
   
      ``A3DGlobalInsertGraphStyle``
   
   
   
      ``A3DGraphStyleData``
   
   
   **Parameters**
   
   
      **uiIndexStyle**\ : The index of the style to retrieve data from
   
      **pData**\ : The ``A3DGraphRgbColorData`` to fill in.
   
   
   **Returns**
   
   
      ``A3D_SUCCESS`` or an error code in case of failure.
   
   




