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

Note: The purpose of the SpecFitMonitor interface is to provide a communications interface between the class doing spectral line fitting and this class. More...

#include <QtProfile.qo.h>

Inheritance diagram for casa::QtProfile:
casa::ProfileTaskMonitor

Classes

class  spectra_info
 

Public Types

enum  ExtrType {
  MEAN,
  MEDIAN,
  SUM,
  MSE,
  RMSE,
  SQRTSUM,
  NSQRTSUM,
  FLUX,
  EFLUX
}
 
enum  PlotType {
  PMEAN,
  PMEDIAN,
  PSUM,
  PFLUX
}
 
enum  ErrorType {
  PNOERROR,
  PERMSE,
  PPROPAG
}
 
typedef std::pair< QString,
std::shared_ptr
< casacore::ImageInterface
< float > > > 
OverplotInterface
 
- Public Types inherited from casa::ProfileTaskMonitor
enum  PURPOSE {
  SPECTROSCOPY,
  MOMENTS_COLLAPSE
}
 

Public Slots

void zoomIn ()
 
void zoomOut ()
 
void zoomNeutral ()
 
void print ()
 
void saveGraphic ()
 
void printExp ()
 
void saveExp ()
 
void exportProfile ()
 
void up ()
 
void down ()
 
void left ()
 
void right ()
 
void preferences ()
 
void frameChanged (int)
 
void setPreferences (bool stateAutoX, bool stateAutoY, int showGrid, int stateMProf, int stateRel, bool showToolTips, bool showTopAxis, bool displayStepFunction, bool opticalFitter, bool showChannelLine, bool singleChannelImage)
 
void curveColorPreferences ()
 
void legendPreferences ()
 
void togglePalette (int modeIndex)
 
void setPlotError (int)
 
void changeCoordinate (const QString &text)
 
void changeFrame (const QString &text)
 
void changeCoordinateType (const QString &text)
 
void changeTopAxisCoordinateType (const QString &text)
 
virtual void closeEvent (QCloseEvent *)
 
void resetProfile (std::shared_ptr< casacore::ImageInterface< float > > img, const char *name=0)
 
void wcChanged (const casacore::String, const casacore::Vector< double >, const casacore::Vector< double >, const casacore::Vector< double >, const casacore::Vector< double >, const ProfileType)
 
void redraw ()
 
void changePlotType (const QString &text)
 
void changeErrorType (const QString &text)
 
void changeAxis (casacore::String xa, casacore::String ya, casacore::String za, std::vector< int >)
 
void changeSpectrum (casacore::String spcTypeUnit, casacore::String spcRval, casacore::String spcSys)
 
void plotMainCurve ()
 
void clearPlots ()
 
void setCollapseRange (double xmin, double xmax)
 
void overplot (QList< OverplotInterface >)
 
void newRegion (int, const QString &shape, const QString &name, const QList< double > &world_x, const QList< double > &world_y, const QList< int > &pixel_x, const QList< int > &pixel_y, const QString &linecolor, const QString &text, const QString &font, int fontsize, int fontstyle)
 
void updateRegion (int, viewer::region::RegionChanges, const QList< double > &world_x, const QList< double > &world_y, const QList< int > &pixel_x, const QList< int > &pixel_y)
 
void pixelsChanged (int, int)
 
void clearPaletteModes ()
 
bool isImageSupported (std::shared_ptr< casacore::ImageInterface< float > > img)
 Returns whether or not the image can be profiled. More...
 

Signals

void hideProfile ()
 
void coordinateChange (const casacore::String &)
 
void showCollapsedImg (casacore::String path, casacore::String dataType, casacore::String displayType, bool autoRegister, bool tmpData, std::shared_ptr< casacore::ImageInterface< float > > img)
 
void channelSelect (int channelIndex)
 
void adjustPosition (double tlcx, double tlcy, double brcx, double brcy)
 
void movieChannel (int startChannel, int endChannel)
 
void reloadImages ()
 

Public Member Functions

 QtProfile (std::shared_ptr< casacore::ImageInterface< float > > img, const char *name=0, QWidget *parent=0, std::string rcstr="prf")
 
 ~QtProfile ()
 
casacore::MFrequency::Types determineRefFrame (std::shared_ptr< casacore::ImageInterface< float > > img, bool check_native_frame=false)
 
virtual std::string rcid () const
 
void setPath (QString filePath)
 
void setPurpose (ProfileTaskMonitor::PURPOSE purpose)
 Allows the profiler to come up specialized to do spectroscopy or another task. More...
 
void postStatus (casacore::String status)
 These methods are from the ProfileTaskMoniter interface. More...
 
casacore::Vector< float > getXValues () const
 
casacore::Vector< float > getYValues () const
 
casacore::Vector< float > getZValues () const
 
casacore::Vector< double > getRegionXValues () const
 
casacore::Vector< double > getRegionYValues () const
 
QString getYUnit () const
 
QString getYUnitPrefix () const
 
casacore::String getXAxisUnit () const
 
QString getFileName () const
 
QString getImagePath () const
 
casacore::String getRegionShape () const
 
std::shared_ptr< const
casacore::ImageInterface
< float > > 
getImage (const QString &imageName="") const
 
virtual bool getBeamInfo (const QString &curveName, double &beamAngle, double &beamArea) const
 
void getPixelBounds (casacore::Vector< double > &pixelX, casacore::Vector< double > &pixelY) const
 
void persist (const QString &key, const QString &value)
 Specific to Moments. More...
 
QString read (const QString &key) const
 
void imageCollapsed (casacore::String path, casacore::String dataType, casacore::String displayType, bool autoRegister, bool tmpData, std::shared_ptr< casacore::ImageInterface< float > > img)
 
void setPosition (const QList< double > &xValues, const QList< double > &yValues)
 Specific to Spectrum Position setting. More...
 
void processTrackRecord (const casacore::String &dataName, const casacore::String &positionInfo)
 
virtual casacore::MFrequency::Types getReferenceFrame () const
 
