.. oe:namespace:: OEDocking


.. meta::
   :keywords: OEProteinConstraint, ProteinConstraint


.. _OEDocking_OEProteinConstraint:

.. oe:class:: OEProteinConstraint

   .. oe:api::

      class OEProteinConstraint

   This class holds information about a single receptor protein constraint.

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

      .. oe:api::

         OEProteinConstraint & operator=(const OEProteinConstraint &)

      Assignment operator.


   .. oe:method:: GetAtom

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

         .. oe:api::

            OEChem::OEAtomBase* GetAtom() const

      .. oe:language:: python

         .. oe:api:: python

            GetAtom() -> OEAtomBase

      Hold the protein atom of the receptor the constraint is associated with.

   .. oe:method:: GetType

      .. oe:api::

         unsigned int GetType() const

      Type for the constraint (see :oe:constns:`OEDocking::OEProteinConstraintType`).

   .. oe:method:: GetEnabled

      .. oe:api::

         bool GetEnabled() const

      Returns true if the constraint is enabled and false otherwise.

   .. oe:method:: GetName

      .. oe:api::

         std::string GetName() const

      Returns the name of the constraint.

   .. oe:method:: SetAtom

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

         .. oe:api::

            void SetAtom(OEChem::OEAtomBase* atom)

      .. oe:language:: python

         .. oe:api:: python

            SetAtom(atom: OEAtomBase) -> None

      Sets the atom of the receptor the constraint will be associated with.

   .. oe:method:: SetType

      .. oe:api::

         void SetType(unsigned int type)

      Sets the constraint type (see :oe:constns:`OEDocking::OEProteinConstraintType`).

   .. oe:method:: SetName

      .. oe:api::

         void SetEnabled(bool enabled)

      Sets the name of the constraint.

   .. oe:method:: SetEnabled

      .. oe:api::

         void SetName(std::string name)

      Sets the enabled flag of the constraint.

