cut  1.2.2-pre1
Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties | List of all members
QeDartBoard Class Reference

Dartboard widget. More...

#include <CutWidgets.h>

Inheritance diagram for QeDartBoard:

Public Slots

void setCurrentAlt (double newValue)
 

Signals

void currentAltChanged (double newValue)
 Indicates that the current altitude value has changed. More...
 
void currentAzChanged (double newValue)
 Indicates that the current azimuth value has changed. More...
 
void targetAltChanged (double newValue)
 Indicates that the target altitude value has changed. More...
 
void targetAzChanged (double newValue)
 Indicates that the target azimuth value has changed. More...
 
void telescopeLatChanged (double newValue)
 Indicates that telescope latitude has changed. More...
 
void telescopeLongChanged (double newValue)
 Indicates that telescope longitude has changed. More...
 
void windDirectionChanged (double newValue)
 Indicates that the wind direction has changed. More...
 

Public Member Functions

 QeDartBoard (QWidget *parent=Q_NULLPTR)
 
 ~QeDartBoard ()
 
double getCurrentAlt ()
 
double getCurrentAz ()
 
double getTargetAlt ()
 
double getTargetAz ()
 
double getTelescopeLat ()
 
double getTelescopeLong ()
 
double getWindDirection ()
 
void setCurrentAz (double newValue)
 
void setTargetAlt (double newValue)
 
void setTargetAz (double newValue)
 
void setTelescopeLat (double newValue)
 
void setTelescopeLong (double newValue)
 
void setWindDirection (double newValue)
 

Protected Member Functions

void paintEvent (QPaintEvent *event)
 

Properties

double currentAlt
 Altitude coordinate of the current position in radians. More...
 
double currentAz
 Azimuth coordinate of the current position in radians. More...
 
double targetAlt
 Altitude coordinate of the target position in radians. More...
 
double targetAz
 Azimuth coordinate of the target position in radians. More...
 
double telescopeLat
 Telescope Latitude position – currently not used @accessors getTelescopeLat(), setTelescopeLat(double) More...
 
double telescopeLong
 Telescope Longitude position – currently not used @accessors getTelescopeLong(), setTelescopeLong() More...
 
double windDirection
 Wind direction – currently not used @accessors getWindDirection(), setWindDirection() More...
 

Detailed Description

Dartboard widget.

It renders a target and a current position in an Alt/Az radial view.

The Dartboard is a custom widget that renders in radial coordinates the Altitude and Azimuth of two positions: the target, and the current.

Values in the radial axis range from Pi/2 radians at the center, to 0 at the outer border. Values in the angular axis start with 0 radians from the South position, and increase starting counter-clockwise up to 2*Pi radians.

The target is rendered in red, and the current position in blue.

@TODO: update to Control GUI Guidelines colors

Constructor & Destructor Documentation

◆ QeDartBoard()

QeDartBoard::QeDartBoard ( QWidget *  parent = Q_NULLPTR)
explicit

◆ ~QeDartBoard()

QeDartBoard::~QeDartBoard ( )

Member Function Documentation

◆ currentAltChanged

void QeDartBoard::currentAltChanged ( double  newValue)
signal

Indicates that the current altitude value has changed.

Parameters
newValueNew value for the current altitude in radians.

◆ currentAzChanged

void QeDartBoard::currentAzChanged ( double  newValue)
signal

Indicates that the current azimuth value has changed.

Parameters
newValueNew value for the current azimuth in radians.

◆ getCurrentAlt()

double QeDartBoard::getCurrentAlt ( )
inline

◆ getCurrentAz()

double QeDartBoard::getCurrentAz ( )
inline

◆ getTargetAlt()

double QeDartBoard::getTargetAlt ( )
inline

◆ getTargetAz()

double QeDartBoard::getTargetAz ( )
inline

◆ getTelescopeLat()

double QeDartBoard::getTelescopeLat ( )
inline

◆ getTelescopeLong()

double QeDartBoard::getTelescopeLong ( )
inline

◆ getWindDirection()

double QeDartBoard::getWindDirection ( )
inline

◆ paintEvent()

void QeDartBoard::paintEvent ( QPaintEvent *  event)
protected

◆ setCurrentAlt

void QeDartBoard::setCurrentAlt ( double  newValue)
inlineslot

◆ setCurrentAz()

void QeDartBoard::setCurrentAz ( double  newValue)
inline

◆ setTargetAlt()

void QeDartBoard::setTargetAlt ( double  newValue)
inline

◆ setTargetAz()

void QeDartBoard::setTargetAz ( double  newValue)
inline

◆ setTelescopeLat()

void QeDartBoard::setTelescopeLat ( double  newValue)
inline

◆ setTelescopeLong()

void QeDartBoard::setTelescopeLong ( double  newValue)
inline

◆ setWindDirection()

void QeDartBoard::setWindDirection ( double  newValue)
inline

◆ targetAltChanged

void QeDartBoard::targetAltChanged ( double  newValue)
signal

Indicates that the target altitude value has changed.

Parameters
newValueNew value for the target altitude in radians.

◆ targetAzChanged

void QeDartBoard::targetAzChanged ( double  newValue)
signal

Indicates that the target azimuth value has changed.

Parameters
newValueNew value for the target azimuth in radians.

◆ telescopeLatChanged

void QeDartBoard::telescopeLatChanged ( double  newValue)
signal

Indicates that telescope latitude has changed.

Parameters
newValueNew value telescope latitude.

◆ telescopeLongChanged

void QeDartBoard::telescopeLongChanged ( double  newValue)
signal

Indicates that telescope longitude has changed.

Parameters
newValueNew value telescope longitude.

◆ windDirectionChanged

void QeDartBoard::windDirectionChanged ( double  newValue)
signal

Indicates that the wind direction has changed.

Parameters
newValueNew value for the wind direction in radians.

Property Documentation

◆ currentAlt

double QeDartBoard::currentAlt
readwrite

Altitude coordinate of the current position in radians.

@accessors getCurrentAlt(), setCurrentAlt(double)

◆ currentAz

double QeDartBoard::currentAz
readwrite

Azimuth coordinate of the current position in radians.

@accessors getCurrentAz(), setCurrentAz(double)

◆ targetAlt

double QeDartBoard::targetAlt
readwrite

Altitude coordinate of the target position in radians.

@accessors getTargetAlt(), setTargetAlt(double)

◆ targetAz

double QeDartBoard::targetAz
readwrite

Azimuth coordinate of the target position in radians.

@accessors getTargetAz(), setTargetAz(double)

◆ telescopeLat

double QeDartBoard::telescopeLat
readwrite

Telescope Latitude position – currently not used @accessors getTelescopeLat(), setTelescopeLat(double)

◆ telescopeLong

double QeDartBoard::telescopeLong
readwrite

Telescope Longitude position – currently not used @accessors getTelescopeLong(), setTelescopeLong()

◆ windDirection

double QeDartBoard::windDirection
readwrite

Wind direction – currently not used @accessors getWindDirection(), setWindDirection()


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