QString getBrightnessUnit (std::shared_ptr< casacore::ImageInterface< float > > img) const
 
- Public Member Functions inherited from casa::ProfileTaskMonitor
 ProfileTaskMonitor ()
 
virtual void plotMainCurve ()=0
 
virtual ~ProfileTaskMonitor ()
 

Static Public Member Functions

static const casacore::StringSHAPE_ELLIPSE ()
 
static const casacore::StringSHAPE_RECTANGLE ()
 
static const casacore::StringSHAPE_POINT ()
 
static const casacore::StringSHAPE_POLY ()
 
static const QString & FREQUENCY ()
 
static const QString & CHANNEL ()
 

Private Types

typedef std::map< int,
spectra_info
SpectraInfoMap
 

Private Slots

void changeTopAxis ()
 
void updateXAxisLabel (const QString &text, QtPlotSettings::AxisIndex axisIndex)
 
void setDisplayYUnits (const QString &unitStr)
 
void channelSelect (float xval)
 
void channelRangeSelect (float channelStart, float channelEnd)
 
void showSmoothingPreferences ()
 
void replotCurves ()
 

Private Member Functions

void stringToPlotType (const QString &text, QtProfile::PlotType &pType)
 
void stringToErrorType (const QString &text, QtProfile::ErrorType &eType)
 
void fillPlotTypes (const std::shared_ptr< casacore::ImageInterface< float > > img)
 
void getcoordTypeUnit (casacore::String &ctypeUnitStr, casacore::String &cTypeStr, casacore::String &unitStr)
 
void printIt (QPrinter *)
 
bool exportASCIISpectrum (QString &fn)
 
bool exportFITSSpectrum (QString &fn)
 
void messageFromProfile (QString &msg)
 
void setUnitsText (casacore::String unitStr)
 
void resetYUnits (const QString &units)
 
void outputCurve (int k, QTextStream &ts, float scaleFactor)
 
int getFreqProfileTabularIndex (std::shared_ptr< const casacore::ImageInterface< float > > img)
 
casacore::SpectralCoordinate resetTabularConversion (std::shared_ptr< const casacore::ImageInterface< float > > imagePtr, bool &valid)
 
bool isSpectralAxis () const
 
void initializeSpectralProperties ()
 
casacore::SpectralCoordinate getSpectralAxis (std::shared_ptr< const casacore::ImageInterface< float > > imagePtr, bool &valid)
 
void resetXUnits (bool spectralAxis)
 
void updateSpectralReferenceFrame ()
 
int computeCB (const casacore::String &xa, const casacore::String &ya, const casacore::String &za)
 
void getBeamInfo (std::shared_ptr< const casacore::ImageInterface< float > > imagePtr, double &beamArea, double &beamSolidAngle) const
 
casacore::SpectralCoordinate getSpectralCoordinate (std::shared_ptr< const casacore::ImageInterface< float > > imagePtr, bool &valid)
 
bool parseRestFrequency (const casacore::String &restStr, casacore::Quantity &result) const
 
bool generateProfile (casacore::Vector< float > &resultXValues, casacore::Vector< float > &resultYValues, std::shared_ptr< casacore::ImageInterface< float > > imagePtr, const casacore::Vector< double > &regionX, const casacore::Vector< double > &regionY, casacore::String shape, QtProfile::ExtrType combineType, casacore::String &unit, const casacore::String &coordinateType, int qualityAxis, casacore::String restFreq="", const casacore::String &frame="")
 
pair< casacore::Vector< float >
, casacore::Vector< float > > 
convertIntensity (const casacore::Vector< float > &sourceXVals, const casacore::Vector< float > &sourceYVals, std::shared_ptr< casacore::ImageInterface< float > > imagePtr, const QString &xUnits, const QString &yUnitsOld, const QString &yUnitsNew)
 
void saveAsPDF (const QString &fileName)
 
bool isAxisAscending (const casacore::Vector< float > &axisValues) const
 Returns false if first vector value is greater than the last vector value; otherwise returns true. More...
 
bool isVelocityUnit (const QString &unit) const
 
bool isFrequencyUnit (const QString &unit) const
 
bool isWavelengthUnit (const QString &unit) const
 
void setTitle (const QString &shape)
 
void setTitle (const ProfileType ptype)
 
void copyToLastEvent (const casacore::String &c, const casacore::Vector< double > &px, const casacore::Vector< double > &py, const casacore::Vector< double > &wx, const casacore::Vector< double > &wy)
 
void setPlotType (int wcArraySize)
 
bool checkCube ()
 
void assignCoordinate (const casacore::String &c)
 
void initializeCoordinateVectors (const casacore::Vector< double > &px, const casacore::Vector< double > &py, const casacore::Vector< double > &wx, const casacore::Vector< double > &wy, casacore::Vector< double > &pxv, casacore::Vector< double > &pyv, casacore::Vector< double > &wxv, casacore::Vector< double > &wyv) const
 
void setPositionStatus (const casacore::Vector< double > &pxv, const casacore::Vector< double > &pyv, const casacore::Vector< double > &wxv, const casacore::Vector< double > &wyv)
 
bool assignFrequencyProfile (const casacore::Vector< double > &wxv, const casacore::Vector< double > &wyv, const casacore::String &coordinateType, casacore::String &xAxisUnit, casacore::Vector< float > &z_xval, casacore::Vector< float > &z_yval, const casacore::String &shape)
 
bool setErrorPlotting (const casacore::Vector< double > &wxv, const casacore::Vector< double > &wyv)
 
void storeCoordinates (const casacore::Vector< double > pxv, const casacore::Vector< double > pyv, const casacore::Vector< double > wxv, const casacore::Vector< double > wyv)
 
void addCanvasMainCurve (const casacore::Vector< float > &xVals, const casacore::Vector< float > &yVals, const QString &label, double beamAngle, double beamArea, casacore::SpectralCoordinate coord)
 
bool adjustTopAxisSettings ()
 
void initializeXAxisUnits ()
 
void setXAxisUnits ()
 
void initSmoothing ()
 
