.. oe:namespace:: OEDepict


.. meta::
   :keywords: OEMolDisplayBase, MolDisplayBase


.. _OEDepict_OEMolDisplayBase:

.. oe:class:: OEMolDisplayBase

   .. oe:api::

      class OEMolDisplayBase : public OESystem::OEBase

   The :ref:`OEMolDisplayBase <OEDepict_OEMolDisplayBase>` class is the abstract
   interface for representing molecule display information
   within **OEDepict TK**.
   See :ref:`Figure: OEDepict TK molecule display class hierarchy<figure_OEMolDisplayBase_Hierarchy>`.

   .. _figure_OEMolDisplayBase_Hierarchy:

   .. figure:: ../images/OEDisplayHierarchy.*
      :align:  center

      **OEDepict TK molecule display class hierarchy**

   .. seealso::

      * :ref:`OEAtomDisplayBase <OEDepict_OEAtomDisplayBase>` class
      * :ref:`OEBondDisplayBase <OEDepict_OEBondDisplayBase>` class

   The following classes derive from this class:
    * :ref:`OE2DMolDisplay <OEDepict_OE2DMolDisplay>`

   .. oe:method:: operator=
      :language: c++

      .. oe:api::

         OEMolDisplayBase & operator=(const OEMolDisplayBase &)

      Assignment operator.


   .. ################################################################
      # GetDataType
      ################################################################

   .. oe:method:: GetDataType

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

         .. oe:api::

            const void* GetDataType() const

      .. oe:language:: python

         .. oe:api:: python

            GetDataType() -> void

      This function is used to perform run-time type
      identification.

      .. seealso::

         * :oe:meth:`OESystem::OEBase::GetDataType` method in the **OEChem TK** manual


   .. ################################################################
      # GetMolecule
      ################################################################

   .. oe:method:: GetMolecule

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

         .. oe:api::

            const OEChem::OEMolBase* GetMolecule() const

      .. oe:language:: python

         .. oe:api:: python

            GetMolecule() -> OEGraphMol

      Returns the const pointer of the :ref:`OEMolBase <OEChem_OEMolBase>`
      object for which the display properties are stored in the class derived
      from the :ref:`OEMolDisplayBase <OEDepict_OEMolDisplayBase>` abstract class.


   .. ################################################################
      # IsDataType
      ################################################################

   .. oe:method:: IsDataType

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

         .. oe:api::

            bool IsDataType(const void *) const

      .. oe:language:: python

         .. oe:api:: python

            IsDataType(arg2: void) -> bool

      Returns whether type is the same as the instance this method is
      called on.

      .. seealso::

         * :oe:meth:`OESystem::OEBase::IsDataType` method in the **OEChem TK** manual
