Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
70d0b9d1
Commit
70d0b9d1
authored
12 years ago
by
Bienchen
Browse files
Options
Downloads
Patches
Plain Diff
Added description for VewAddFlags (BZDNG-BZDNG-285)
parent
d60398e7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/mol/base/doc/entity.rst
+35
-13
35 additions, 13 deletions
modules/mol/base/doc/entity.rst
with
35 additions
and
13 deletions
modules/mol/base/doc/entity.rst
+
35
−
13
View file @
70d0b9d1
...
@@ -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
V
iew
A
dd
F
lags
:param view_add_flags: An ORed together combination of
:ref:`v
iew
a
dd
f
lags
`
: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
V
iew
A
dd
F
lags
:param view_add_flags: An ORed together combination of
:ref:`v
iew
a
dd
f
lags
`
: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
V
iew
A
dd
F
lags
.
:param flags: An ORed together combination of
:ref:`v
iew
a
dd
f
lags
`
: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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment