| 1191 | } |
| 1192 | |
| 1193 | void InputCamera::readFromFile(std::istream& infile) |
| 1194 | { |
| 1195 | std::string version; |
| 1196 | infile >> version; |
| 1197 | if (version != IBRVIEW_TOPVIEW_SAVEVERSION) |
| 1198 | { |
| 1199 | SIBR_WRG << "Sorry but your TopView camera configuration " |
| 1200 | "is too old (we added new features since!)" << std::endl; |
| 1201 | return; |
| 1202 | } |
| 1203 | |
| 1204 | Vector3f v; |
| 1205 | infile >> v.x() >> v.y() >> v.z(); |
| 1206 | Quaternionf q; |
| 1207 | infile >> q.x() >> q.y() >> q.z() >> q.w(); |
| 1208 | set(v, q); |
| 1209 | } |
| 1210 | |
| 1211 | void InputCamera::writeToFile(std::ostream& outfile) const |
| 1212 | { |
no test coverage detected