ddt 1.1.0
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
DdtCursorInfoWidget Class Reference

The DdtCursorInfoWidget class Class for the Cursor Info Widget that can be used to report information on the point currently under the mouse pointer inside the image widget. More...

#include <ddtCursorInfoWidget.hpp>

Inheritance diagram for DdtCursorInfoWidget:
DdtWidget

Public Member Functions

virtual ~DdtCursorInfoWidget ()=default
 
- Public Member Functions inherited from DdtWidget
virtual ~DdtWidget ()=default
 
 DdtWidget (QWidget *parent=nullptr)
 DdtWidget.
 
QWidget * AddParentWidget (QLayout *child_layout)
 AddParentWidget This will add the given layout to a QGroupBox Widget to integrate in the parent layout.
 
void connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 connect Group of overloaded functions that use the QObject::connect method with the Qt::QueuedConnection flag. This defines Qt Signal and Slots connection the same way thought out the QApplication.
 
void connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
void connect (const QObject *sender, const char *signal, const char *member)
 
template<typename Func1 , typename Func2 >
void connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot)
 connect Template version of QObject::connection with fixed Qt::QueuedConnection flag. Normally used to connect a signal with a lambda function.
 

Properties

bool show_radec = false
 show_radec Flag if RADEC coordinates should be displayed
 
bool show_xy = true
 show_xy Flag if X-Y coordinates should be displayed
 
int xy_digits = 3
 digits Quantity of numbers after the comma shown of the x and y coorindates.
 
int value_digits = 5
 valueDigits Quantity of numbers after the comma shown of the pixel value.
 
 DdtCursorInfoWidget (QWidget *parent=nullptr)
 
void set_show_radec (const bool show_radec)
 
bool get_show_radec () const
 
void set_show_xy (const bool show_xy)
 
bool get_show_xy () const
 
void set_xy_digits (const int digits)
 set_xy_digits
 
int get_xy_digits () const
 get_xy_digits
 
void set_value_digits (int digits)
 set_value_digits
 
int get_value_digits () const
 get_value_digits
 
void Reset ()
 
void CursorInfo (double x, double y, double pixelvalue, QString ra, QString decl)
 

Detailed Description

The DdtCursorInfoWidget class Class for the Cursor Info Widget that can be used to report information on the point currently under the mouse pointer inside the image widget.

Constructor & Destructor Documentation

◆ DdtCursorInfoWidget()

DdtCursorInfoWidget::DdtCursorInfoWidget ( QWidget *  parent = nullptr)
explicit

Constructor

Parameters
parentPointer to the parent widget

◆ ~DdtCursorInfoWidget()

virtual DdtCursorInfoWidget::~DdtCursorInfoWidget ( )
virtualdefault

Destructor

Member Function Documentation

◆ CursorInfo

void DdtCursorInfoWidget::CursorInfo ( double  x,
double  y,
double  pixelvalue,
QString  ra,
QString  decl 
)
protectedslot

Slot for receiving the current pixel coordinate and pixelvalue to display

◆ get_show_radec()

bool DdtCursorInfoWidget::get_show_radec ( ) const

Retrieve the value of the show_radec flag

Returns
the value of the show_radec flag

◆ get_show_xy()

bool DdtCursorInfoWidget::get_show_xy ( ) const

Retrieve the value of the show_xy flag

Returns
the value of the show_xy flag

◆ get_value_digits()

int DdtCursorInfoWidget::get_value_digits ( ) const

get_value_digits

Returns
the actually set quantity of numbers which whell be shown after the comma of the pixel value

◆ get_xy_digits()

int DdtCursorInfoWidget::get_xy_digits ( ) const

get_xy_digits

Returns
the actually set quantity of numbers which whell be shown after the comma of the x and y coordinates

◆ Reset

void DdtCursorInfoWidget::Reset ( )
slot

Slot which is called when the image in the image widget is cleared

◆ set_show_radec()

void DdtCursorInfoWidget::set_show_radec ( const bool  show_radec)

Set the value for the flag indicating if the RADEC coordinates should be displayed

Parameters
show_radecflag to select display of coordinates

◆ set_show_xy()

void DdtCursorInfoWidget::set_show_xy ( const bool  show_xy)

Set the value for the flag indicating if the X-Y coordinates should be displayed

Parameters
show_xyflag to select display of coordinates

◆ set_value_digits()

void DdtCursorInfoWidget::set_value_digits ( int  digits)

set_value_digits

Parameters
digitsthe quantity of numbers which shell be shown after the comma of the pixel value

◆ set_xy_digits()

void DdtCursorInfoWidget::set_xy_digits ( const int  digits)

set_xy_digits

Parameters
digitsthe quantity of numbers which shell be shown after the comma of the x and y coordinates

Property Documentation

◆ show_radec

bool DdtCursorInfoWidget::show_radec = false
readwrite

show_radec Flag if RADEC coordinates should be displayed

◆ show_xy

bool DdtCursorInfoWidget::show_xy = true
readwrite

show_xy Flag if X-Y coordinates should be displayed

◆ value_digits

int DdtCursorInfoWidget::value_digits = 5
readwrite

valueDigits Quantity of numbers after the comma shown of the pixel value.

◆ xy_digits

int DdtCursorInfoWidget::xy_digits = 3
readwrite

digits Quantity of numbers after the comma shown of the x and y coorindates.


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