EditWidget.hpp 1.3 KB

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