12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #pragma once
- // Include modules
- #include "enums.hpp"
- // Include dependencies
- #include <QWidget>
- #include <osg/Vec3>
- QT_BEGIN_NAMESPACE
- namespace Ui { class EditWidget; }
- QT_END_NAMESPACE
- class EditWidget: public QWidget {
- Q_OBJECT
- public:
- EditWidget(QWidget* parent = nullptr);
- ~EditWidget();
- void updatePositions(osg::Vec3 point);
- void updateNormals(osg::Vec3 normal);
- void invalidatePositions();
- ActiveTrackingSystem getSelectedTrackingSystem();
- void setSelection(int id);
- int getSelectedPoint();
- void updateTrackpointCount();
- void resetActionPointSettings();
- void resetAllSettings();
- protected:
- virtual void showEvent(QShowEvent* event);
- private slots:
- void selectTool(Tool tool);
- void tabChanged(int index);
- void updateNormalModifier();
- void resetNormalModifier();
- void setNormalModifier(osg::Vec3 normalModifier);
- void updateOptiTrackSettings();
- void resetOptiTrackSettings();
- void setOptiTrackSettings(double length, double radius);
- void updateSteamVRTrackSettings();
- void resetSteamVRTrackSettings();
- void setSteamVRTrackSettings(double length);
- void updateActionPointSettings(QString input);
- void setActionPointSettings(std::string identifier);
- void deleteCurrentTrackPoint();
- void exportProject();
- void changePositions();
- void setPositionEditing(bool mode);
- private:
- Ui::EditWidget* ui;
- int selectedPoint = -1;
- };
|