Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all
Unified · Split
| @@ -2304,8 +2304,8 @@ void Application::setActiveFaceTracker() { · 2303 unmodified lines | |||
| 2304 | #endif | 2304 | #endif |
| 2305 | } | 2305 | } |
| 2306 | 2306 | ||
| 2307 | void Application::setActiveEyeTracker() { | ||
| 2308 | #ifdef HAVE_IVIEWHMD | 2307 | #ifdef HAVE_IVIEWHMD |
| 2308 | void Application::setActiveEyeTracker() { | ||
| 2309 | auto eyeTracker = DependencyManager::get<EyeTracker>(); | 2309 | auto eyeTracker = DependencyManager::get<EyeTracker>(); |
| 2310 | if (!eyeTracker->isInitialized()) { | 2310 | if (!eyeTracker->isInitialized()) { |
| 2311 | return; | 2311 | return; |
| @@ -2318,29 +2318,20 @@ void Application::setActiveEyeTracker() { · 6 unmodified lines | |||
| 2318 | Menu::getInstance()->getActionForOption(MenuOption::OnePointCalibration)->setEnabled(isEyeTracking && !isSimulating); | 2318 | Menu::getInstance()->getActionForOption(MenuOption::OnePointCalibration)->setEnabled(isEyeTracking && !isSimulating); |
| 2319 | Menu::getInstance()->getActionForOption(MenuOption::ThreePointCalibration)->setEnabled(isEyeTracking && !isSimulating); | 2319 | Menu::getInstance()->getActionForOption(MenuOption::ThreePointCalibration)->setEnabled(isEyeTracking && !isSimulating); |
| 2320 | Menu::getInstance()->getActionForOption(MenuOption::FivePointCalibration)->setEnabled(isEyeTracking && !isSimulating); | 2320 | Menu::getInstance()->getActionForOption(MenuOption::FivePointCalibration)->setEnabled(isEyeTracking && !isSimulating); |
| 2321 | #endif | ||
| 2322 | } | 2321 | } |
| 2323 | 2322 | ||
| 2324 | void Application::calibrateEyeTracker1Point() { | 2323 | void Application::calibrateEyeTracker1Point() { |
| 2325 | #ifdef HAVE_IVIEWHMD | 2324 | DependencyManager::get<EyeTracker>()->calibrate(1); |
| 2326 | auto eyeTracker = DependencyManager::get<EyeTracker>(); | ||
| 2327 | eyeTracker->calibrate(1); | ||
| 2328 | #endif | ||
| 2329 | } | 2325 | } |
| 2330 | 2326 | ||
| 2331 | void Application::calibrateEyeTracker3Points() { | 2327 | void Application::calibrateEyeTracker3Points() { |
| 2332 | #ifdef HAVE_IVIEWHMD | 2328 | DependencyManager::get<EyeTracker>()->calibrate(3); |
| 2333 | auto eyeTracker = DependencyManager::get<EyeTracker>(); | ||
| 2334 | eyeTracker->calibrate(3); | ||
| 2335 | #endif | ||
| 2336 | } | 2329 | } |
| 2337 | 2330 | ||
| 2338 | void Application::calibrateEyeTracker5Points() { | 2331 | void Application::calibrateEyeTracker5Points() { |
| 2339 | #ifdef HAVE_IVIEWHMD | 2332 | DependencyManager::get<EyeTracker>()->calibrate(5); |
| 2340 | auto eyeTracker = DependencyManager::get<EyeTracker>(); | ||
| 2341 | eyeTracker->calibrate(5); | ||
| 2342 | #endif | ||
| 2343 | } | 2333 | } |
| 2334 | #endif | ||
| 2344 | 2335 | ||
| 2345 | bool Application::exportEntities(const QString& filename, const QVector<EntityItemID>& entityIDs) { | 2336 | bool Application::exportEntities(const QString& filename, const QVector<EntityItemID>& entityIDs) { |
| 2346 | QVector<EntityItemPointer> entities; | 2337 | QVector<EntityItemPointer> entities; |