.. oe:namespace:: OEDocking


.. meta::
   :keywords: OECustomConstraints, CustomConstraints


.. _OEDocking_OECustomConstraints:

.. oe:class:: OECustomConstraints

   .. oe:api::

      class OECustomConstraints

   :ref:`OECustomConstraints <OEDocking_OECustomConstraints>` holds a set of custom docking
   constraints used by :ref:`OEDock <OEDocking_OEDock>`.  Each custom constraint is defined by an
   :ref:`OEFeature <OEDocking_OEFeature>` contained by this class.
   
   To use the constraints specified by an
   :ref:`OECustomConstraints <OEDocking_OECustomConstraints>` object the object must be
   passed to the receptor with
   :oe:func:`OEDocking::OEReceptorSetCustomConstraints` prior to calling the
   :oe:meth:`OEDocking::OEDock::Initialize` method of
   :ref:`OEDock <OEDocking_OEDock>`.

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

         .. oe:api::

            OECustomConstraints()

      .. oe:language:: python

         .. oe:api:: python

            OECustomConstraints() -> OECustomConstraints

      Default constructor.  Object contains no features in the default constructed state.    

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

         .. oe:api::

            OECustomConstraints(const OECustomConstraints& )

      .. oe:language:: python

         .. oe:api:: python

            OECustomConstraints(arg2: OECustomConstraints) -> OECustomConstraints
            OECustomConstraints(constr: OEReceptorCustomConstraints) -> OECustomConstraints

      Copy Constructor.

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

         OECustomConstraints& operator=(const OECustomConstraints&)

      Assignment operator.
      
   .. include:: OECustomConstraintsImplMethods.rstinc

