| 27 | |
| 28 | |
| 29 | MapDrawer::MapDrawer(Atlas* pAtlas, const string &strSettingPath, Settings* settings):mpAtlas(pAtlas) |
| 30 | { |
| 31 | if(settings){ |
| 32 | newParameterLoader(settings); |
| 33 | } |
| 34 | else{ |
| 35 | cv::FileStorage fSettings(strSettingPath, cv::FileStorage::READ); |
| 36 | bool is_correct = ParseViewerParamFile(fSettings); |
| 37 | |
| 38 | if(!is_correct) |
| 39 | { |
| 40 | std::cerr << "**ERROR in the config file, the format is not correct**" << std::endl; |
| 41 | try |
| 42 | { |
| 43 | throw -1; |
| 44 | } |
| 45 | catch(exception &e) |
| 46 | { |
| 47 | |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | void MapDrawer::newParameterLoader(Settings *settings) { |
| 54 | mKeyFrameSize = settings->keyFrameSize(); |
nothing calls this directly
no outgoing calls
no test coverage detected