// **************************************************************************** // Method: avtAxisRestrictionToolInterface::SetAxisMax // // Purpose: // Sets the max for an axis. // // Arguments: // i the axis value to set // x the value // // Programmer: Jeremy Meredith // Creation: February 1, 2008 // // **************************************************************************** void avtAxisRestrictionToolInterface::SetAxisMax(int i, double x) { AxisRestrictionAttributes *a = (AxisRestrictionAttributes *)atts; doubleVector &m = a->GetMaxima(); 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(); }
// **************************************************************************** // Method: avtAxisRestrictionToolInterface::SetAxisName // // Purpose: // Sets the name for an axis. // // Arguments: // i the axis name to set // s the name // // Programmer: Jeremy Meredith // Creation: February 15, 2008 // // **************************************************************************** void avtAxisRestrictionToolInterface::SetAxisName(int i, const std::string &s) { AxisRestrictionAttributes *a = (AxisRestrictionAttributes *)atts; stringVector &n = a->GetNames(); if (n.size() <= (size_t)i) { // don't bother erroring, either exit or resize return; //m.resize(i+1, -1e+37); } n[i] = s; a->SelectAll(); }