void setPixelCanvasYUnits (const QString &yUnitPrefix, const QString &yUnit)
 
void toggleAction (QAction *action)
 
int scaleAxis ()
 
void addImageAnalysisGraph (const casacore::Vector< double > &wxv, const casacore::Vector< double > &wyv, int ordersOfM)
 
void initializeSolidAngle () const
 
QString getRaDec (double x, double y)
 Conversion. More...
 
int findNearestChannel (float xval) const
 Finds the channel index closest to the passed in value. More...
 
void initPreferences ()
 
void updateAxisUnitCombo (const QString &textToMatch, QComboBox *axisUnitCombo)
 
void setYUnitConversionVisibility (bool visible)
 
bool isXUnitsMatch (const QString &matchUnits)
 For deciding whether or not it makes sense to show the top axis when multiple images are loaded. More...
 
bool isFrequencyMatch ()
 
bool isVelocityMatch ()
 
int getChannelCount (std::shared_ptr< casacore::ImageInterface< float > > &img)
 
std::shared_ptr
< casacore::ImageInterface
< float > > 
findImageWithMaximumChannels ()
 
void restrictTopAxisOptions (bool restrictOptions, const QString &bottomUnits, bool allowFrequency=true, bool allowVelocity=true)
 
double getUnitsPerChannel (std::shared_ptr< casacore::ImageInterface< float > > img, bool *ok, const QString &matchUnits)
 
QString readTopAxis () const
 
void persistTopAxis (const QString &units)
 
void assignProfileType (const casacore::String &shape, int regionPointCount)
 
void addOverplotToCanvas (std::shared_ptr< casacore::ImageInterface< float > > imagePtr, const casacore::Vector< float > &xVals, const casacore::Vector< float > &yVals, const QString &ky)
 
bool isProfileChanged (const casacore::String &c, const casacore::Vector< double > &px, const casacore::Vector< double > &py, const casacore::Vector< double > &wx, const casacore::Vector< double > &wy, const ProfileType pType)
 
bool _generateProfile (casacore::Vector< float > &resultXValues, casacore::Vector< float > &resultYValues, std::shared_ptr< const casacore::ImageInterface< float > > imagePtr, const casacore::Vector< double > &regionX, const casacore::Vector< double > &regionY, casacore::String shape, QtProfile::ExtrType combineType, casacore::String &unit, const casacore::String &coordinateType, casacore::String restFreq, const casacore::String &frame)
 
bool customizeSpectralReferenceFrame (const QString &specialType)
 Handle custom spectral reference frames such as REST and Undefined for which conversions are not possible. More...
 
pair< double, double > getMaximumTemperature ()
 
void postConversionWarning (QString unitStr)
 
void adjustPlotUnits ()
 

Static Private Member Functions

static const QString & PLOT_TYPE_FLUX ()
 
static const QString & PLOT_TYPE_MEAN ()
 
static const QString & PLOT_TYPE_MEDIAN ()
 
static const QString & PLOT_TYPE_SUM ()
 
static const QString & VELOCITY ()
 
static const QString & OPTICAL ()
 
static const QString & AIR ()
 
static const QString & FRAME_REST ()
 
static const QString & FRAME_NONE ()
 
static const QString & PERSIST_FREQUENCY_BOTTOM ()
 
static const QString & PERSIST_FREQUENCY_TOP ()
 
static const QString & IMAGE_MISSING_ERROR ()
 
static const QString & MISSING_REGION_ERROR ()
 
static const QString & NO_PROFILE_ERROR ()
 
static const QString & REGION_ELLIPSE ()
 
static const QString & REGION_RECTANGLE ()
 
static const QString & REGION_POINT ()
 
static const QString & REGION_POLY ()
 

Private Attributes

std::shared_ptr
< casacore::ImageInterface
< float > > 
image
 
QList< OverplotInterface > * over
 
const casacore::String WORLD_COORDINATES
 
casacore::String coordinate
 
casacore::String coordinateType_p
 
casacore::String xaxisUnit
 
casacore::String ctypeUnit
 
casacore::String spcRefFrame
 
casacore::String cSysRval
 Rest frequency quantity and unit. More...
 
QString fileName
 
QString imagePath
 
QString position
 
QString yUnit
 
QString yUnitPrefix
 
QStringList xUnitsList
 Holds the available x-axis units. More...
 
QString xpos
 
QString ypos
 
int cube
 
int npoints
 
int npoints_old
 
int stateMProf
 
int stateRel
 
casacore::Vector< float > z_xval
 
casacore::Vector< float > z_yval
 
casacore::Vector< double > lastPX
 
casacore::Vector< double > lastPY
 
casacore::Vector< double > lastWX
 
casacore::Vector< double > lastWY
 
casacore::Vector< float > z_eval
 
QString region
 
casacore::String last_event_cs
 
casacore::Vector< double > last_event_px
 
casacore::Vector< double > last_event_py
 
casacore::Vector< double > last_event_wx
 
casacore::Vector< double > last_event_wy
 
casacore::Casarcrc
 connection to rc file More...
 
std::string rcid_
 rc id for this panel type More...
 
QtProfile::PlotType itsPlotType
 
QtProfile::ErrorType itsErrorType
 
casacore::LogIOitsLog
 
int ordersOfM_
 
bool newCollapseVals
 
bool showTopAxis
 
bool showSingleChannelImage
 
const int NO_REGION_ID
 
int current_region_id
 
SpectraInfoMap spectra_info_map
 
ProfileType profileType
 
casacore::String lastShape
 
ColorSummaryWidgetcolorSummaryWidget
 
LegendPreferenceslegendPreferencesDialog
 
QtCanvaspixelCanvas
 
QtProfilePrefsprofilePrefs
 
SmoothPreferencessmoothWidget
 
int frameIndex
 
bool newOverplots
 

Static Private Attributes

static bool topAxisDefaultSet
 

Detailed Description

Note: The purpose of the SpecFitMonitor interface is to provide a communications interface between the class doing spectral line fitting and this class.

