casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes | List of all members
casa::SpectralPositioningWidget Class Reference

#include <SpectralPositioningWidget.qo.h>

Inheritance diagram for casa::SpectralPositioningWidget:

Public Member Functions

 SpectralPositioningWidget (QWidget *parent=0)
 
void setTaskMonitor (ProfileTaskMonitor *monitor)
 
void setLogger (casacore::LogIO *logger)
 
void updateRegion (const casacore::Vector< double > px, const casacore::Vector< double > py, const casacore::Vector< double > wx, const casacore::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. More...
 
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 casacore::Vector< double > &newX, const casacore::Vector< double > &newY, casacore::Vector< double > &xValues, casacore::Vector< double > &yValues)
 

Private Attributes

Ui::SpectralPositioningWidgetClass ui
 
QIntValidator * pixelValidator
 
QMap< BoxSpecificationIndex,
QList< QString > > 
boxLabelMap
 
ProfileTaskMonitorprofileTaskMonitor
 
casacore::LogIOlogger
 
casacore::Vector< double > pixelXValues
 
casacore::Vector< double > pixelYValues
 
casacore::Vector< double > worldXValues
 
casacore::Vector< double > worldYValues
 

Detailed Description

Definition at line 16 of file SpectralPositioningWidget.qo.h.

Member Enumeration Documentation

Enumerator
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 71 of file SpectralPositioningWidget.qo.h.

Enumerator
POINT 
BOX 
END_POSITION_TYPE 

Definition at line 67 of file SpectralPositioningWidget.qo.h.

Enumerator
POINT_PIXEL 
POINT_RA_DEC 
BOX_PIXEL 
BOX_RA_DEC 

Definition at line 70 of file SpectralPositioningWidget.qo.h.

Enumerator
RADIAN 
PIXEL 
END_UNIT 

Definition at line 68 of file SpectralPositioningWidget.qo.h.

Constructor & Destructor Documentation

casa::SpectralPositioningWidget::SpectralPositioningWidget ( QWidget *  parent = 0)
casa::SpectralPositioningWidget::~SpectralPositioningWidget ( )

Member Function Documentation

void casa::SpectralPositioningWidget::adjustPoint ( const casacore::Vector< double > &  newX,
const casacore::Vector< double > &  newY,
casacore::Vector< double > &  xValues,
casacore::Vector< double > &  yValues 
)
private
void casa::SpectralPositioningWidget::boxSpecChanged ( int  index)
privateslot
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)
privateslot
void casa::SpectralPositioningWidget::locationUnitsChanged ( int  index)
privateslot
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 ( casacore::LogIO logger)
void casa::SpectralPositioningWidget::setPixelLineEdits ( double  topLeft,
double  bottomLeft,
double  topRight,
double  bottomRight 
)
private
void casa::SpectralPositioningWidget::setPosition ( )
privateslot
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 casacore::Vector< double >  px,
const casacore::Vector< double >  py,
const casacore::Vector< double >  wx,
const casacore::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

Member Data Documentation

QMap<BoxSpecificationIndex,QList<QString> > casa::SpectralPositioningWidget::boxLabelMap
private

Definition at line 74 of file SpectralPositioningWidget.qo.h.

casacore::LogIO* casa::SpectralPositioningWidget::logger
private

Definition at line 76 of file SpectralPositioningWidget.qo.h.

QIntValidator* casa::SpectralPositioningWidget::pixelValidator
private

Definition at line 69 of file SpectralPositioningWidget.qo.h.

casacore::Vector<double> casa::SpectralPositioningWidget::pixelXValues
private

Definition at line 77 of file SpectralPositioningWidget.qo.h.

casacore::Vector<double> casa::SpectralPositioningWidget::pixelYValues
private

Definition at line 78 of file SpectralPositioningWidget.qo.h.

ProfileTaskMonitor* casa::SpectralPositioningWidget::profileTaskMonitor
private

Definition at line 75 of file SpectralPositioningWidget.qo.h.

Ui::SpectralPositioningWidgetClass casa::SpectralPositioningWidget::ui
private

Definition at line 65 of file SpectralPositioningWidget.qo.h.

casacore::Vector<double> casa::SpectralPositioningWidget::worldXValues
private

Definition at line 79 of file SpectralPositioningWidget.qo.h.

casacore::Vector<double> casa::SpectralPositioningWidget::worldYValues
private

Definition at line 80 of file SpectralPositioningWidget.qo.h.


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