34#include <NDEVR/Resource.h>
35#include <NDEVR/Vector.h>
52 return m_knob_radius *
getMin(height(), width());
57 return QSize(300, 300);
A core part of the engine, stores variables that can be listened to with ResourceListener which will ...
Definition Toggle.h:41
A decorated dial class that allows the user to set the lighting direction.
Definition SunDial.h:43
virtual void mousePressEvent(QMouseEvent *ev) override
QColor m_knob_inner_color
Definition SunDial.h:74
QColor m_inner_color
Definition SunDial.h:72
fltp04 outerRadius() const
QSize sizeHint() const override
Definition SunDial.h:55
bool m_dragging
Definition SunDial.h:78
void setKnobColor(QColor inner, QColor outer)
virtual void mouseReleaseEvent(QMouseEvent *) override
Definition SunDial.h:59
QColor m_knob_outer_color
Definition SunDial.h:75
fltp04 m_inner_radius
Definition SunDial.h:70
QColor m_outer_color
Definition SunDial.h:71
SunDial(QWidget *parent=nullptr)
fltp04 m_knob_radius
Definition SunDial.h:77
fltp04 knobRadius() const
Definition SunDial.h:50
void setBackgroundColor(QColor inner, QColor outer)
Resource< Vector< 2, fltp04 > > location
Definition SunDial.h:66
virtual void mouseMoveEvent(QMouseEvent *ev) override
void paintEvent(QPaintEvent *paint_event) override
Vector< 2, fltp04 > centerPoint() const
Vector< 2, fltp04 > knobLocation() const
A fixed-size array with better performance compared to dynamic containers.
Definition Vector.hpp:60
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...
Definition BaseValues.hpp:127
constexpr t_type getMin(const t_type &left, const t_type &right)
Finds the minimum of the given arguments based on the < operator Author: Tyler Parke Date: 2017-11-05...
Definition BaseFunctions.hpp:56