By using an interface, we can decouple this class and the class doing the work of spectral fitting as much as possible.

Definition at line 93 of file QtProfile.qo.h.

Member Typedef Documentation

typedef std::pair<QString, std::shared_ptr<casacore::ImageInterface<float> > > casa::QtProfile::OverplotInterface

Definition at line 170 of file QtProfile.qo.h.

typedef std::map<int,spectra_info> casa::QtProfile::SpectraInfoMap
private

Definition at line 544 of file QtProfile.qo.h.

Member Enumeration Documentation

Enumerator
PNOERROR 
PERMSE 
PPROPAG 

Definition at line 117 of file QtProfile.qo.h.

Enumerator
MEAN 
MEDIAN 
SUM 
MSE 
RMSE 
SQRTSUM 
NSQRTSUM 
FLUX 
EFLUX 

Definition at line 97 of file QtProfile.qo.h.

Enumerator
PMEAN 
PMEDIAN 
PSUM 
PFLUX 

PVRMSE,.

Definition at line 109 of file QtProfile.qo.h.

Constructor & Destructor Documentation

casa::QtProfile::QtProfile ( std::shared_ptr< casacore::ImageInterface< float > >  img,
const char *  name = 0,
QWidget *  parent = 0,
std::string  rcstr = "prf" 
)
casa::QtProfile::~QtProfile ( )

Member Function Documentation

bool casa::QtProfile::_generateProfile ( casacore::Vector< float > &  resultXValues,
casacore::Vector< float > &  resultYValues,
std::shared_ptr< const casacore::ImageInterface< float > >  imagePtr,
const casacore::Vector< double > &  regionX,
const casacore::Vector< double > &  regionY,
casacore::String  shape,
QtProfile::ExtrType  combineType,
casacore::String unit,
const casacore::String coordinateType,
casacore::String  restFreq,
const casacore::String frame 
)
private
void casa::QtProfile::addCanvasMainCurve ( const casacore::Vector< float > &  xVals,
const casacore::Vector< float > &  yVals,
const QString &  label,
double  beamAngle,
double  beamArea,
casacore::SpectralCoordinate  coord 
)
private
void casa::QtProfile::addImageAnalysisGraph ( const casacore::Vector< double > &  wxv,
const casacore::Vector< double > &  wyv,
int  ordersOfM 
)
private
void casa::QtProfile::addOverplotToCanvas ( std::shared_ptr< casacore::ImageInterface< float > >  imagePtr,
const casacore::Vector< float > &  xVals,
const casacore::Vector< float > &  yVals,
const QString &  ky 
)
private
void casa::QtProfile::adjustPlotUnits ( )
private
void casa::QtProfile::adjustPosition ( double  tlcx,
double  tlcy,
double  brcx,
double  brcy 
)
signal
bool casa::QtProfile::adjustTopAxisSettings ( )
private
static const QString& casa::QtProfile::AIR ( )
inlinestaticprivate

Definition at line 473 of file QtProfile.qo.h.

void casa::QtProfile::assignCoordinate ( const casacore::String c)
private
bool casa::QtProfile::assignFrequencyProfile ( const casacore::Vector< double > &  wxv,
const casacore::Vector< double > &  wyv,
const casacore::String coordinateType,
casacore::String xAxisUnit,
casacore::Vector< float > &  z_xval,
casacore::Vector< float > &  z_yval,
const casacore::String shape 
)
private
void casa::QtProfile::assignProfileType ( const casacore::String shape,
int  regionPointCount 
)
private
void casa::QtProfile::changeAxis ( casacore::String  xa,
casacore::String  ya,
casacore::String  za,
std::vector< int >   
)
slot
void casa::QtProfile::changeCoordinate ( const QString &  text)
slot
void casa::QtProfile::changeCoordinateType ( const QString &  text)
slot
void casa::QtProfile::changeErrorType ( const QString &  text)
slot
void casa::QtProfile::changeFrame ( const QString &  text)
slot
void casa::QtProfile::changePlotType ( const QString &  text)
slot
void casa::QtProfile::changeSpectrum ( casacore::String  spcTypeUnit,
casacore::String  spcRval,
casacore::String  spcSys 
)
slot
void casa::QtProfile::changeTopAxis ( )
privateslot
void casa::QtProfile::changeTopAxisCoordinateType ( const QString &  text)
slot
static const QString& casa::QtProfile::CHANNEL ( )
inlinestatic

Definition at line 192 of file QtProfile.qo.h.

void casa::QtProfile::channelRangeSelect ( float  channelStart,
float  channelEnd 
)
privateslot
void casa::QtProfile::channelSelect ( int  channelIndex)
signal
void casa::QtProfile::channelSelect ( float  xval)
privateslot
bool casa::QtProfile::checkCube ( )
private
void casa::QtProfile::clearPaletteModes ( )
slot
void casa::QtProfile::clearPlots ( )
slot
virtual void casa::QtProfile::closeEvent ( QCloseEvent *  )
virtualslot
int casa::QtProfile::computeCB ( const casacore::String xa,
const casacore::String ya,
const casacore::String za 
)
private
pair<casacore::Vector<float>, casacore::Vector<float> > casa::QtProfile::convertIntensity ( const casacore::Vector< float > &  sourceXVals,
const casacore::Vector< float > &  sourceYVals,
std::shared_ptr< casacore::ImageInterface< float > >  imagePtr,
const QString &  xUnits,
const QString &  yUnitsOld,
const QString &  yUnitsNew 
)
private
void casa::QtProfile::coordinateChange ( const casacore::String )
signal
void casa::QtProfile::copyToLastEvent ( const casacore::String c,
const casacore::Vector< double > &  px,
const casacore::Vector< double > &  py,
const casacore::Vector< double > &  wx,
const casacore::Vector< double > &  wy 
)
private
void casa::QtProfile::curveColorPreferences ( )
slot
bool casa::QtProfile::customizeSpectralReferenceFrame ( const QString &  specialType)
private

Handle custom spectral reference frames such as REST and Undefined for which conversions are not possible.

