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
f3eca858
Commit
f3eca858
authored
6 years ago
by
Gerardo Tauriello
Browse files
Options
Downloads
Patches
Plain Diff
Doc fix: enum is called ViewAddFlag not ViewAddFlags.
parent
c189a76d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/mol/base/doc/entity.rst
+18
-16
18 additions, 16 deletions
modules/mol/base/doc/entity.rst
modules/mol/base/src/entity_view.cc
+1
-1
1 addition, 1 deletion
modules/mol/base/src/entity_view.cc
with
19 additions
and
17 deletions
modules/mol/base/doc/entity.rst
+
18
−
16
View file @
f3eca858
...
...
@@ -1109,8 +1109,8 @@ The View Classes
:param chain_handle: The chain handle to be added.
:type chain_handle: :class:`ChainHandle`
:param view_add_flags: An ORed together combination of :class:`ViewAddFlag
s
`
:type view_add_flags: :class:`int` / :class:`ViewAddFlag
s
`
:param view_add_flags: An ORed together combination of :class:`ViewAddFlag`
:type view_add_flags: :class:`int` / :class:`ViewAddFlag`
:rtype: :class:`ChainView`
.. method:: AddResidue(residue_handle[, view_add_flags])
...
...
@@ -1118,12 +1118,12 @@ The View Classes
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
atoms. This behaviour can be modified by passing in an appropriate
combination of :class:`ViewAddFlag
s
`.
combination of :class:`ViewAddFlag`.
:param residue_handle: The residue handle to be added
:type residue_handle: :class:`ResidueHandle`
:param view_add_flags: An ORed together combination of :class:`ViewAddFlag
s
`
:type view_add_flags: :class:`int` / :class:`ViewAddFlag
s
`
:param view_add_flags: An ORed together combination of :class:`ViewAddFlag`
:type view_add_flags: :class:`int` / :class:`ViewAddFlag`
:rtype: :class:`ResidueView`
.. method:: AddAtom(atom_handle[, view_add_flags])
...
...
@@ -1133,8 +1133,8 @@ The View Classes
:param atom_handle: The atom handle
:type atom_handle: :class:`AtomHandle`
:param view_add_flags: An ORed together combination of :class:`ViewAddFlag
s
`
:type view_add_flags: :class:`int` / :class:`ViewAddFlag
s
`
:param view_add_flags: An ORed together combination of :class:`ViewAddFlag`
:type view_add_flags: :class:`int` / :class:`ViewAddFlag`
:rtype: :class:`AtomView`
.. method:: AddBond(bond_handle)
...
...
@@ -1449,8 +1449,8 @@ The View Classes
:param atom_handle: The atom to be added
:type atom_handle: :class:`AtomHandle`
:param view_add_flags: An ORed together combination of :class:`ViewAddFlag
s
`
:type view_add_flags: :class:`int` / :class:`ViewAddFlag
s
`
:param view_add_flags: An ORed together combination of :class:`ViewAddFlag`
:type view_add_flags: :class:`int` / :class:`ViewAddFlag`
:rtype: :class:`AtomView`
.. method:: AddResidue(residue_handle[, view_add_flags])
...
...
@@ -1458,12 +1458,12 @@ The View Classes
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. To change the behavior, pass in a suitable combination of
:class:`ViewAddFlag
s
`.
:class:`ViewAddFlag`.
:param residue_handle: The residue handle to be added.
:type residue_handle: :class:`ResidueHandle`
:param view_add_flags: An ORed together combination of :class:`ViewAddFlag
s
`
:type view_add_flags: :class:`int` / :class:`ViewAddFlag
s
`
:param view_add_flags: An ORed together combination of :class:`ViewAddFlag`
:type view_add_flags: :class:`int` / :class:`ViewAddFlag`
:rtype: :class:`ResidueView`
.. method:: FindAtom(res_num, atom_name)
...
...
@@ -1714,8 +1714,8 @@ The View Classes
:param atom_handle: Atom handle to be added
:type atom_handle: :class:`AtomHandle`
:param flags: An ORed together combination of :class:`ViewAddFlag
s
`
:type flags: :class:`int` / :class:`ViewAddFlag
s
`
:param flags: An ORed together combination of :class:`ViewAddFlag`
:type flags: :class:`int` / :class:`ViewAddFlag`
:rtype: :class:`AtomView`
.. method:: GetCenterOfAtoms()
...
...
@@ -1943,10 +1943,10 @@ here.
:returns: :class:`str`
ViewAddFlag
s
ViewAddFlag
--------------------------------------------------------------------------------
.. class:: ViewAddFlag
s
.. class:: ViewAddFlag
Defines flags controlling behaviour of routines adding handles to views:
...
...
@@ -1958,6 +1958,8 @@ ViewAddFlags
* ``CHECK_DUPLICATES`` - If set, it will be checked that no duplicates are
created when adding a new handle
Flags can be ORed to combine them.
SecStructure
--------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
modules/mol/base/src/entity_view.cc
+
1
−
1
View file @
f3eca858
...
...
@@ -322,7 +322,7 @@ EntityView EntityView::Select(const Query& query, QueryFlags flags) const
tribool
c
=
qs
.
EvalChain
(
src_chain
.
Impl
());
if
(
c
==
true
)
{
// add everything , i.e. all residues and atoms of this chain.
// We can't use AddChain(chain,
Add
ViewFlag
s
::INCLUDE_ALL) since we need
// We can't use AddChain(chain, View
Add
Flag::INCLUDE_ALL) since we need
// to keep track of all atoms added to get the bonds right.
ChainView
dst_chain
=
view
.
AddChain
(
src_chain
.
GetHandle
());
const
ResidueViewList
&
residues
=
src_chain
.
GetResidueList
();
...
...
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