EditWidget.hpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. protected:
  27. virtual void showEvent(QShowEvent* event);
  28. private slots:
  29. void selectTool(Tool tool);
  30. void tabChanged(int index);
  31. void updateNormalModifier();
  32. void resetNormalModifier();
  33. void setNormalModifier(osg::Vec3 normalModifier);
  34. void updateNormalRotation(bool reset = false);
  35. void setNormalRotation(float normalRotation);
  36. void updateCompensation(bool reset = false);
  37. void setCompensation(bool compensation);
  38. void updateOptiTrackSettings(bool reset = false);
  39. void setOptiTrackSettings(double length, double radius);
  40. void updateEMFTrackSettings(bool reset = false);
  41. void setEMFTrackSettings(double width, double height, double depth);
  42. void updateSteamVRTrackSettings(bool reset = false);
  43. void setSteamVRTrackSettings(double length);
  44. void updateActionPointSettings(QString input);
  45. void setActionPointSettings(std::string identifier);
  46. void deleteCurrentTrackPoint();
  47. void exportProject();
  48. void changePositions();
  49. void setPositionEditing(bool mode);
  50. private:
  51. Ui::EditWidget* ui;
  52. int selectedPoint = -1;
  53. };