Commit 419eece7 authored by whitlocb's avatar whitlocb
Browse files

Added filter metadata back in

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23136 18c085ea-50e0-402c-830e-de6fd14e8384
parent 7e19ce72
/***************************************************************************** /*****************************************************************************
* *
* Copyright (c) 2000 - 2013, Lawrence Livermore National Security, LLC * Copyright (c) 2000 - 2014, Lawrence Livermore National Security, LLC
* Produced at the Lawrence Livermore National Laboratory * Produced at the Lawrence Livermore National Laboratory
* LLNL-CODE-442911 * LLNL-CODE-442911
* All rights reserved. * All rights reserved.
...@@ -974,6 +974,11 @@ avtStreamlineFilter::PostExecute(void) ...@@ -974,6 +974,11 @@ avtStreamlineFilter::PostExecute(void)
// Hank Childs, Sat Jun 5 16:06:26 PDT 2010 // Hank Childs, Sat Jun 5 16:06:26 PDT 2010
// Call the new base class' (avtPICSFilter) method. // Call the new base class' (avtPICSFilter) method.
// //
// Brad Whitlock, Fri Feb 28 12:00:51 PST 2014
// Add some hints about what coloring method was used and what colorVar
// might actually be.
// Work partially supported by DOE Grant SC0007548.
//
// **************************************************************************** // ****************************************************************************
void void
...@@ -996,6 +1001,31 @@ avtStreamlineFilter::UpdateDataObjectInfo(void) ...@@ -996,6 +1001,31 @@ avtStreamlineFilter::UpdateDataObjectInfo(void)
atts.SetVariableDimension(1); atts.SetVariableDimension(1);
atts.SetCentering(AVT_NODECENT); atts.SetCentering(AVT_NODECENT);
} }
switch(coloringMethod)
{
case PICS_COLOR_SOLID:
atts.AddFilterMetaData("Streamline", "coloringMethod=PICS_COLOR_SOLID");
break;
case PICS_COLOR_SPEED:
atts.AddFilterMetaData("Streamline", "coloringMethod=PICS_COLOR_SPEED");
break;
case PICS_COLOR_VORTICITY:
atts.AddFilterMetaData("Streamline", "coloringMethod=PICS_COLOR_VORTICITY");
break;
case PICS_COLOR_ARCLENGTH:
atts.AddFilterMetaData("Streamline", "coloringMethod=PICS_COLOR_ARCLENGTH");
break;
case PICS_COLOR_TIME:
atts.AddFilterMetaData("Streamline", "coloringMethod=PICS_COLOR_TIME");
break;
case PICS_COLOR_ID:
atts.AddFilterMetaData("Streamline", "coloringMethod=PICS_COLOR_ID");
break;
case PICS_COLOR_VARIABLE:
atts.AddFilterMetaData("Streamline", "coloringMethod=PICS_COLOR_VARIABLE, colorVar=" + coloringVariable);
break;
}
} }
typedef struct typedef struct
......
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