Search in sources :

Example 16 with SimpleSymbolTable

use of cbit.vcell.parser.SimpleSymbolTable in project vcell by virtualcell.

the class RefinementRoi method setRoiExpression.

public void setRoiExpression(String roiExp) throws ExpressionException {
    Expression exp = null;
    if (roiExp != null) {
        roiExp = roiExp.trim();
        if (roiExp.length() > 0) {
            exp = new Expression(roiExp);
            exp.bindExpression(new SimpleSymbolTable(new String[] { "x", "y", "z" }));
        }
    }
    this.roiExpression = exp;
}
Also used : SimpleSymbolTable(cbit.vcell.parser.SimpleSymbolTable) Expression(cbit.vcell.parser.Expression)

Aggregations

SimpleSymbolTable (cbit.vcell.parser.SimpleSymbolTable)16 Expression (cbit.vcell.parser.Expression)11 ArrayList (java.util.ArrayList)6 Coordinate (org.vcell.util.Coordinate)3 ImageException (cbit.image.ImageException)2 Plot2D (cbit.plot.Plot2D)2 SingleXPlot2D (cbit.plot.SingleXPlot2D)2 PlotPane (cbit.plot.gui.PlotPane)2 ChildWindowManager (cbit.vcell.client.ChildWindowManager)2 ChildWindow (cbit.vcell.client.ChildWindowManager.ChildWindow)2 SinglePoint (cbit.vcell.geometry.SinglePoint)2 CompartmentSubDomain (cbit.vcell.math.CompartmentSubDomain)2 MathException (cbit.vcell.math.MathException)2 MembraneSubDomain (cbit.vcell.math.MembraneSubDomain)2 VariableType (cbit.vcell.math.VariableType)2 ExpressionBindingException (cbit.vcell.parser.ExpressionBindingException)2 ExpressionException (cbit.vcell.parser.ExpressionException)2 SymbolTableEntry (cbit.vcell.parser.SymbolTableEntry)2 DataIdentifier (cbit.vcell.simdata.DataIdentifier)2 SpatialSelectionMembrane (cbit.vcell.simdata.SpatialSelectionMembrane)2