// ****************************************************************************
//  Method:  avtAxisRestrictionToolInterface::GetAxisMin
//
//  Purpose:
//    Gets the min for an axis.
//
//  Arguments:
//    i          the axis value to retrieve 
//
//  Programmer:  Jeremy Meredith
//  Creation:    February  1, 2008
//
// ****************************************************************************
double
avtAxisRestrictionToolInterface::GetAxisMin(int i) const
{
    AxisRestrictionAttributes *a = (AxisRestrictionAttributes *)atts;
    const doubleVector &m = a->GetMinima();
    if (m.size() <= (size_t)i)
    {
        return -1e+37;
    }
    return m[i];
}
// ****************************************************************************
//  Method:  avtAxisRestrictionToolInterface::SetAxisMin
//
//  Purpose:
//    Sets the min for an axis.
//
//  Arguments:
//    i          the axis value to set 
//    x          the value 
//
//  Programmer:  Jeremy Meredith
//  Creation:    February  1, 2008
//
// ****************************************************************************
void
avtAxisRestrictionToolInterface::SetAxisMin(int i, double x)
{
    AxisRestrictionAttributes *a = (AxisRestrictionAttributes *)atts;
    doubleVector &m = a->GetMinima();
    if (m.size() <= (size_t)i)
    {
        // don't bother erroring, either exit or resize
        return;
        //m.resize(i+1, -1e+37);
    }
    m[i] = x;
    a->SelectAll();
}