.. oe:namespace:: OEDepict


.. meta::
   :keywords: OEDisplayAtomIdx, DisplayAtomIdx


.. _OEDepict_OEDisplayAtomIdx:

.. oe:class:: OEDisplayAtomIdx

   .. oe:api::

      class OEDisplayAtomIdx : public OEDisplayAtomPropBase

   This class represents :ref:`OEDisplayAtomIdx <OEDepict_OEDisplayAtomIdx>` atom property label
   functor.

   .. seealso::

      * :oe:meth:`OEDepict::OE2DMolDisplayOptions::SetAtomPropertyFunctor` method
      * :ref:`OEDisplayAtomMapIdx <OEDepict_OEDisplayAtomMapIdx>` class
      * :ref:`OEDisplayNoAtomProp <OEDepict_OEDisplayNoAtomProp>` class
      * :oe:src:`Listing 5<SNIPPET-ATOM-PROP-INDEX-AtomPropIndex>` example in the
        :ref:`chapter_mol_display` chapter

   The following methods are publicly inherited from :ref:`OEDisplayAtomPropBase <OEDepict_OEDisplayAtomPropBase>`:

   ================================================================== ==================================================================
   :oe:meth:`CreateCopy<OEDepict::OEDisplayAtomPropBase::CreateCopy>` :oe:meth:`operator()<OEDepict::OEDisplayAtomPropBase::operator()>`
   ================================================================== ==================================================================

   .. ################################################################
      # Constructors
      ################################################################

   .. oe:method:: Constructors

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

         .. oe:api::

            OEDisplayAtomIdx()

      .. oe:language:: python

         .. oe:api:: python

            OEDisplayAtomIdx() -> OEDisplayAtomIdx

      Default constructor.


   .. ################################################################
      # operator()
      ################################################################

   .. oe:method:: operator()

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

         .. oe:api::

            std::string operator()(const OEChem::OEAtomBase& atom) const

      .. oe:language:: python

         .. oe:api:: python

            __call__(atom: OEAtomBase) -> str

      Returns the string representation of the index of the atom
      (*i.e.* the number returned by the :oe:meth:`OEChem::OEAtomBase::GetIdx`
      method).


   .. ################################################################
      # CreateCopy
      ################################################################

   .. oe:method:: CreateCopy

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

         .. oe:api::

            base_type* CreateCopy() const

      .. oe:language:: python

         .. oe:api:: python

            CreateCopy() -> OEDisplayAtomPropBase

      Deep copy constructor that returns a copy of the object.
      The memory for the returned :ref:`OEDisplayAtomIdx <OEDepict_OEDisplayAtomIdx>`
      object is dynamically allocated and owned by the caller.
