.. oe:namespace:: OEGrapheme



.. meta::
   :keywords: OERailroadTrackArcFxn, RailroadTrackArcFxn


.. _OEGrapheme_OERailroadTrackArcFxn:

.. oe:class:: OERailroadTrackArcFxn

   .. oe:api::

      class OERailroadTrackArcFxn : public OESurfaceArcFxnBase

   This class represents :ref:`OERailroadTrackArcFxn <OEGrapheme_OERailroadTrackArcFxn>`.
   See example in :ref:`Example of drawing molecule surface using OERailroadTrackArcFxn<figure_OERailroadTrackArcFxn>`.

   .. _figure_OERailroadTrackArcFxn:

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

      **Example of drawing molecule surface using OERailroadTrackArcFxn**  

   .. seealso::

      * :oe:func:`OEGrapheme::OEDrawRailroadTrackSurfaceArc` function
      * :oe:func:`OEGrapheme::OESetSurfaceArcFxn` function
      * :oe:func:`OEGrapheme::OEDraw2DSurface` function

   The following methods are publicly inherited from :ref:`OESurfaceArcFxnBase <OEGrapheme_OESurfaceArcFxnBase>`:

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

   .. ################################################################
      #
      ################################################################

   .. oe:method:: Constructors

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

         .. oe:api::

            OERailroadTrackArcFxn(const OEDepict::OEPen& pen = OEDepict::OEBlackPen)

      .. oe:language:: python

         .. oe:api:: python

            OERailroadTrackArcFxn(pen: OEPen = OEBlackPen) -> OERailroadTrackArcFxn

      Default constructor.

      *pen*
         The graphical properties of the arc.


   .. ################################################################
      #
      ################################################################

   .. oe:method:: operator()

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

         .. oe:api::

            bool operator()(OEDepict::OEImageBase& image, const OESurfaceArc& arc) const

      .. oe:language:: python

         .. oe:api:: python

            __call__(image: OEImageBase, arc: OESurfaceArc) -> bool

      Draws a surface arc with the
      :oe:const:`OEGrapheme::OESurfaceArcStyle::RailroadTrack` style.

      See example in :ref:`Example of drawing molecule surface using OERailroadTrackArcFxn<figure_OERailroadTrackArcFxn>`.

      *image*
         The image on which the surface arc is drawn.

      *arc*
         The object that stores the parameters of the surface arc.

      .. seealso::

         * :ref:`OESurfaceArc <OEGrapheme_OESurfaceArc>` class


   .. ################################################################
      #
      ################################################################

   .. oe:method:: CreateCopy

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

         .. oe:api::

            OESurfaceArcFxnBase* CreateCopy() const

      .. oe:language:: python

         .. oe:api:: python

            CreateCopy() -> OERailroadTrackArcFxn

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