Home | Trees | Indices | Help |
|
---|
|
ViewerFramework.VFCommand.Command --+ | mvCommand.MVCommand --+ | ViewerFramework.VFCommand.ICOM --+ | | | mvCommand.MVICOM --+ | | | mvCommand.MVAtomICOM --+ | LabelByProperties
selector.selection,property,textcolor,font,location,only,negate,funcItems Command to label the current selection items according to different properties of the selection level (Actually of the first item in the current selection.) Color can be specified as 'red','green','blue','white' or 'yellow'. Other values can be entered as a RGB tuple.One font can selected per label level: Atom,Residue,Chain,Molecule.Labels can be centered on first atom of selection level item, last atom of item or on the center of the item which is found by averaging the coordinates of all the atoms in the item. (eg all atoms in a residue if labelling at the Residue Level) Package : Pmv Module : labelCommands Class : LabelByProperties Command : labelByProperty Synopsis: None<-labelByProperty(nodes, prop, textcolor, font, location,only, negate, funcItems, format, kw) Required Arguments: nodes --- TreeNodeSet holding the current selection Optional Arguments: prop --- attribute to use for label (default 'name') textcolor --- colorname or RGB tuple (default 'white') font --- font understood by DejaVu (default 'Helvetica12') location --- 'First', 'Center', 'Last' atom in node (default 'Center') only --- show this label only negate --- Boolean flag to toggle visibility of label format --- format string for label
|
|||
| __init__(self, func=None) | ||
| atomPropToVertices(self, geom, atoms, propName, propIndex=None) | ||
|
onAddCmdToViewer(self) method called when an instance of this command is added to the viewer. |
||
| onAddObjectToViewer(self, obj) | ||
| update_cb(self, tag, force=False) | ||
| updateChooser(self) | ||
|
buildFormDescr(self,
formName='default') descr <- buildFormDescr(self, formName): this virtual method is implemented in the classes derived from Command. |
||
| getRelatedLabelsGeom(self) | ||
| labelsSettings_cb(self) | ||
| dismiss_cb(self) | ||
| configureButton(self, col) | ||
| chooseColor_cb(self) | ||
|
getLastUsedValues(self,
formName='default',
**kw) Return dictionary of last used values |
||
|
guiCallback(self) Default callback function called by the gui |
||
|
__call__(self,
nodes,
properties=['name',],
textcolor='white',
font='arial1.glf',
location='Center',
only=False,
negate=False,
format=None,
**kw) None<-labelByProperty(nodes, prop, textcolor, font, location,only, negate, funcItems, format, kw) |
||
|
doit(self,
nodes,
properties=['name',],
textcolor='white',
font={},
location='Center',
only=False,
negate=False,
format=None) virtual method. |
||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
None<-labelByProperty(nodes, prop, textcolor, font, location,only, negate, funcItems, format, kw) nodes --- TreeNodeSet holding the current selection prop --- attribute to use for label (default 'name') textcolor --- colorname or RGB tuple (default 'white') font --- font understood by DejaVu (default 'arial1.glf') location --- 'First', 'Center', 'Last' atom in node (default 'Center') only --- show this label only negate --- Boolean flag to toggle visibility of label format --- format string for label
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri Nov 2 14:14:34 2007 | http://epydoc.sourceforge.net |