.. oe:namespace:: OEShape

.. meta::
   :keywords: OEShapeFunc, ShapeFunc


.. _OEShape_OEShapeFunc:

.. oe:class:: OEShapeFunc

   .. oe:api::


      class OEShapeFunc : public OEOverlapFuncBase

   The :ref:`OEShapeFunc <OEShape_OEShapeFunc>` is an abstract base class. This class defines
   an interface for shape overlap calculation between a reference object and a fit molecule. 
   The :ref:`OEShapeFunc <OEShape_OEShapeFunc>` is a specialization of The :ref:`OEOverlapFuncBase <OEShape_OEOverlapFuncBase>`
   for shape only overlap.

   .. _figure_OEShapeFunc_Hierarchy:

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

   The following methods are publicly inherited from :ref:`OEFunc0 <OEOpt_OEFunc0>`:
    * :oe:meth:`operator()<OEOpt::OEFunc0::operator()>`         
    * :oe:meth:`GetFComponents<OEOpt::OEFunc0::GetFComponents>` 
    * :oe:meth:`NumVar<OEOpt::OEFunc0::NumVar>`

   The following methods are publicly inherited from :ref:`OEFunc1 <OEOpt_OEFunc1>`:
    * :oe:meth:`operator()<OEOpt::OEFunc1::operator()>`
   
   The following methods are publicly inherited from :ref:`OEMolFunc <OEMolPotential_OEMolFunc>`:
    * :oe:meth:`GetInteractions<OEMolPotential::OEMolFunc::GetInteractions>`  
    * :oe:meth:`Setup<OEMolPotential::OEMolFunc::Setup>`

   The following methods are publicly inherited from :ref:`OEOverlapFuncBase <OEShape_OEOverlapFuncBase>`:
    * :oe:meth:`Overlap<OEShape::OEOverlapFuncBase::Overlap>` 
    * :oe:meth:`SetupFlex<OEShape::OEOverlapFuncBase::SetupFlex>`
    * :oe:meth:`SetupRef<OEShape::OEOverlapFuncBase::SetupRef>`

   The :ref:`OEShapeFunc <OEShape_OEShapeFunc>` class defines the following public methods:
    * :oe:meth:`GetShapeOptions<OEShape::OEShapeFunc::GetShapeOptions>`

   The following classes derive from this class:
    * :ref:`OEAnalyticShapeFunc <OEShape_OEAnalyticShapeFunc>`
    * :ref:`OEExactShapeFunc <OEShape_OEExactShapeFunc>`
    * :ref:`OEGridShapeFunc <OEShape_OEGridShapeFunc>`

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

      .. oe:api::

         OEShapeFunc & operator=(const OEShapeFunc & argFunc)

      Assignment operator.


   .. oe:method:: GetShapeOptions

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

         .. oe:api::

            const OEShapeOptions& GetShapeOptions() const

      .. oe:language:: python

         .. oe:api:: python

            GetShapeOptions() -> OEShapeOptions

      Returns a reference to the :ref:`OEShapeOptions <OEShape_OEShapeOptions>`
      instance as currently set for this :ref:`OEShapeFunc <OEShape_OEShapeFunc>`.
