68 out <<
"C:" <<
m_name <<
";";
70 out << position[0] <<
"," << position[1] <<
"," << position[2] <<
";";
72 out << focalPoint[0] <<
"," << focalPoint[1] <<
"," << focalPoint[2] <<
";";
74 out << viewUp[0] <<
"," << viewUp[1] <<
"," << viewUp[2] << endl;
79 QString line = in.readLine();
82 if(!line.startsWith(
"C:"))
84 cout <<
"Couldn't read frame from file!" << endl;
89 QStringList parameters = line.trimmed().split(
";");
91 QString name = parameters[0];
94 QStringList position = parameters[1].split(
",");
95 recordedFrameItem->
getFrame()->SetPosition(position[0].toDouble(), position[1].toDouble(), position[2].toDouble());
97 QStringList focalPoint = parameters[2].split(
",");
98 recordedFrameItem->
getFrame()->SetFocalPoint(focalPoint[0].toDouble(), focalPoint[1].toDouble(), focalPoint[2].toDouble());
100 QStringList viewUp = parameters[3].split(
",");
101 recordedFrameItem->
getFrame()->SetViewUp(viewUp[0].toDouble(), viewUp[1].toDouble(), viewUp[2].toDouble());
103 return recordedFrameItem;