EditWidget.hpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. protected:
  25. virtual void showEvent(QShowEvent* event);
  26. private slots:
  27. void selectTool(Tool tool);
  28. void tabChanged(int index);
  29. void updateNormalModifier();
  30. void resetNormalModifier();
  31. void setNormalModifier(osg::Vec3 normalModifier);
  32. void updateOptiTrackSettings();
  33. void resetOptiTrackSettings();
  34. void setOptiTrackSettings(double length, double radius);
  35. void updateSteamVRTrackSettings();
  36. void resetSteamVRTrackSettings();
  37. void setSteamVRTrackSettings(double length);
  38. void updateActionPointSettings(QString input);
  39. void setActionPointSettings(std::string identifier);
  40. void deleteCurrentTrackPoint();
  41. void exportProject();
  42. void changePositions();
  43. void setPositionEditing(bool mode);
  44. private:
  45. Ui::EditWidget* ui;
  46. int selectedPoint = -1;
  47. };