bool ContourAttributes::SetValue(const std::string &name, const int &value) { int index = FieldNameToIndex(name); bool retval; if(index == ID_contourNLevels) { SetContourNLevels(value); retval = true; } else retval = AttributeSubject::SetValue(name, value); return retval; }
bool ContourAttributes::SetValue(const std::string &name, const doubleVector &value) { int index = FieldNameToIndex(name); bool retval; if(index == ID_contourPercent) { SetContourPercent(value); retval = true; } else if(index == ID_contourValue) { SetContourValue(value); retval = true; } else retval = AttributeSubject::SetValue(name, value); return retval; }
bool ResampleAttributes::SetValue(const std::string &name, const double &value) { int index = FieldNameToIndex(name); bool retval = true; if(index == ID_endX) SetEndX(value); else if(index == ID_endY) SetEndY(value); else if(index == ID_endZ) SetEndZ(value); else if(index == ID_startX) SetStartX(value); else if(index == ID_startY) SetStartY(value); else if(index == ID_startZ) SetStartZ(value); else retval = AttributeSubject::SetValue(name, value); return retval; }