.. oe:namespace:: OEDepict


.. meta::
   :keywords: OEBondDisplayBase, BondDisplayBase


.. _OEDepict_OEBondDisplayBase:

.. oe:class:: OEBondDisplayBase

   .. oe:api::

      class OEBondDisplayBase : public OESystem::OEBase

   The :ref:`OEBondDisplayBase <OEDepict_OEBondDisplayBase>` class is the abstract
   interface for representing bond display information 
   within **OEDepict TK**.
   See :ref:`Figure: OEDepict TK bond display class hierarchy<figure_OEBondDisplayBase_Hierarchy>`.

   .. _figure_OEBondDisplayBase_Hierarchy:

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

      **OEDepict TK bond display class hierarchy**

   The following classes derive from this class:
    * :ref:`OE2DBondDisplay <OEDepict_OE2DBondDisplay>`

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

      .. oe:api::

         OEBondDisplayBase & operator=(const OEBondDisplayBase &)

      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


   .. ################################################################
      # GetBond
      ################################################################

   .. oe:method:: GetBond

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

         .. oe:api::

            const OEChem::OEBondBase* GetBond() const

      .. oe:language:: python

         .. oe:api:: python

            GetBond() -> OEBondBase

      Returns the const pointer of the :ref:`OEBondBase <OEChem_OEBondBase>`
      object for which display properties are stored in the class derived
      from the :ref:`OEBondDisplayBase <OEDepict_OEBondDisplayBase>` 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


   .. ################################################################
      # IsVisible
      ################################################################

   .. oe:method:: IsVisible

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

         .. oe:api::

            bool IsVisible() const

      .. oe:language:: python

         .. oe:api:: python

            IsVisible() -> bool

      Returns whether or not the bond is depicted (*i.e.* visible).


   .. ################################################################
      # SetVisible
      ################################################################

   .. oe:method:: SetVisible

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

         .. oe:api::

            void SetVisible(bool visible)

      .. oe:language:: python

         .. oe:api:: python

            SetVisible(visible: bool) -> None

      Sets the visibility of a bond.

