EditWidget.hpp 1015 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 updateNormalModifier();
  27. void resetNormalModifier();
  28. void setNormalModifier(osg::Vec3 normalModifier);
  29. void updateOptiTrackSettings();
  30. void resetOptiTrackSettings();
  31. void setOptiTrackSettings(double length, double radius);
  32. void deleteCurrentTrackPoint();
  33. void exportProject();
  34. private:
  35. Ui::EditWidget* ui;
  36. int selectedPoint = -1;
  37. };