.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEGrapheme

.. oe:class:: OEMonomerColorDefault

   .. attention::

      |PRELIMINARY-API|

   .. oe:api::

      class OEMonomerColorDefault : public OEMonomerColorBase

   The :oe:cls:`OEGrapheme::OEMonomerColorDefault` class is used 
   to assign colors to monomers for depiction.

   The following methods are publicly inherited from :oe:cls:`OEGrapheme::OEMonomerColorBase`:

   ================================================================== ======================================================================
   :oe:meth:`CreateCopy<OEGrapheme::OEMonomerColorBase::CreateCopy>`  :oe:meth:`operator()<OEGrapheme::OEMonomerColorBase::operator()>`
   ================================================================== ======================================================================

   .. oe:method:: Constructors

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

         .. oe:api::

            OEMonomerColorDefault()

      .. oe:language:: python

         .. oe:api:: python

            OEMonomerColorDefault() -> OEMonomerColorDefault

      Default constructor.

   .. oe:method:: operator()

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

         .. oe:api::

            OESystem::OEColor operator()(const OEChem::OEMonomerData &) const

      .. oe:language:: python

         .. oe:api:: python

            __call__(arg2: OEMonomerData) -> OEColor

      Returns the color assigned to a specific monomer (:oe:cls:`OEChem::OEMonomerData`). 
      Standard amino acids are colored by their properties (containing sulphur, aliphatic, aromatic, acidic,  basic, hydroxylic, amidic).
      :oe:const:`OEBlack<OESystem::OESystem::OEBlack>` is returned for all other monomers.

   .. oe:method:: CreateCopy

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

         .. oe:api::

            base_type* CreateCopy() const

      .. oe:language:: python

         .. oe:api:: python

            CreateCopy() -> OEMonomerColorBase

      Deep copy constructor that returns a copy of the object.
      The memory for the returned :oe:cls:`OEGrapheme::OEMonomerColorDefault`
      object is dynamically allocated and owned by the caller.