casacore::MFrequency::Types casa::QtProfile::determineRefFrame ( std::shared_ptr< casacore::ImageInterface< float > >  img,
bool  check_native_frame = false 
)
void casa::QtProfile::down ( )
slot
bool casa::QtProfile::exportASCIISpectrum ( QString &  fn)
private
bool casa::QtProfile::exportFITSSpectrum ( QString &  fn)
private
void casa::QtProfile::exportProfile ( )
slot
void casa::QtProfile::fillPlotTypes ( const std::shared_ptr< casacore::ImageInterface< float > >  img)
private
std::shared_ptr<casacore::ImageInterface<float> > casa::QtProfile::findImageWithMaximumChannels ( )
private
int casa::QtProfile::findNearestChannel ( float  xval) const
private

Finds the channel index closest to the passed in value.

static const QString& casa::QtProfile::FRAME_NONE ( )
inlinestaticprivate

Definition at line 481 of file QtProfile.qo.h.

static const QString& casa::QtProfile::FRAME_REST ( )
inlinestaticprivate

Definition at line 477 of file QtProfile.qo.h.

void casa::QtProfile::frameChanged ( int  )
slot
static const QString& casa::QtProfile::FREQUENCY ( )
inlinestatic

Definition at line 188 of file QtProfile.qo.h.

bool casa::QtProfile::generateProfile ( casacore::Vector< float > &  resultXValues,
casacore::Vector< float > &  resultYValues,
std::shared_ptr< casacore::ImageInterface< float > >  imagePtr,
const casacore::Vector< double > &  regionX,
const casacore::Vector< double > &  regionY,
casacore::String  shape,
QtProfile::ExtrType  combineType,
casacore::String unit,
const casacore::String coordinateType,
int  qualityAxis,
casacore::String  restFreq = "",
const casacore::String frame = "" 
)
private
virtual bool casa::QtProfile::getBeamInfo ( const QString &  curveName,
double &  beamAngle,
double &  beamArea 
) const
virtual
void casa::QtProfile::getBeamInfo ( std::shared_ptr< const casacore::ImageInterface< float > >  imagePtr,
double &  beamArea,
double &  beamSolidAngle 
) const
private
QString casa::QtProfile::getBrightnessUnit ( std::shared_ptr< casacore::ImageInterface< float > >  img) const
int casa::QtProfile::getChannelCount ( std::shared_ptr< casacore::ImageInterface< float > > &  img)
private
void casa::QtProfile::getcoordTypeUnit ( casacore::String ctypeUnitStr,
casacore::String cTypeStr,
casacore::String unitStr 
)
private
QString casa::QtProfile::getFileName ( ) const
virtual
int casa::QtProfile::getFreqProfileTabularIndex ( std::shared_ptr< const casacore::ImageInterface< float > >  img)
private
std::shared_ptr<const casacore::ImageInterface<float> > casa::QtProfile::getImage ( const QString &  imageName = "") const
virtual
QString casa::QtProfile::getImagePath ( ) const
virtual
pair<double,double> casa::QtProfile::getMaximumTemperature ( )
private
void casa::QtProfile::getPixelBounds ( casacore::Vector< double > &  pixelX,
casacore::Vector< double > &  pixelY 
) const
virtual
QString casa::QtProfile::getRaDec ( double  x,
double  y 
)
private

Conversion.

virtual casacore::MFrequency::Types casa::QtProfile::getReferenceFrame ( ) const
virtual
casacore::String casa::QtProfile::getRegionShape ( ) const
virtual
casacore::Vector<double> casa::QtProfile::getRegionXValues ( ) const
virtual
casacore::Vector<double> casa::QtProfile::getRegionYValues ( ) const
virtual
casacore::SpectralCoordinate casa::QtProfile::getSpectralAxis ( std::shared_ptr< const casacore::ImageInterface< float > >  imagePtr,
bool &  valid 
)
private
casacore::SpectralCoordinate casa::QtProfile::getSpectralCoordinate ( std::shared_ptr< const casacore::ImageInterface< float > >  imagePtr,
bool &  valid 
)
privatevirtual
double casa::QtProfile::getUnitsPerChannel ( std::shared_ptr< casacore::ImageInterface< float > >  img,
bool *  ok,
const QString &  matchUnits 
)
private
casacore::String casa::QtProfile::getXAxisUnit ( ) const
virtual
casacore::Vector<float> casa::QtProfile::getXValues ( ) const
virtual
QString casa::QtProfile::getYUnit ( ) const
virtual
QString casa::QtProfile::getYUnitPrefix ( ) const
virtual
casacore::Vector<float> casa::QtProfile::getYValues ( ) const
virtual
casacore::Vector<float> casa::QtProfile::getZValues ( ) const
virtual
void casa::QtProfile::hideProfile ( )
signal
static const QString& casa::QtProfile::IMAGE_MISSING_ERROR ( )
inlinestaticprivate

Definition at line 493 of file QtProfile.qo.h.

void casa::QtProfile::imageCollapsed ( casacore::String  path,
casacore::String  dataType,
casacore::String  displayType,
bool  autoRegister,
bool  tmpData,
std::shared_ptr< casacore::ImageInterface< float > >  img 
)
virtual
void casa::QtProfile::initializeCoordinateVectors ( const casacore::Vector< double > &  px,
const casacore::Vector< double > &  py,
const casacore::Vector< double > &  wx,
const casacore::Vector< double > &  wy,
casacore::Vector< double > &  pxv,
casacore::Vector< double > &  pyv,
casacore::Vector< double > &  wxv,
casacore::Vector< double > &  wyv 
) const
private
void casa::QtProfile::initializeSolidAngle ( ) const
private
void casa::QtProfile::initializeSpectralProperties ( )
private
void casa::QtProfile::initializeXAxisUnits ( )
private
void casa::QtProfile::initPreferences ( )
private
void casa::QtProfile::initSmoothing ( )
private
bool casa::QtProfile::isAxisAscending ( const casacore::Vector< float > &  axisValues) const
private

