34#include <NDEVR/Resource.h>
35#include <NDEVR/Vector.h>
43 SunDial(QWidget* parent =
nullptr);
44 virtual void mousePressEvent(QMouseEvent* ev)
override;
49 return m_knob_radius *
getMin(height(), width());
51 fltp04 outerRadius()
const;
54 return QSize(300, 300);
60 void setKnobColor(QColor inner, QColor outer);
61 void setBackgroundColor(QColor inner, QColor outer);
62 virtual void mouseMoveEvent(QMouseEvent* ev)
override;
65 void paintEvent(QPaintEvent* paint_event)
override;
QColor m_knob_inner_color
Definition SunDial.h:71
QColor m_inner_color
Definition SunDial.h:69
QSize sizeHint() const override
Definition SunDial.h:52
bool m_dragging
Definition SunDial.h:75
virtual void mouseReleaseEvent(QMouseEvent *) override
Definition SunDial.h:56
QColor m_knob_outer_color
Definition SunDial.h:72
fltp04 m_inner_radius
Definition SunDial.h:67
QColor m_outer_color
Definition SunDial.h:68
fltp04 m_knob_radius
Definition SunDial.h:74
fltp04 knobRadius() const
Definition SunDial.h:47
Resource< Vector< 2, fltp04 > > location
Definition SunDial.h:63
An element of a vector space. An element of the real coordinate space Rn Basis vector,...
Definition Vector.hpp:62
float fltp04
Defines an alias representing a 4 byte floating-point number.
Definition BaseValues.hpp:157
constexpr t_type getMin(const t_type &left, const t_type &right)
Finds the minimum of the given arguments based on the < operator.
Definition BaseFunctions.hpp:67