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.
|
__init__(self,
handle,
manage=True)
x.__init__(...) initializes x; see help(type(x)) for signature |
|
|
|
_initializeMmlibs(self)
Initialize all mmlib libraries used by this class. |
|
|
|
_terminateMmlibs(self)
Terminate all mmlib libraries used by this class. |
|
|
|
__del__(self)
When this object is garbage collected, terminate the mmlib libraries
and delete the mmsurf handle if it's managed by this object. |
|
|
|
delete(self)
Immediately delete the mmsurf handle. |
|
|
|
write(self,
filename)
Write this surface to a file. |
|
|
|
|
|
rename(self,
value)
Set the surface name. |
|
|
|
|
|
|
|
show(self)
Sets the surface to be visible. |
|
|
|
hide(self)
Hides the surface. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ColorBy, Color,
numpy.ndarray , or NoneType
|
coloring(self)
Return the current surface coloring. |
|
|
|
|
|
|
|
|
|
|
|
|
|
patch_vertices(self)
A patch_count x 3 array containing vertex indices for
each surface patch. |
|
|
|
|
|
|
numpy.array
|
smoothColors(self,
colors,
iterations)
Given a list of vertex colors, return a list of smoothed colors. |
|
|
|
|
|
has_vertex_colors(self)
Does this surface contain manually specified per-vertex colors? |
|
|
Surface
|
copy(self)
Create a copy of this surface. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
Surface
|
newMolecularSurface(cls,
struc,
name,
asl=None,
atoms=None,
resolution=0.5,
probe_radius=None,
vdw_scaling=1.0,
mol_surf_type=MolSurfType.molecular)
Create a new molecular surface for the specified surface |
|
|
int
|
_createMolecularSurface(cls,
struc,
name,
asl,
atoms,
resolution,
probe_radius,
vdw_scaling,
mol_surf_type)
Create a new molecular surface for the specified structure. |
|
|
Surface
|
read(cls,
filename)
Read surface data from a file. |
|
|