casa
$Rev:20696$
|
#include <SpectralPositioningWidget.qo.h>
Public Member Functions | |
SpectralPositioningWidget (QWidget *parent=0) | |
void | setTaskMonitor (ProfileTaskMonitor *monitor) |
void | setLogger (LogIO *logger) |
void | updateRegion (const Vector< Double > px, const Vector< Double > py, const Vector< Double > wx, const Vector< Double > wy) |
~SpectralPositioningWidget () | |
Private Types | |
enum | PositionTypeIndex { POINT, BOX, END_POSITION_TYPE } |
enum | UnitIndex { RADIAN, PIXEL, END_UNIT } |
enum | StackPages { POINT_PIXEL, POINT_RA_DEC, BOX_PIXEL, BOX_RA_DEC } |
enum | BoxSpecificationIndex { TL_LENGTH_HEIGHT, CENTER_LENGTH_HEIGHT, TL_BR, BL_TR, TL_LENGTH_HEIGHT_WORLD, CENTER_LENGTH_HEIGHT_WORLD, TL_BR_WORLD, BL_TR_WORLD, END_SPEC } |
Private Slots | |
void | boxSpecChanged (int index) |
void | locationSelectionTypeChanged (int index) |
void | locationUnitsChanged (int index) |
void | setPosition () |
Private Member Functions | |
void | updateUI () |
void | updateUIWorldBox () |
void | updateUIWorldPoint () |
void | updateUIPixelBox () |
void | updateUIPixelPoint () |
void | initSpectrumPosition () |
Initializes the spectrum positioning tab. | |
void | pageUpdate (int selectionIndex, int unitIndex) |
bool | populateWorlds (const QList< int > &pixelX, const QList< int > &pixelY, QList< double > &worldX, QList< double > &worldY) |
bool | fillPointWorld (QList< double > &worldX, QList< double > &worldY) |
void | fillPointPixel (QList< int > &pixelX, QList< int > &pixelY) const |
bool | fillBoxPixel (QList< int > &pixelX, QList< int > &pixelY) |
bool | fillBoxWorld (QList< double > &worldX, QList< double > &worldY) |
bool | fillBasedOnBoxSpecification (const double *const firstXPix, const double *const firstYPix, const double *const secondXPix, const double *const secondYPix, double *const blcxPix, double *const blcyPix, double *const trcxPix, double *const trcYPix, bool pixels=true) |
double | toRadians (Bool &valid, QLineEdit *lineEdit) |
void | switchBoxLabels (int index, int pageIndex, QLabel *const x1Label, QLabel *const y1Label, QLabel *const x2Label, QLabel *const y2Label) |
void | setPixelLineEdits (double topLeft, double bottomLeft, double topRight, double bottomRight) |
void | setWorldEdits (double topLeft, double bottomLeft, double topRight, double bottomRight) |
void | adjustPoint (const Vector< Double > &newX, const Vector< Double > &newY, Vector< Double > &xValues, Vector< Double > &yValues) |
Private Attributes | |
Ui::SpectralPositioningWidgetClass | ui |
QIntValidator * | pixelValidator |
QMap< BoxSpecificationIndex, QList< QString > > | boxLabelMap |
ProfileTaskMonitor * | profileTaskMonitor |
LogIO * | logger |
Vector< Double > | pixelXValues |
Vector< Double > | pixelYValues |
Vector< Double > | worldXValues |
Vector< Double > | worldYValues |
Definition at line 12 of file SpectralPositioningWidget.qo.h.
enum casa::SpectralPositioningWidget::BoxSpecificationIndex [private] |
TL_LENGTH_HEIGHT | |
CENTER_LENGTH_HEIGHT | |
TL_BR | |
BL_TR | |
TL_LENGTH_HEIGHT_WORLD | |
CENTER_LENGTH_HEIGHT_WORLD | |
TL_BR_WORLD | |
BL_TR_WORLD | |
END_SPEC |
Definition at line 68 of file SpectralPositioningWidget.qo.h.
enum casa::SpectralPositioningWidget::PositionTypeIndex [private] |
Definition at line 64 of file SpectralPositioningWidget.qo.h.
enum casa::SpectralPositioningWidget::StackPages [private] |
Definition at line 67 of file SpectralPositioningWidget.qo.h.
enum casa::SpectralPositioningWidget::UnitIndex [private] |
Definition at line 65 of file SpectralPositioningWidget.qo.h.
casa::SpectralPositioningWidget::SpectralPositioningWidget | ( | QWidget * | parent = 0 | ) |
void casa::SpectralPositioningWidget::adjustPoint | ( | const Vector< Double > & | newX, |
const Vector< Double > & | newY, | ||
Vector< Double > & | xValues, | ||
Vector< Double > & | yValues | ||
) | [private] |
void casa::SpectralPositioningWidget::boxSpecChanged | ( | int | index | ) | [private, slot] |
bool casa::SpectralPositioningWidget::fillBasedOnBoxSpecification | ( | const double *const | firstXPix, |
const double *const | firstYPix, | ||
const double *const | secondXPix, | ||
const double *const | secondYPix, | ||
double *const | blcxPix, | ||
double *const | blcyPix, | ||
double *const | trcxPix, | ||
double *const | trcYPix, | ||
bool | pixels = true |
||
) | [private] |
bool casa::SpectralPositioningWidget::fillBoxPixel | ( | QList< int > & | pixelX, |
QList< int > & | pixelY | ||
) | [private] |
bool casa::SpectralPositioningWidget::fillBoxWorld | ( | QList< double > & | worldX, |
QList< double > & | worldY | ||
) | [private] |
void casa::SpectralPositioningWidget::fillPointPixel | ( | QList< int > & | pixelX, |
QList< int > & | pixelY | ||
) | const [private] |
bool casa::SpectralPositioningWidget::fillPointWorld | ( | QList< double > & | worldX, |
QList< double > & | worldY | ||
) | [private] |
void casa::SpectralPositioningWidget::initSpectrumPosition | ( | ) | [private] |
Initializes the spectrum positioning tab.
void casa::SpectralPositioningWidget::locationSelectionTypeChanged | ( | int | index | ) | [private, slot] |
void casa::SpectralPositioningWidget::locationUnitsChanged | ( | int | index | ) | [private, slot] |
void casa::SpectralPositioningWidget::pageUpdate | ( | int | selectionIndex, |
int | unitIndex | ||
) | [private] |
bool casa::SpectralPositioningWidget::populateWorlds | ( | const QList< int > & | pixelX, |
const QList< int > & | pixelY, | ||
QList< double > & | worldX, | ||
QList< double > & | worldY | ||
) | [private] |
void casa::SpectralPositioningWidget::setLogger | ( | LogIO * | logger | ) |
void casa::SpectralPositioningWidget::setPixelLineEdits | ( | double | topLeft, |
double | bottomLeft, | ||
double | topRight, | ||
double | bottomRight | ||
) | [private] |
void casa::SpectralPositioningWidget::setPosition | ( | ) | [private, slot] |
void casa::SpectralPositioningWidget::setTaskMonitor | ( | ProfileTaskMonitor * | monitor | ) |
void casa::SpectralPositioningWidget::setWorldEdits | ( | double | topLeft, |
double | bottomLeft, | ||
double | topRight, | ||
double | bottomRight | ||
) | [private] |
void casa::SpectralPositioningWidget::switchBoxLabels | ( | int | index, |
int | pageIndex, | ||
QLabel *const | x1Label, | ||
QLabel *const | y1Label, | ||
QLabel *const | x2Label, | ||
QLabel *const | y2Label | ||
) | [private] |
double casa::SpectralPositioningWidget::toRadians | ( | Bool & | valid, |
QLineEdit * | lineEdit | ||
) | [private] |
void casa::SpectralPositioningWidget::updateRegion | ( | const Vector< Double > | px, |
const Vector< Double > | py, | ||
const Vector< Double > | wx, | ||
const Vector< Double > | wy | ||
) |
void casa::SpectralPositioningWidget::updateUI | ( | ) | [private] |
void casa::SpectralPositioningWidget::updateUIPixelBox | ( | ) | [private] |
void casa::SpectralPositioningWidget::updateUIPixelPoint | ( | ) | [private] |
void casa::SpectralPositioningWidget::updateUIWorldBox | ( | ) | [private] |
void casa::SpectralPositioningWidget::updateUIWorldPoint | ( | ) | [private] |
QMap<BoxSpecificationIndex,QList<QString> > casa::SpectralPositioningWidget::boxLabelMap [private] |
Definition at line 70 of file SpectralPositioningWidget.qo.h.
LogIO* casa::SpectralPositioningWidget::logger [private] |
Definition at line 72 of file SpectralPositioningWidget.qo.h.
QIntValidator* casa::SpectralPositioningWidget::pixelValidator [private] |
Definition at line 66 of file SpectralPositioningWidget.qo.h.
Definition at line 73 of file SpectralPositioningWidget.qo.h.
Definition at line 74 of file SpectralPositioningWidget.qo.h.
Definition at line 71 of file SpectralPositioningWidget.qo.h.
Ui::SpectralPositioningWidgetClass casa::SpectralPositioningWidget::ui [private] |
Definition at line 62 of file SpectralPositioningWidget.qo.h.
Definition at line 75 of file SpectralPositioningWidget.qo.h.
Definition at line 76 of file SpectralPositioningWidget.qo.h.