Exemplo n.º 1
0
void TPinnedRangeSet::loadData(TIStream &is) {
  m_ranges.clear();
  int prevFrame = 0;
  int i         = 0;
  std::string tagName;
  int count = 0;
  while (is.matchTag(tagName) && count < 3) {
    if (tagName == "permanent") {
      while (!is.matchEndTag()) {
        i++;
        int frame = 0;
        is >> frame;
        if (i % 2 == 0) m_ranges.push_back(Range(prevFrame, frame));
        prevFrame = frame;
      }
      count++;
    } else if (tagName == "temp") {
      assert(0);
      // OBSOLETO
      while (!is.matchEndTag()) {
        int frame = 0;
        is >> frame;
        // m_tempPinned.push_back(frame);
      }
      count++;
    } else if (tagName == "lockedAngle") {
void SkVD::loadData(TIStream &is)
{
	string tagName;

	while (is.matchTag(tagName)) {
		int p;
		for (p = 0; p < PARAMS_COUNT; ++p) {
			if (tagName == parNames[p]) {
				is >> *m_params[p], is.matchEndTag();
				break;
			}
		}

		if (p >= PARAMS_COUNT)
			is.skipCurrentTag();
	}