Skip to content
Snippets Groups Projects
Commit 70d0b9d1 authored by Bienchen's avatar Bienchen
Browse files

Added description for VewAddFlags (BZDNG-BZDNG-285)

parent d60398e7
No related branches found
No related tags found
No related merge requests found
...@@ -880,10 +880,10 @@ The View Classes ...@@ -880,10 +880,10 @@ The View Classes
v = pdb.CreateEmptyView() v = pdb.CreateEmptyView()
v.AddChain(pdb.chains[0], ost.mol.INCLUDE_ALL) v.AddChain(pdb.chains[0], ost.mol.INCLUDE_ALL)
:param chain_handle: :param chain_handle: The chain handle to be added.
:type chain_handle: ChainHandle :type chain_handle: :class:`ChainHandle`
:param view_add_flags: An ORed together combination of `view_add_flags`. :param view_add_flags: An ORed together combination of :ref:`viewaddflags`.
:type view_add_flags: :class:`int` :type view_add_flags: :class:`int`
:rtype: :class:`ChainView` :rtype: :class:`ChainView`
.. method:: AddResidue(residue_handle[, view_add_flags]) .. method:: AddResidue(residue_handle[, view_add_flags])
...@@ -891,11 +891,11 @@ The View Classes ...@@ -891,11 +891,11 @@ The View Classes
Add residue to view. If the residue's chain is not already part of the Add residue to view. If the residue's chain is not already part of the
view, it will be added. By default, only the residue is added, but not its view, it will be added. By default, only the residue is added, but not its
atoms. This behaviour can be modified by passing in an appropriate atoms. This behaviour can be modified by passing in an appropriate
combination of `view_add_flags`. combination of :ref:`viewaddflags`.
:param residue_handle: The residue handle to be added :param residue_handle: The residue handle to be added
:type residue_handle: :class:`ResidueHandle` :type residue_handle: :class:`ResidueHandle`
:param view_add_flags: An ORed together combination of `view_add_flags` :param view_add_flags: An ORed together combination of :ref:`viewaddflags`
:type view_add_flags: :class:`int` :type view_add_flags: :class:`int`
:rtype: :class:`ResidueView` :rtype: :class:`ResidueView`
...@@ -906,7 +906,7 @@ The View Classes ...@@ -906,7 +906,7 @@ The View Classes
:param atom_handle: The atom handle :param atom_handle: The atom handle
:type atom_handle: :class:`AtomHandle` :type atom_handle: :class:`AtomHandle`
:param view_add_flags: An ORed together combination of ViewAddFlags :param view_add_flags: An ORed together combination of :ref:`viewaddflags`
:type view_add_flags: :class:`int` :type view_add_flags: :class:`int`
:rtype: :class:`AtomView` :rtype: :class:`AtomView`
...@@ -1229,19 +1229,20 @@ The View Classes ...@@ -1229,19 +1229,20 @@ The View Classes
:param atom_handle: The atom to be added :param atom_handle: The atom to be added
:type atom_handle: :class:`AtomHandle` :type atom_handle: :class:`AtomHandle`
:param view_add_flags: An ORed together combination of ViewAddFlags :param view_add_flags: An ORed together combination of :ref:`viewaddflags`
:type view_add_flags: :class:`int` :type view_add_flags: :class:`int`
:rtype: :class:`AtomView` :rtype: :class:`AtomView`
.. method:: AddResidue(residue_handle[, view_add_flags]) .. method:: AddResidue(residue_handle[, view_add_flags])
Add residue to the view. If the atom does not belong to chain, the result is Add residue to the view. If the atom does not belong to chain, the result is
undefined. By default, only the residue, but no atoms are added to the view. undefined. By default, only the residue, but no atoms are added to the
To change the behavior, pass in a suitable combination of `view_add_flags`. view. To change the behavior, pass in a suitable combination of
:ref:`viewaddflags`.
:param residue_handle: The residue handle to be added. :param residue_handle: The residue handle to be added.
:type residue_handle: :class:`ResidueHandle` :type residue_handle: :class:`ResidueHandle`
:param view_add_flags: An ORed together combination of `view_add_flags` :param view_add_flags: An ORed together combination of :ref:`viewaddflags`
:type view_add_flags: :class:`int` :type view_add_flags: :class:`int`
:rtype: :class:`ResidueView` :rtype: :class:`ResidueView`
...@@ -1479,9 +1480,9 @@ The View Classes ...@@ -1479,9 +1480,9 @@ The View Classes
Add atom to the view. Add atom to the view.
:param atom_handle: :param atom_handle: Atom handle to be added
:type atom_handle: :class:`AtomHandle` :type atom_handle: :class:`AtomHandle`
:param flags: An ORed together combination of ViewAddFlags. :param flags: An ORed together combination of :ref:`viewaddflags`
:type flags: :class:`int` :type flags: :class:`int`
:rtype: :class:`AtomView` :rtype: :class:`AtomView`
...@@ -1633,3 +1634,24 @@ ChainType functions ...@@ -1633,3 +1634,24 @@ ChainType functions
:raises: :class:`runtime_error` if **type** is unrecognised. :raises: :class:`runtime_error` if **type** is unrecognised.
:returns: :class:`str` :returns: :class:`str`
.. _viewaddflags:
ViewAddFlags
--------------------------------------------------------------------------------
Those are the flags controlling behaviour of routines adding handles to views.
* ``INCLUDE_ATOMS`` - Include all atoms when adding a residue handle to a view
* ``INCLUDE_RESIDUES`` - Include all residues when adding a chain to a view
* ``INCLUDE_CHAINS`` - Include all chains when creating a new entity view
* ``INCLUDE_ALL`` = ``INCLUDE_ATOMS`` | ``INCLUDE_RESIDUES`` |
``INCLUDE_CHAINS`` - Convenience flags to include all substructures
* ``CHECK_DUPLICATES`` - If set, it will be checked that no duplicates are
created when adding a new handle
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment