casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes
casa::SpectralPositioningWidget Class Reference

#include <SpectralPositioningWidget.qo.h>

List of all members.

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
ProfileTaskMonitorprofileTaskMonitor
LogIOlogger
Vector< DoublepixelXValues
Vector< DoublepixelYValues
Vector< DoubleworldXValues
Vector< DoubleworldYValues

Detailed Description

Definition at line 12 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 68 of file SpectralPositioningWidget.qo.h.

Enumerator:
POINT 
BOX 
END_POSITION_TYPE 

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

Enumerator:
POINT_PIXEL 
POINT_RA_DEC 
BOX_PIXEL 
BOX_RA_DEC 

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

Enumerator:
RADIAN 
PIXEL 
END_UNIT 

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


Constructor & Destructor Documentation


Member Function Documentation

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]

Initializes the spectrum positioning tab.

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::setPixelLineEdits ( double  topLeft,
double  bottomLeft,
double  topRight,
double  bottomRight 
) [private]
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 
)

Member Data Documentation

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

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

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.


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