API Documentation
Loading...
Searching...
No Matches
SunDial Class Reference

A decorated dial class that allows the user to set the lighting direction. More...

#include <SunDial.h>

Inheritance diagram for SunDial:
[legend]
Collaboration diagram for SunDial:
[legend]

Public Member Functions

Vector< 2, fltp04centerPoint () const
 
Vector< 2, fltp04knobLocation () const
 
fltp04 knobRadius () const
 
virtual void mouseMoveEvent (QMouseEvent *ev) override
 
virtual void mousePressEvent (QMouseEvent *ev) override
 
virtual void mouseReleaseEvent (QMouseEvent *) override
 
fltp04 outerRadius () const
 
void setBackgroundColor (QColor inner, QColor outer)
 
void setKnobColor (QColor inner, QColor outer)
 
QSize sizeHint () const override
 
 SunDial (QWidget *parent=nullptr)
 

Public Attributes

Resource< Vector< 2, fltp04 > > location
 

Protected Member Functions

void paintEvent (QPaintEvent *paint_event) override
 

Protected Attributes

bool m_dragging
 
QColor m_inner_color
 
fltp04 m_inner_radius
 
QColor m_knob_inner_color
 
QColor m_knob_outer_color
 
fltp04 m_knob_radius
 
QColor m_outer_color
 

Detailed Description

A decorated dial class that allows the user to set the lighting direction.


Constructor & Destructor Documentation

◆ SunDial()

SunDial ( QWidget * parent = nullptr)

Member Function Documentation

◆ centerPoint()

Vector< 2, fltp04 > centerPoint ( ) const

◆ knobLocation()

Vector< 2, fltp04 > knobLocation ( ) const

◆ knobRadius()

fltp04 knobRadius ( ) const
inline

◆ mouseMoveEvent()

virtual void mouseMoveEvent ( QMouseEvent * ev)
overridevirtual

◆ mousePressEvent()

virtual void mousePressEvent ( QMouseEvent * ev)
overridevirtual

◆ mouseReleaseEvent()

virtual void mouseReleaseEvent ( QMouseEvent * )
inlineoverridevirtual

◆ outerRadius()

fltp04 outerRadius ( ) const

◆ paintEvent()

void paintEvent ( QPaintEvent * paint_event)
overrideprotected

◆ setBackgroundColor()

void setBackgroundColor ( QColor inner,
QColor outer )

◆ setKnobColor()

void setKnobColor ( QColor inner,
QColor outer )

◆ sizeHint()

QSize sizeHint ( ) const
inlineoverride

Member Data Documentation

◆ location

Resource<Vector<2, fltp04> > location

◆ m_dragging

bool m_dragging
protected

◆ m_inner_color

QColor m_inner_color
protected

◆ m_inner_radius

fltp04 m_inner_radius
protected

◆ m_knob_inner_color

QColor m_knob_inner_color
protected

◆ m_knob_outer_color

QColor m_knob_outer_color
protected

◆ m_knob_radius

fltp04 m_knob_radius
protected

◆ m_outer_color

QColor m_outer_color
protected

The documentation for this class was generated from the following file: