Home | Trees | Indices | Help |
|
---|
|
ViewerFramework.VFCommand.Command --+ | mvCommand.MVCommand --+ | ColorCommand --+ | ColorByProperties --+ | ColorByExpression
The colorByExpression command allows the user to color the given geometries representing the given nodes evaluated by python function or lambda function. Package : Pmv Module : colorCommands Class : ColorByInstance Command : colorByInstance Synopsis: None <- colorByExpression(nodes, geomsToColor, function,lambdaFunc, ramp=None, min=None, max=Non) nodes --- TreeNodeSet holding the current selection geomsToColor --- the list of the name geometries to be colored function --- python function or lambda function that will be evaluated with the given nodes lambdaFunc --- flag specifying if the given function is a lambda function or a regular function colormap --- can either be a string which is the name of a loaded colormap or a DejaVu.colorMap.ColorMap instance.
|
|||
| __init__(self, func=None) | ||
|
onAddCmdToViewer(self) method called when an instance of this command is added to the viewer. |
||
|
loadCM_cb(self,
event=None) Callback to load a new color map file. |
||
| updateCM(self, event=None) | ||
| updateMiniMaxi(self, cmName, event=None) | ||
|
buildFormDescr(self,
formName) descr <- buildFormDescr(self, formName): this virtual method is implemented in the classes derived from Command. |
||
| eval_cb(self) | ||
|
setupUndoBefore(self,
nodes,
geomsToColor,
function='lambda x: x._uniqIndex',
lambdaFunc=1,
colormap='RGBARamp') This method builds the self.undoCmds string. |
||
| cmGUI_cb(self, geomsToColor, function, lambdaFunc, colormap) | ||
| guiCallback(self) | ||
|
__call__(self,
nodes,
geomsToColor='all',
function='lambda x: x._uniqIndex',
lambdaFunc=1,
colormap='RGBARamp',
**kw) None <- colorByExpression(nodes, geomsToColor, function,lambdaFunc, ramp=None,min=None, max=None, **kw) |
||
| getPropValues(self, nodes, function, lambdaFunc) | ||
|
doit(self,
nodes,
geomsToColor,
function='lambda x: x._uniqIndex',
lambdaFunc=1,
colormap='RGBARamp') virtual method. |
||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
|
mapLabel = 'Define a function or a lambda function to be applie...
|
||
|
mapText = '#This function returns the value of the attribute _...
|
||
|
funcLabel = 'Define a function to be applied to\nthe current sel...
|
||
|
funcText = '#def foo(selection):\n#\tvalues = []\n#\t#loop on t...
|
||
Inherited from Inherited from |
|
|
|
|
|
|
|
|
|
|
|
None <- colorByExpression(nodes, geomsToColor, function,lambdaFunc, ramp=None,min=None, max=None, **kw) nodes --- TreeNodeSet holding the current selection geomsToColor --- the list of the name geometries to be colored function --- python function or lambda function that will be evaluated with the given nodes lambdaFunc --- flag specifying if the given function is a lambda function or a regular function colormap --- can either be a string which is the name of a loaded colormap or a DejaVu.colorMap.ColorMap instance.
|
|
|
|
mapLabelNone
|
mapTextNone
|
funcLabelNone
|
funcTextNone
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri Nov 2 14:14:29 2007 | http://epydoc.sourceforge.net |