EditWidget.hpp 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #pragma once
  2. // Include modules
  3. #include "enums.hpp"
  4. // Include dependencies
  5. #include <QWidget>
  6. #include <osg/Vec3>
  7. QT_BEGIN_NAMESPACE
  8. namespace Ui { class EditWidget; }
  9. QT_END_NAMESPACE
  10. class EditWidget: public QWidget {
  11. Q_OBJECT
  12. public:
  13. EditWidget(QWidget* parent = nullptr);
  14. ~EditWidget();
  15. void updatePositions(osg::Vec3 point);
  16. void updateNormals(osg::Vec3 normal);
  17. void invalidatePositions();
  18. ActiveTrackingSystem getSelectedTrackingSystem();
  19. void setSelection(int id);
  20. int getSelectedPoint();
  21. void updateTrackpointCount();
  22. void resetActionPointSettings();
  23. void resetAllSettings();
  24. void setExportAvailable(bool available);
  25. void setExportStatus(int jobs, int done);
  26. bool getOptiTrackSanityCheckStatus();
  27. bool getSteamVRTrackCollisionCheckStatus();
  28. protected:
  29. virtual void showEvent(QShowEvent* event);
  30. private slots:
  31. void selectTool(Tool tool);
  32. void tabChanged(int index);
  33. void updateNormalModifier();
  34. void resetNormalModifier();
  35. void setNormalModifier(osg::Vec3 normalModifier);
  36. void updateNormalRotation(bool reset = false);
  37. void setNormalRotation(float normalRotation);
  38. void updateCompensation(bool reset = false);
  39. void setCompensation(bool compensation);
  40. void updateOptiTrackSettings(bool reset = false);
  41. void setOptiTrackSettings(double length, double radius);
  42. void updateEMFTrackSettings(bool reset = false);
  43. void setEMFTrackSettings(double width, double height, double depth);
  44. void updateSteamVRTrackSettings(bool reset = false);
  45. void setSteamVRTrackSettings(double length);
  46. void updateActionPointSettings(QString input);
  47. void setActionPointSettings(std::string identifier);
  48. void deleteCurrentTrackPoint();
  49. void exportProject();
  50. void changePositions();
  51. void setPositionEditing(bool mode);
  52. void manualOptiTrackSanityCheck();
  53. void setOptiTrackSanityCheckStatus();
  54. void manualSteamVRTrackCollisionCheck();
  55. void setSteamVRTrackCollisionCheckStatus();
  56. void setCountCheckString(ActiveTrackingSystem activeTrackingSystem);
  57. private:
  58. Ui::EditWidget* ui;
  59. int selectedPoint = -1;
  60. bool _optiTrackSanityCheck = true;
  61. bool _steamVrTrackCollisionCheck = false;
  62. };