Commit 52c83fa7 authored by cyrush's avatar cyrush
Browse files

added value_for_material to the expressions gui window

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@3078 18c085ea-50e0-402c-830e-de6fd14e8384
parent 3f90c999
......@@ -130,6 +130,9 @@
// Gunther H. Weber, Thu Jan 10 12:00:23 PST 2008
// Added colorlookup.
//
// Cyrus Harrison, Thu Jan 31 09:45:30 PST 2008
// Added value_for_material
//
// ****************************************************************************
struct ExprNameList
......@@ -260,6 +263,7 @@ const char *expr_materials[] = {
"matvf",
"nmats",
"specmf",
"value_for_material",
NULL
};
......@@ -1046,6 +1050,9 @@ QvisExpressionsWindow::displayAllVarsChanged()
// Brad Whitlock, Mon Apr 23 17:35:13 PST 2007
// Added color expression.
//
// Cyrus Harrison, Thu Jan 31 09:45:30 PST 2008
// Added value_for_material
//
// ****************************************************************************
void
......@@ -1131,6 +1138,11 @@ QvisExpressionsWindow::insertFunction(int id)
definitionEdit->insert("(<var1>, <var2>, <var3>)");
doParens = false;
}
else if(str == "value_for_material")
{
definitionEdit->insert("(<var>, <material-name-or-number>)");
doParens = false;
}
if (doParens)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment