Commit a2801073 authored by js9's avatar js9

Allowing clamped extents to display as "min" and "max".



git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@3187 18c085ea-50e0-402c-830e-de6fd14e8384
parent 34dd47cf
......@@ -424,6 +424,9 @@ VisitAxisRestrictionTool::UpdateText()
// Creation: February 1, 2008
//
// Modifications:
// Jeremy Meredith, Fri Feb 8 16:22:03 EST 2008
// Set the min/max to something that's obviously supposed to be a semantic
// min/max limit if the hotpoints are all the way at the end of the axis.
//
// ****************************************************************************
......@@ -433,13 +436,27 @@ VisitAxisRestrictionTool::CallCallback()
Interface.ResetNumberOfAxes(axesMin.size());
for (int ax=0; ax<axesMin.size(); ax++)
{
float minval = origHotPoints[ax*2+1].pt.y * (axesMax[ax]-axesMin[ax])
+ axesMin[ax];
Interface.SetAxisMin(ax, minval);
if (origHotPoints[ax*2+1].pt.y <= 0)
{
Interface.SetAxisMin(ax, -1e+37);
}
else
{
float minval = origHotPoints[ax*2+1].pt.y *
(axesMax[ax]-axesMin[ax]) + axesMin[ax];
Interface.SetAxisMin(ax, minval);
}
float maxval = origHotPoints[ax*2+0].pt.y * (axesMax[ax]-axesMin[ax])
+ axesMin[ax];
Interface.SetAxisMax(ax, maxval);
if (origHotPoints[ax*2+0].pt.y >= 1)
{
Interface.SetAxisMax(ax, +1e+37);
}
else
{
float maxval = origHotPoints[ax*2+0].pt.y *
(axesMax[ax]-axesMin[ax]) + axesMin[ax];
Interface.SetAxisMax(ax, maxval);
}
}
Interface.ExecuteCallback();
......
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