.. include:: ../substitutions
.. include:: ../../common/cookbook/cookbook-hyperlinks
.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEGrapheme

.. oe:function:: OERenderActiveSiteMaps

   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OERenderActiveSiteMaps(OEDepict::OEImageBase& image,
                                     const OEBio::OEInteractionHintContainer& asite)

   .. oe:language:: python

      .. oe:api:: python

         OERenderActiveSiteMaps(image: OEImageBase,
                                asite: OEInteractionHintContainer) -> bool


   Renders four protein-ligand maps (interaction, unpaired, b-factor and contact) into
   separate tabs of an image.

   *image*
      The image in which the active site is drawn.

   *asite*
      The :ref:`OEInteractionHintContainer <OEBio_OEInteractionHintContainer>` object that holds the
      data for the active site.

   .. note::

      This functionality is **only available** for :file:`.svg`
      image format.

   **Example:**

   .. oe:source:: RenderActiveSiteMaps.py
      :language: python
      :noindent:
      :frag:     SNIPPET-RENDER-ACTIVESITE-MAPS

   .. oe:source:: RenderActiveSiteMaps.cpp
      :language: c++
      :noindent:
      :frag:     SNIPPET-RENDER-ACTIVESITE-MAPS

   .. oe:source:: RenderActiveSiteMaps.java
      :language: java
      :noindent:
      :frag:     SNIPPET-RENDER-ACTIVESITE-MAPS

   .. oe:source:: RenderActiveSiteMaps.cs
      :language: csharp
      :noindent:
      :frag:     SNIPPET-RENDER-ACTIVESITE-MAPS

  .. _figure_RenderActiveSiteMaps:

     .. only:: oehtml

        .. raw:: html

           <p align="center">
           <object data="../../_images/RenderActiveSiteMaps.svg" type="image/svg+xml"  width = "600" ></object>
           <p>

           <p align="center">
           <b>Example of using the OERenderActiveSiteMaps function</b>
           <p>

        .. image:: ../images/RenderActiveSiteMaps.svg
           :width: 1pt

   .. only:: oepdf

      |NOPDFIMAGE|

   .. seealso::

      * :oe:func:`OEGrapheme::OERenderActiveSite` function
      * :oe:func:`OEGrapheme::OERenderBFactorMap` function
      * :oe:func:`OEGrapheme::OERenderContactMap` function
      * :oe:func:`OEGrapheme::OERenderUnpairedInteractionMap` function

   .. admonition:: Code Example

      * `Visualizing Protein-Ligand Maps`_ **OpenEye Python Cookbook** recipe