Returns false if first vector value is greater than the last vector value; otherwise returns true.

bool casa::QtProfile::isFrequencyMatch ( )
private
bool casa::QtProfile::isFrequencyUnit ( const QString &  unit) const
private
bool casa::QtProfile::isImageSupported ( std::shared_ptr< casacore::ImageInterface< float > >  img)
slot

Returns whether or not the image can be profiled.

bool casa::QtProfile::isProfileChanged ( const casacore::String c,
const casacore::Vector< double > &  px,
const casacore::Vector< double > &  py,
const casacore::Vector< double > &  wx,
const casacore::Vector< double > &  wy,
const ProfileType  pType 
)
private
bool casa::QtProfile::isSpectralAxis ( ) const
private
bool casa::QtProfile::isVelocityMatch ( )
private
bool casa::QtProfile::isVelocityUnit ( const QString &  unit) const
private
bool casa::QtProfile::isWavelengthUnit ( const QString &  unit) const
private
bool casa::QtProfile::isXUnitsMatch ( const QString &  matchUnits)
private

For deciding whether or not it makes sense to show the top axis when multiple images are loaded.

void casa::QtProfile::left ( )
slot
void casa::QtProfile::legendPreferences ( )
slot
void casa::QtProfile::messageFromProfile ( QString &  msg)
private
static const QString& casa::QtProfile::MISSING_REGION_ERROR ( )
inlinestaticprivate

Definition at line 497 of file QtProfile.qo.h.

void casa::QtProfile::movieChannel ( int  startChannel,
int  endChannel 
)
signal
void casa::QtProfile::newRegion ( int  ,
const QString &  shape,
const QString &  name,
const QList< double > &  world_x,
const QList< double > &  world_y,
const QList< int > &  pixel_x,
const QList< int > &  pixel_y,
const QString &  linecolor,
const QString &  text,
const QString &  font,
int  fontsize,
int  fontstyle 
)
slot
static const QString& casa::QtProfile::NO_PROFILE_ERROR ( )
inlinestaticprivate

Definition at line 504 of file QtProfile.qo.h.

static const QString& casa::QtProfile::OPTICAL ( )
inlinestaticprivate

Definition at line 469 of file QtProfile.qo.h.

void casa::QtProfile::outputCurve ( int  k,
QTextStream &  ts,
float  scaleFactor 
)
private
void casa::QtProfile::overplot ( QList< OverplotInterface )
slot
bool casa::QtProfile::parseRestFrequency ( const casacore::String restStr,
casacore::Quantity result 
) const
private
void casa::QtProfile::persist ( const QString &  key,
const QString &  value 
)
virtual

Specific to Moments.

Implements casa::ProfileTaskMonitor.

static const QString& casa::QtProfile::PERSIST_FREQUENCY_BOTTOM ( )
inlinestaticprivate

Definition at line 485 of file QtProfile.qo.h.

static const QString& casa::QtProfile::PERSIST_FREQUENCY_TOP ( )
inlinestaticprivate

Definition at line 489 of file QtProfile.qo.h.

void casa::QtProfile::persistTopAxis ( const QString &  units)
private
void casa::QtProfile::pixelsChanged ( int  ,
int   
)
slot
static const QString& casa::QtProfile::PLOT_TYPE_FLUX ( )
inlinestaticprivate

Definition at line 448 of file QtProfile.qo.h.

static const QString& casa::QtProfile::PLOT_TYPE_MEAN ( )
inlinestaticprivate

Definition at line 452 of file QtProfile.qo.h.

static const QString& casa::QtProfile::PLOT_TYPE_MEDIAN ( )
inlinestaticprivate

Definition at line 456 of file QtProfile.qo.h.

static const QString& casa::QtProfile::PLOT_TYPE_SUM ( )
inlinestaticprivate

Definition at line 460 of file QtProfile.qo.h.

void casa::QtProfile::plotMainCurve ( )
slot
void casa::QtProfile::postConversionWarning ( QString  unitStr)
private
void casa::QtProfile::postStatus ( casacore::String  status)
virtual

These methods are from the ProfileTaskMoniter interface.

Their purpose is to provide the class doing the spectral profile fitting with initial input values, to inform this class of status and log messages indicated the result of a spectral fit, and to perform moments/collapsing.

Implements casa::ProfileTaskMonitor.

void casa::QtProfile::preferences ( )
slot
void casa::QtProfile::print ( )
slot
void casa::QtProfile::printExp ( )
slot
void casa::QtProfile::printIt ( QPrinter *  )
private
void casa::QtProfile::processTrackRecord ( const casacore::String dataName,
const casacore::String positionInfo 
)
virtual std::string casa::QtProfile::rcid ( ) const
inlinevirtual

Definition at line 131 of file QtProfile.qo.h.

References rcid_.

QString casa::QtProfile::read ( const QString &  key) const
virtual
QString casa::QtProfile::readTopAxis ( ) const
private
void casa::QtProfile::redraw ( )
slot
static const QString& casa::QtProfile::REGION_ELLIPSE ( )
inlinestaticprivate

Definition at line 509 of file QtProfile.qo.h.

static const QString& casa::QtProfile::REGION_POINT ( )
inlinestaticprivate

Definition at line 517 of file QtProfile.qo.h.

static const QString& casa::QtProfile::REGION_POLY ( )
inlinestaticprivate

Definition at line 521 of file QtProfile.qo.h.

static const QString& casa::QtProfile::REGION_RECTANGLE ( )
inlinestaticprivate

Definition at line 513 of file QtProfile.qo.h.

