| Trees | Indices | Help | 
 | 
|---|
|  | 
object --+
         |
        Surface
A Pythonic wrapping for mmsurf surfaces that are not associated with a project entry. (For surfaces that are associated with a project entry, see ProjectSurface below.) Surface objects can be created from an existing mmsurf handle via __init__, can be read from disk via read, or new surfaces can be created via newMolecularSurface.
| 
 | |||
| Style Surface representation styles. | |||
| ColorBy Values for surface color schemes. | |||
| ColorFrom Values for surface color sources. | |||
| Color Represent a color as either an integer (colormap index), string (color name), or an RGB value (tuple/list of 3 ints, values 0-255). | |||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| 
 | |||
| ColorBy, Color, numpy.ndarray, or 
      NoneType | 
 | ||
| 
 | |||
| numpy.array | 
 | ||
| Surface | 
 | ||
| Inherited from  | |||
| 
 | |||
| Surface | 
 | ||
| int | 
 | ||
| Surface | 
 | ||
| 
 | |||
| mmbitset.Bitset | 
 | ||
| 
 | |||
| SURFACE_TYPE_NAME =  | |||
| 
 | |||
| str | name The surface name. | ||
| 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 | ||
| vertex_count | |||
| numpy.ndarray | vertex_normals The normal for each vertex | ||
| int | patch_count The number of surface patches (i.e. | ||
| numpy.array | patch_vertices A patch_countx 3 array containing vertex indices for 
      each surface patch. | ||
| list | nearest_atom_indices A list of the atom indices closest to each vertex coordinate. | ||
| numpy.ndarray | vertex_colors An array of manually specified per-vertex colors. | ||
| bool | has_vertex_colors Does this surface contain manually specified per-vertex colors? | ||
| 
 | |||
| 
 x.__init__(...) initializes x; see help(type(x)) for signature 
 | 
| 
 Immediately delete the mmsurf handle. After this method has been called, any further attempts to interact with this object will result in an MmException. | 
| 
 Create a new molecular surface for the specified surface 
 | 
| 
 Create a new molecular surface for the specified structure. Arguments are the same as newMolecularSurface above. 
 | 
| 
 Generate a bitself that indicates which atoms to create the surface 
  for. Note that either  
 | 
| 
 Read surface data from a file. 
 | 
| 
 Write this surface to a file. Note that existing files will be overwritten. 
 | 
| 
 Set the surface name. This method is provided for compatibility with ProjectSurface. | 
| 
 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. | 
| 
 Given a list of vertex colors, return a list of smoothed colors. Does not modify the surface in any way. 
 | 
| 
 Create a copy of this surface. Note that this method will always return a Surface object, even when a ProjectSurface object is copied. 
 | 
| 
 | |||
| SURFACE_TYPE_NAME
 | 
| 
 | |||
| nameThe surface name. 
 | 
| surface_typeA textual description of the type of surface. 
 | 
| visibleWhether the surface is currently visible. This setting will be remembered, but it will not have any effect until the surface is added to a project and loaded into Maestro. 
 | 
| 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 
 | 
| vertex_count
 | 
| vertex_normalsThe normal for each vertex 
 | 
| patch_countThe number of surface patches (i.e. triangles connecting three adjacent vertices). 
 | 
| patch_verticesA  
 | 
| nearest_atom_indicesA list of the atom indices closest to each vertex coordinate. Atom indices are listed in a corresponding order to vertex_coords. 
 | 
| vertex_colorsAn array of manually specified per-vertex colors. 
 | 
| has_vertex_colorsDoes this surface contain manually specified per-vertex colors? 
 | 
| Trees | Indices | Help | 
 | 
|---|
| Generated by Epydoc 3.0.1 on Wed Aug 3 07:59:59 2016 | http://epydoc.sourceforge.net |