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
16ec8a9f
Commit
16ec8a9f
authored
14 years ago
by
Marco Biasini
Browse files
Options
Downloads
Patches
Plain Diff
more docs for gfx.Entity
parent
a34ac6fc
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/gfx/doc/entity.rst
+33
-9
33 additions, 9 deletions
modules/gfx/doc/entity.rst
with
33 additions
and
9 deletions
modules/gfx/doc/entity.rst
+
33
−
9
View file @
16ec8a9f
...
...
@@ -125,7 +125,14 @@ Entity API Reference
Graphical representation of entitites.
:param name: Name of the entity
:type name: str
:param render_mode: One of the :ref:`render-mode`.
Defaults to :obj:`SIMPLE`.
:param entity: The entity. Only atoms and bonds that part part of the entity
view (or handle) are rendered.
:type entity: :class:`~ost.mol.EntityView`, or :class:`~ost.mol.EntityHandle`
.. attribute:: name
The name of the entity. Read-only. Also available as :meth:`GetName`
...
...
@@ -134,7 +141,14 @@ Entity API Reference
.. attribute:: selection
The selection of the entity is rendered with a green halo.
The selection of the entity is rendered with a green halo. As a shortcut,
the property an also be set as a string. The following two statements are
identical:
.. code-block:: python
go.selection=query
go.selection=go.view.Select(query)
:type: :class:`~ost.mol.EntityView`
...
...
@@ -144,13 +158,6 @@ Entity API Reference
:type: :class:`~ost.geom.Vec3`
:param name: Name of the entity
:type name: str
:param render_mode: One of the :ref:`render-mode`.
Defaults to :obj:`SIMPLE`.
:param entity: The entity. Only atoms and bonds that part part of the entity
view (or handle) are rendered.
:type entity: :class:`~ost.mol.EntityView`, or :class:`~ost.mol.EntityHandle`
.. method:: SetRenderMode(render_mode)
SetRenderMode(render_mode, view, keep=False)
...
...
@@ -212,3 +219,20 @@ Entity API Reference
:param hint: When `prop` refers to a generic property, hint must be set to
the hierarchy level at which the property is defined.
:type hint: str
.. method:: UpdatePositions()
Tells the graphical entity to update its vertex arrays. Use this functions
when you modified coordinates of the underlying
:class:`~ost.mol.EntityHandle` and would like to see the changes on the
screen.
:see: :meth:`UpdateViews`
.. method:: UpdateView()
Tells the graphical object to recalculate all views and vertex arrays. Use
this function when you added new chains, residues, atoms or bonds to the
entity and would like to see the changes on the screen.
:see: :meth:`UpdatePositions`
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