void casa::QtProfile::reloadImages ( )
signal
void casa::QtProfile::replotCurves ( )
privateslot
void casa::QtProfile::resetProfile ( std::shared_ptr< casacore::ImageInterface< float > >  img,
const char *  name = 0 
)
slot
casacore::SpectralCoordinate casa::QtProfile::resetTabularConversion ( std::shared_ptr< const casacore::ImageInterface< float > >  imagePtr,
bool &  valid 
)
private
void casa::QtProfile::resetXUnits ( bool  spectralAxis)
private
void casa::QtProfile::resetYUnits ( const QString &  units)
private
void casa::QtProfile::restrictTopAxisOptions ( bool  restrictOptions,
const QString &  bottomUnits,
bool  allowFrequency = true,
bool  allowVelocity = true 
)
private
void casa::QtProfile::right ( )
slot
void casa::QtProfile::saveAsPDF ( const QString &  fileName)
private
void casa::QtProfile::saveExp ( )
slot
void casa::QtProfile::saveGraphic ( )
slot
int casa::QtProfile::scaleAxis ( )
private
void casa::QtProfile::setCollapseRange ( double  xmin,
double  xmax 
)
slot
void casa::QtProfile::setDisplayYUnits ( const QString &  unitStr)
privateslot
bool casa::QtProfile::setErrorPlotting ( const casacore::Vector< double > &  wxv,
const casacore::Vector< double > &  wyv 
)
private
void casa::QtProfile::setPath ( QString  filePath)
inline

Definition at line 134 of file QtProfile.qo.h.

References imagePath.

void casa::QtProfile::setPixelCanvasYUnits ( const QString &  yUnitPrefix,
const QString &  yUnit 
)
private
void casa::QtProfile::setPlotError ( int  )
slot
void casa::QtProfile::setPlotType ( int  wcArraySize)
private
void casa::QtProfile::setPosition ( const QList< double > &  world_x,
const QList< double > &  world_y 
)
virtual

Specific to Spectrum Position setting.

Implements casa::ProfileTaskMonitor.

void casa::QtProfile::setPositionStatus ( const casacore::Vector< double > &  pxv,
const casacore::Vector< double > &  pyv,
const casacore::Vector< double > &  wxv,
const casacore::Vector< double > &  wyv 
)
private
void casa::QtProfile::setPreferences ( bool  stateAutoX,
bool  stateAutoY,
int  showGrid,
int  stateMProf,
int  stateRel,
bool  showToolTips,
bool  showTopAxis,
bool  displayStepFunction,
bool  opticalFitter,
bool  showChannelLine,
bool  singleChannelImage 
)
slot
void casa::QtProfile::setPurpose ( ProfileTaskMonitor::PURPOSE  purpose)
virtual

Allows the profiler to come up specialized to do spectroscopy or another task.

Implements casa::ProfileTaskMonitor.

void casa::QtProfile::setTitle ( const QString &  shape)
private
void casa::QtProfile::setTitle ( const ProfileType  ptype)
private
void casa::QtProfile::setUnitsText ( casacore::String  unitStr)
private
void casa::QtProfile::setXAxisUnits ( )
private
void casa::QtProfile::setYUnitConversionVisibility ( bool  visible)
private
static const casacore::String& casa::QtProfile::SHAPE_ELLIPSE ( )
inlinestatic

Definition at line 172 of file QtProfile.qo.h.

static const casacore::String& casa::QtProfile::SHAPE_POINT ( )
inlinestatic

Definition at line 180 of file QtProfile.qo.h.

static const casacore::String& casa::QtProfile::SHAPE_POLY ( )
inlinestatic

Definition at line 184 of file QtProfile.qo.h.

static const casacore::String& casa::QtProfile::SHAPE_RECTANGLE ( )
inlinestatic

Definition at line 176 of file QtProfile.qo.h.

void casa::QtProfile::showCollapsedImg ( casacore::String  path,
casacore::String  dataType,
casacore::String  displayType,
bool  autoRegister,
bool  tmpData,
std::shared_ptr< casacore::ImageInterface< float > >  img 
)
signal
void casa::QtProfile::showSmoothingPreferences ( )
privateslot
void casa::QtProfile::storeCoordinates ( const casacore::Vector< double >  pxv,
const casacore::Vector< double >  pyv,
const casacore::Vector< double >  wxv,
const casacore::Vector< double >  wyv 
)
private
void casa::QtProfile::stringToErrorType ( const QString &  text,
QtProfile::ErrorType eType 
)
private
void casa::QtProfile::stringToPlotType ( const QString &  text,
QtProfile::PlotType pType 
)
private
void casa::QtProfile::toggleAction ( QAction *  action)
private
void casa::QtProfile::togglePalette ( int  modeIndex)
slot
void casa::QtProfile::up ( )
slot
void casa::QtProfile::updateAxisUnitCombo ( const QString &  textToMatch,
QComboBox *  axisUnitCombo 
)
private
void casa::QtProfile::updateRegion ( int  ,
viewer::region::RegionChanges  ,
const QList< double > &  world_x,
const QList< double > &  world_y,
const QList< int > &  pixel_x,
const QList< int > &  pixel_y 
)
slot
void casa::QtProfile::updateSpectralReferenceFrame ( )
private
void casa::QtProfile::updateXAxisLabel ( const QString &  text,
QtPlotSettings::AxisIndex  axisIndex 
)
privateslot
static const QString& casa::QtProfile::VELOCITY ( )
inlinestaticprivate

Definition at line 465 of file QtProfile.qo.h.

void casa::QtProfile::wcChanged ( const casacore::String  ,
const casacore::Vector< double >  ,
const casacore::Vector< double >  ,
const casacore::Vector< double >  ,
const casacore::Vector< double >  ,
const ProfileType   
)
slot
void casa::QtProfile::zoomIn ( )
slot
void casa::QtProfile::zoomNeutral ( )
slot
void casa::QtProfile::zoomOut ( )
slot

Member Data Documentation

ColorSummaryWidget* casa::QtProfile::colorSummaryWidget
private

Definition at line 551 of file QtProfile.qo.h.

casacore::String casa::QtProfile::coordinate
private

Definition at line 395 of file QtProfile.qo.h.

casacore::String casa::QtProfile::coordinateType_p
private

Definition at line 396 of file QtProfile.qo.h.

casacore::String casa::QtProfile::cSysRval
private

Rest frequency quantity and unit.

Definition at line 402 of file QtProfile.qo.h.

casacore::String casa::QtProfile::ctypeUnit
private

