Trees | Indices | Help |
|
---|
|
object --+ | Surface
A Pythonic wrapping for mmsurf surfaces retrieved from a project. Surface objects are typically accessed via the schrodinger.project.ProjectRow.surface SurfaceDict object or created via schrodinger.project.ProjectRow.newMolecularSurface.
|
|||
Style Surface representation styles. |
|||
ColorBy Values for surface color schemes. |
|||
ColorFrom Values for surface color sources. |
|||
Color Mmvol colors. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
ColorBy, Color, or NoneType |
|
||
|
|||
Inherited from |
|
|||
Surface |
|
|
|||
|
|||
mmbitset.Bitset |
|
|
|||
SURFACE_TYPE_NAME =
|
|
|||
int |
_handle The mmsurf handle for this surface. |
||
str |
name The name of the surface. |
||
str |
surface_type A textual description of the type of surface. |
||
bool |
visible Whether the surface is currently visible. |
||
int |
front_transparency The transparency of the front of the surface (relative to the workspace camera position). |
||
int |
back_transparency The transparency of the back of the surface (relative to the workspace camera position). |
||
Style |
style The visual style of the surface representation (solid, mesh, or dot). |
||
bool |
darken_colors_by_cavity_depth Whether the colors on the surface should be darkened based on the cavity depth. |
||
ColorFrom |
color_source The source of the surface colors. |
||
ColorBy |
color_scheme The color scheme used to determine surface colors. |
||
Color |
color The constant surface color. |
||
float |
surface_area The reported surface area of the surface |
||
list |
vertex_coords A list of all vertex coordinates |
||
list |
nearest_atom_indexes A list of the atom indices closest to each vertex coordinate. |
||
|
x.__init__(...) initializes x; see help(type(x)) for signature
Note: This method does not confirm that the specified surface exists. (This check is done in SurfaceDict.__getitem__.) Attempting to get or set values on a non-existent surface will lead to a RuntimeError. |
Create a new molecular surface for the specified project row
|
Make sure that no surface of the specified name exists. Raise a ValueError if one does.
|
Generate a bitself that indicates which atoms to create the surface
for. Note that either
|
Make sure that our mmsurf handle is still valid. Raise a RuntimeError if it isn't. |
Delete this surface. After the surface is deleted, any further attempt to interact with this object will result in a RuntimeError.
|
Rename this surface
|
Sets the surface to be visible. Note that this does not guarantee that the appropriate entry is included in the workspace. |
Set both the front and the back transparency.
|
Set the surface coloring. |
Return the current surface coloring. Is only guaranteed to return a non-None value if the surface coloring was set via setColoring. If the surface coloring cannot be determined, will return None. |
|
SURFACE_TYPE_NAME
|
|
_handleThe mmsurf handle for this surface. Note that mmproj may change the mmsurf handle whenever the entry leaves the workspace, so we fetch the mmsurf handle using the surface name. This ensures that we're not using a stale handle.
|
nameThe name of the surface. Note that all surfaces for a given project entry have unique names.
|
surface_typeA textual description of the type of surface.
|
visibleWhether the surface is currently visible. Note that this does not guarantee that the appropriate entry is included in the workspace.
|
front_transparencyThe transparency of the front of the surface (relative to the workspace camera position). Measured on a scale from 0 (fully opaque) to 100 (fully transparent).
|
back_transparencyThe transparency of the back of the surface (relative to the workspace camera position). Measured on a scale from 0 (fully opaque) to 100 (fully transparent).
|
styleThe visual style of the surface representation (solid, mesh, or dot).
|
darken_colors_by_cavity_depthWhether the colors on the surface should be darkened based on the cavity depth.
|
color_sourceThe source of the surface colors. Note that coloring()/setColoring()
are recommended over directly manipulating
|
color_schemeThe color scheme used to determine surface colors. This value may be
ignored unless color_source is set to
|
colorThe constant surface color. This value may be ignored unless color_source is set to
|
surface_areaThe reported surface area of the surface
|
vertex_coordsA list of all vertex coordinates
|
nearest_atom_indexesA list of the atom indices closest to each vertex coordinate. Atom indices are listed in a corresponding order to vertex_coords.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat May 9 06:31:26 2015 | http://epydoc.sourceforge.net |