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
7
class
Vector3Widget
:
public
QWidget{
8
Q_OBJECT
9
10
public
:
11
explicit
Vector3Widget
(
const
QString& suffix =
""
, QWidget* parent =
nullptr
);
12
13
glm::vec3
getValue
()
const
;
14
void
setValue
(
const
glm::vec3& v);
15
16
signals:
17
void
valueChanged
(
const
glm::vec3& newValue);
18
private
:
19
QDoubleSpinBox *xSpin, *ySpin, *zSpin;
20
};
Vector3Widget
Definition
Vector3Widget.h:7
Vector3Widget::valueChanged
void valueChanged(const glm::vec3 &newValue)
Vector3Widget::setValue
void setValue(const glm::vec3 &v)
Definition
Vector3Widget.cpp:30
Vector3Widget::getValue
glm::vec3 getValue() const
Definition
Vector3Widget.cpp:26
src
ui
Vector3Widget.h
Generated by
1.9.8