Definition at line 398 of file QtProfile.qo.h.

int casa::QtProfile::cube
private

Definition at line 413 of file QtProfile.qo.h.

int casa::QtProfile::current_region_id
private

Definition at line 546 of file QtProfile.qo.h.

QString casa::QtProfile::fileName
private

Definition at line 404 of file QtProfile.qo.h.

int casa::QtProfile::frameIndex
private

Definition at line 556 of file QtProfile.qo.h.

std::shared_ptr<casacore::ImageInterface<float> > casa::QtProfile::image
private

Definition at line 363 of file QtProfile.qo.h.

QString casa::QtProfile::imagePath
private

Definition at line 405 of file QtProfile.qo.h.

Referenced by setPath().

QtProfile::ErrorType casa::QtProfile::itsErrorType
private

Definition at line 438 of file QtProfile.qo.h.

casacore::LogIO* casa::QtProfile::itsLog
private

Definition at line 441 of file QtProfile.qo.h.

QtProfile::PlotType casa::QtProfile::itsPlotType
private

Definition at line 437 of file QtProfile.qo.h.

casacore::String casa::QtProfile::last_event_cs
private

Definition at line 428 of file QtProfile.qo.h.

casacore::Vector<double> casa::QtProfile::last_event_px
private

Definition at line 429 of file QtProfile.qo.h.

casacore::Vector<double> casa::QtProfile::last_event_py
private

Definition at line 429 of file QtProfile.qo.h.

casacore::Vector<double> casa::QtProfile::last_event_wx
private

Definition at line 430 of file QtProfile.qo.h.

casacore::Vector<double> casa::QtProfile::last_event_wy
private

Definition at line 430 of file QtProfile.qo.h.

casacore::Vector<double> casa::QtProfile::lastPX
private

Definition at line 423 of file QtProfile.qo.h.

casacore::Vector<double> casa::QtProfile::lastPY
private

Definition at line 423 of file QtProfile.qo.h.

casacore::String casa::QtProfile::lastShape
private

Definition at line 549 of file QtProfile.qo.h.

casacore::Vector<double> casa::QtProfile::lastWX
private

Definition at line 424 of file QtProfile.qo.h.

casacore::Vector<double> casa::QtProfile::lastWY
private

Definition at line 424 of file QtProfile.qo.h.

LegendPreferences* casa::QtProfile::legendPreferencesDialog
private

Definition at line 552 of file QtProfile.qo.h.

bool casa::QtProfile::newCollapseVals
private

Definition at line 443 of file QtProfile.qo.h.

bool casa::QtProfile::newOverplots
private

Definition at line 557 of file QtProfile.qo.h.

const int casa::QtProfile::NO_REGION_ID
private

Definition at line 545 of file QtProfile.qo.h.

int casa::QtProfile::npoints
private

Definition at line 415 of file QtProfile.qo.h.

int casa::QtProfile::npoints_old
private

Definition at line 416 of file QtProfile.qo.h.

int casa::QtProfile::ordersOfM_
private

Definition at line 442 of file QtProfile.qo.h.

QList<OverplotInterface>* casa::QtProfile::over
private

Definition at line 393 of file QtProfile.qo.h.

QtCanvas* casa::QtProfile::pixelCanvas
private

Definition at line 553 of file QtProfile.qo.h.

QString casa::QtProfile::position
private

Definition at line 406 of file QtProfile.qo.h.

QtProfilePrefs* casa::QtProfile::profilePrefs
private

Definition at line 554 of file QtProfile.qo.h.

ProfileType casa::QtProfile::profileType
private

Definition at line 548 of file QtProfile.qo.h.

casacore::Casarc& casa::QtProfile::rc
private

connection to rc file

Definition at line 433 of file QtProfile.qo.h.

std::string casa::QtProfile::rcid_
private

rc id for this panel type

Definition at line 435 of file QtProfile.qo.h.

Referenced by rcid().

QString casa::QtProfile::region
private

Definition at line 426 of file QtProfile.qo.h.

bool casa::QtProfile::showSingleChannelImage
private

Definition at line 445 of file QtProfile.qo.h.

bool casa::QtProfile::showTopAxis
private

Definition at line 444 of file QtProfile.qo.h.

SmoothPreferences* casa::QtProfile::smoothWidget
private

Definition at line 555 of file QtProfile.qo.h.

casacore::String casa::QtProfile::spcRefFrame
private

Definition at line 399 of file QtProfile.qo.h.

SpectraInfoMap casa::QtProfile::spectra_info_map
private

Definition at line 547 of file QtProfile.qo.h.

int casa::QtProfile::stateMProf
private

Definition at line 418 of file QtProfile.qo.h.

int casa::QtProfile::stateRel
private

Definition at line 419 of file QtProfile.qo.h.

bool casa::QtProfile::topAxisDefaultSet
staticprivate

Definition at line 446 of file QtProfile.qo.h.

const casacore::String casa::QtProfile::WORLD_COORDINATES
private

Definition at line 394 of file QtProfile.qo.h.

casacore::String casa::QtProfile::xaxisUnit
private

Definition at line 397 of file QtProfile.qo.h.

QString casa::QtProfile::xpos
private

Definition at line 411 of file QtProfile.qo.h.

QStringList casa::QtProfile::xUnitsList
private

Holds the available x-axis units.

Definition at line 410 of file QtProfile.qo.h.

QString casa::QtProfile::ypos
private

Definition at line 412 of file QtProfile.qo.h.

QString casa::QtProfile::yUnit
private

Definition at line 407 of file QtProfile.qo.h.

QString casa::QtProfile::yUnitPrefix
private

Definition at line 408 of file QtProfile.qo.h.

casacore::Vector<float> casa::QtProfile::z_eval
private

Definition at line 425 of file QtProfile.qo.h.

casacore::Vector<float> casa::QtProfile::z_xval
private

Definition at line 421 of file QtProfile.qo.h.

casacore::Vector<float> casa::QtProfile::z_yval
private

Definition at line 422 of file QtProfile.qo.h.


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