MCPcopy Create free account
hub / github.com/city-super/Octree-GS / readFromFile

Method readFromFile

SIBR_viewers/src/core/assets/InputCamera.cpp:1193–1209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

setupMethod · 0.80
setIntialViewMethod · 0.80

Calls 1

wMethod · 0.45

Tested by

no test coverage detected