// **************************************************************************** // Method: avtAxisRestrictionToolInterface::GetAxisName // // Purpose: // Gets the name for an axis. // // Arguments: // i the axis value to retrieve // // Programmer: Jeremy Meredith // Creation: February 1, 2008 // // **************************************************************************** std::string avtAxisRestrictionToolInterface::GetAxisName(int i) const { AxisRestrictionAttributes *a = (AxisRestrictionAttributes *)atts; const stringVector &n = a->GetNames(); if (n.size() <= (size_t)i) { return ""; } return n[i]; }
// **************************************************************************** // 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(); }