.. oe:namespace:: OEShape

.. meta::
   :keywords: OEGridShapeFunc, GridShapeFunc


.. _OEShape_OEGridShapeFunc:

.. oe:class:: OEGridShapeFunc

   .. oe:api::

      class OEGridShapeFunc : public OEShapeFunc

   The :ref:`OEGridShapeFunc <OEShape_OEGridShapeFunc>` class defines shape overlap between a reference
   object and a fit molecule, using the *Grid* method.

   .. _figure_OEGridShapeFunc_Hierarchy:

   .. figure:: ../images/OEGridShapeFunc.*
      :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 following methods are publicly inherited from :ref:`OEShapeFunc <OEShape_OEShapeFunc>`:
    * :oe:meth:`GetShapeOptions<OEShape::OEShapeFunc::GetShapeOptions>`

   The :ref:`OEGridShapeFunc <OEShape_OEGridShapeFunc>` class defines the following public methods:
    * :oe:meth:`GetGridOptions<OEShape::OEGridShapeFunc::GetGridOptions>`

   .. oe:method:: Constructors

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

         .. oe:api::

            OEGridShapeFunc(const OEShapeOptions& argOptions = OEShapeOptions())
            OEGridShapeFunc(const OEShapeGridOptions&)
            OEGridShapeFunc(const OEShapeOptions& argShape,
                            const OEShapeGridOptions& argGrid)
            OEGridShapeFunc(const OEGridShapeFunc&)

      .. oe:language:: python

         .. oe:api:: python

            OEGridShapeFunc(argOptions: OEShapeOptions = OEShapeOptions()) -> OEGridShapeFunc
            OEGridShapeFunc(argOptions: OEShapeGridOptions) -> OEGridShapeFunc
            OEGridShapeFunc(argShape: OEShapeOptions,
                            argGrid: OEShapeGridOptions) -> OEGridShapeFunc
            OEGridShapeFunc(argFunc: OEGridShapeFunc) -> OEGridShapeFunc

      Default and copy constructors.

      Constructs an :ref:`OEGridShapeFunc <OEShape_OEGridShapeFunc>` instance using the specified set of parameters.

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

      .. oe:api::

         OEGridShapeFunc &operator=(const OEGridShapeFunc &)

      The assignment operator.

      Assignment operator.


   .. oe:method:: GetGridOptions

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

         .. oe:api::

            const OEShapeGridOptions& GetGridOptions() const

      .. oe:language:: python

         .. oe:api:: python

            GetGridOptions() -> OEShapeGridOptions

      Returns a reference to the :ref:`OEShapeGridOptions <OEShape_OEShapeGridOptions>`
      instance as currently set for this :ref:`OEGridShapeFunc <OEShape_OEGridShapeFunc>`.
