Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
Vector3Widget.h
Go to the documentation of this file.
1#pragma once
2#include <QWidget>
3#include <QHBoxLayout>
4#include <QDoubleSpinBox>
5#include <glm/glm.hpp>
6
7class Vector3Widget : public QWidget{
8 Q_OBJECT
9
10public:
11 explicit Vector3Widget(const QString& suffix = "", QWidget* parent = nullptr);
12
13 glm::vec3 getValue() const;
14 void setValue(const glm::vec3& v);
15
16signals:
17 void valueChanged(const glm::vec3& newValue);
18private:
19 QDoubleSpinBox *xSpin, *ySpin, *zSpin;
20};
void valueChanged(const glm::vec3 &newValue)
void setValue(const glm::vec3 &v)
glm::vec3 getValue() const