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>
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, SHARED_PTR< ImageInterface < float > > > | OverplotInterface |
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 (SHARED_PTR< ImageInterface< Float > > img, const char *name=0) |
void | wcChanged (const String, const Vector< Double >, const Vector< Double >, const Vector< Double >, const Vector< Double >, const ProfileType) |
void | redraw () |
void | changePlotType (const QString &text) |
void | changeErrorType (const QString &text) |
void | changeAxis (String xa, String ya, String za, std::vector< int >) |
void | changeSpectrum (String spcTypeUnit, String spcRval, 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 (SHARED_PTR< ImageInterface< float > > img) |
Returns whether or not the image can be profiled. | |
Signals | |
void | hideProfile () |
void | coordinateChange (const String &) |
void | showCollapsedImg (String path, String dataType, String displayType, Bool autoRegister, Bool tmpData, SHARED_PTR< 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 (SHARED_PTR< ImageInterface< Float > > img, const char *name=0, QWidget *parent=0, std::string rcstr="prf") | |
~QtProfile () | |
MFrequency::Types | determineRefFrame (SHARED_PTR< 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. | |
void | postStatus (String status) |
These methods are from the ProfileTaskMoniter interface. | |
Vector< Float > | getXValues () const |
Vector< Float > | getYValues () const |
Vector< Float > | getZValues () const |
Vector< Double > | getRegionXValues () const |
Vector< Double > | getRegionYValues () const |
QString | getYUnit () const |
QString | getYUnitPrefix () const |
String | getXAxisUnit () const |
QString | getFileName () const |
QString | getImagePath () const |
String | getRegionShape () const |
SHARED_PTR< const ImageInterface< Float > > | getImage (const QString &imageName="") const |
virtual bool | getBeamInfo (const QString &curveName, Double &beamAngle, Double &beamArea) const |
void | getPixelBounds (Vector< double > &pixelX, Vector< double > &pixelY) const |
void | persist (const QString &key, const QString &value) |
Specific to Moments. | |
QString | read (const QString &key) const |
void | imageCollapsed (String path, String dataType, String displayType, Bool autoRegister, Bool tmpData, SHARED_PTR< ImageInterface< Float > > img) |
void | setPosition (const QList< double > &xValues, const QList< double > &yValues) |
Specific to Spectrum Position setting. | |
void | processTrackRecord (const String &dataName, const String &positionInfo) |
virtual MFrequency::Types | getReferenceFrame () const |
QString | getBrightnessUnit (SHARED_PTR< ImageInterface< Float > > img) const |
Static Public Attributes | |
static const String | SHAPE_ELLIPSE |
typedef pair<QString,ImageAnalysis*> OverplotAnalysis; | |
static const String | SHAPE_RECTANGLE |
static const String | SHAPE_POINT |
static const String | SHAPE_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 SHARED_PTR< ImageInterface< Float > > img) |
void | getcoordTypeUnit (String &ctypeUnitStr, String &cTypeStr, String &unitStr) |
void | printIt (QPrinter *) |
bool | exportASCIISpectrum (QString &fn) |
bool | exportFITSSpectrum (QString &fn) |
void | messageFromProfile (QString &msg) |
void | setUnitsText (String unitStr) |
void | resetYUnits (const QString &units) |
void | outputCurve (int k, QTextStream &ts, Float scaleFactor) |
int | getFreqProfileTabularIndex (SHARED_PTR< const ImageInterface< Float > > img) |
SpectralCoordinate | resetTabularConversion (SHARED_PTR< const ImageInterface< Float > > imagePtr, Bool &valid) |
bool | isSpectralAxis () const |
void | initializeSpectralProperties () |
SpectralCoordinate | getSpectralAxis (SHARED_PTR< const ImageInterface< Float > > imagePtr, Bool &valid) |
void | resetXUnits (bool spectralAxis) |
void | updateSpectralReferenceFrame () |
int | computeCB (const String &xa, const String &ya, const String &za) |
void | getBeamInfo (SHARED_PTR< const ImageInterface< Float > > imagePtr, Double &beamArea, Double &beamSolidAngle) const |
SpectralCoordinate | getSpectralCoordinate (SHARED_PTR< const ImageInterface< Float > > imagePtr, Bool &valid) |
bool | parseRestFrequency (const String &restStr, Quantity &result) const |
bool | generateProfile (Vector< Float > &resultXValues, Vector< Float > &resultYValues, SHARED_PTR< casa::ImageInterface< Float > > imagePtr, const Vector< Double > ®ionX, const Vector< Double > ®ionY, String shape, QtProfile::ExtrType combineType, String &unit, const String &coordinateType, int qualityAxis, String restFreq="", const String &frame="") |
pair< Vector< float >, Vector < float > > | convertIntensity (const Vector< float > &sourceXVals, const Vector< float > &sourceYVals, SHARED_PTR< ImageInterface< Float > > imagePtr, const QString &xUnits, const QString &yUnitsOld, const QString &yUnitsNew) |
void | saveAsPDF (const QString &fileName) |
bool | isAxisAscending (const Vector< Float > &axisValues) const |
Returns false if first vector value is greater than the last vector value; otherwise returns true. | |
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 String &c, const Vector< Double > &px, const Vector< Double > &py, const Vector< Double > &wx, const Vector< Double > &wy) |
void | setPlotType (int wcArraySize) |
bool | checkCube () |
void | assignCoordinate (const String &c) |
void | initializeCoordinateVectors (const Vector< double > &px, const Vector< double > &py, const Vector< double > &wx, const Vector< double > &wy, Vector< double > &pxv, Vector< double > &pyv, Vector< double > &wxv, Vector< double > &wyv) const |
void | setPositionStatus (const Vector< double > &pxv, const Vector< double > &pyv, const Vector< double > &wxv, const Vector< double > &wyv) |
bool | assignFrequencyProfile (const Vector< double > &wxv, const Vector< double > &wyv, const String &coordinateType, String &xAxisUnit, Vector< Float > &z_xval, Vector< Float > &z_yval, const String &shape) |
bool | setErrorPlotting (const Vector< double > &wxv, const Vector< double > &wyv) |
void | storeCoordinates (const Vector< double > pxv, const Vector< double > pyv, const Vector< double > wxv, const Vector< double > wyv) |
void | addCanvasMainCurve (const Vector< Float > &xVals, const Vector< Float > &yVals, const QString &label, double beamAngle, double beamArea, 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 Vector< double > &wxv, const Vector< double > &wyv, Int ordersOfM) |
void | initializeSolidAngle () const |
QString | getRaDec (double x, double y) |
Conversion. | |
int | findNearestChannel (float xval) const |
Finds the channel index closest to the passed in value. | |
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. | |
bool | isFrequencyMatch () |
bool | isVelocityMatch () |
int | getChannelCount (SHARED_PTR< ImageInterface< float > > &img) |
int getChannelCount( ImageAnalysis* analysis ); | |
SHARED_PTR< ImageInterface < float > > | findImageWithMaximumChannels () |
void | restrictTopAxisOptions (bool restrictOptions, const QString &bottomUnits, bool allowFrequency=true, bool allowVelocity=true) |
double | getUnitsPerChannel (SHARED_PTR< ImageInterface< Float > > img, bool *ok, const QString &matchUnits) |
QString | readTopAxis () const |
void | persistTopAxis (const QString &units) |
void | assignProfileType (const String &shape, int regionPointCount) |
void | addOverplotToCanvas (SHARED_PTR< ImageInterface< Float > > imagePtr, const Vector< Float > &xVals, const Vector< Float > &yVals, const QString &ky) |
bool | isProfileChanged (const String &c, const Vector< Double > &px, const Vector< Double > &py, const Vector< Double > &wx, const Vector< Double > &wy, const ProfileType pType) |
bool | _generateProfile (Vector< Float > &resultXValues, Vector< Float > &resultYValues, SHARED_PTR< const casa::ImageInterface< Float > > imagePtr, const Vector< Double > ®ionX, const Vector< Double > ®ionY, String shape, QtProfile::ExtrType combineType, String &unit, const String &coordinateType, String restFreq, const String &frame) |
bool | customizeSpectralReferenceFrame (const QString &specialType) |
Handle custom spectral reference frames such as REST and Undefined for which conversions are not possible. | |
pair< double, double > | getMaximumTemperature () |
void | postConversionWarning (QString unitStr) |
void | adjustPlotUnits () |
Private Attributes | |
SHARED_PTR< ImageInterface < Float > > | image |
ImageAnalysis* analysis;. | |
QList< OverplotInterface > * | over |
const String | WORLD_COORDINATES |
String | coordinate |
String | coordinateType |
String | xaxisUnit |
String | ctypeUnit |
String | spcRefFrame |
String | cSysRval |
Rest frequency quantity and unit. | |
QString | fileName |
QString | imagePath |
QString | position |
QString | yUnit |
QString | yUnitPrefix |
QStringList | xUnitsList |
Holds the available x-axis units. | |
QString | xpos |
QString | ypos |
int | cube |
int | npoints |
int | npoints_old |
int | stateMProf |
int | stateRel |
Vector< Float > | z_xval |
Vector< Float > | z_yval |
Vector< Double > | lastPX |
Vector< Double > | lastPY |
Vector< Double > | lastWX |
Vector< Double > | lastWY |
Vector< Float > | z_eval |
QString | region |
String | last_event_cs |
Vector< Double > | last_event_px |
Vector< Double > | last_event_py |
Vector< Double > | last_event_wx |
Vector< Double > | last_event_wy |
Casarc & | rc |
connection to rc file | |
std::string | rcid_ |
rc id for this panel type | |
QtProfile::PlotType | itsPlotType |
QtProfile::ErrorType | itsErrorType |
LogIO * | itsLog |
Int | ordersOfM_ |
Bool | newCollapseVals |
bool | showTopAxis |
bool | showSingleChannelImage |
const int | NO_REGION_ID |
int | current_region_id |
SpectraInfoMap | spectra_info_map |
ProfileType | profileType |
String | lastShape |
ColorSummaryWidget * | colorSummaryWidget |
LegendPreferences * | legendPreferencesDialog |
QtCanvas * | pixelCanvas |
QtProfilePrefs * | profilePrefs |
SmoothPreferences * | smoothWidget |
int | frameIndex |
bool | newOverplots |
Static Private Attributes | |
static bool | topAxisDefaultSet |
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 |
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.
typedef std::pair<QString, SHARED_PTR<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 471 of file QtProfile.qo.h.
Definition at line 117 of file QtProfile.qo.h.
Definition at line 97 of file QtProfile.qo.h.
Definition at line 109 of file QtProfile.qo.h.
casa::QtProfile::QtProfile | ( | SHARED_PTR< ImageInterface< Float > > | img, | |
const char * | name = 0 , |
|||
QWidget * | parent = 0 , |
|||
std::string | rcstr = "prf" | |||
) |
casa::QtProfile::~QtProfile | ( | ) |
bool casa::QtProfile::_generateProfile | ( | Vector< Float > & | resultXValues, | |
Vector< Float > & | resultYValues, | |||
SHARED_PTR< const casa::ImageInterface< Float > > | imagePtr, | |||
const Vector< Double > & | regionX, | |||
const Vector< Double > & | regionY, | |||
String | shape, | |||
QtProfile::ExtrType | combineType, | |||
String & | unit, | |||
const String & | coordinateType, | |||
String | restFreq, | |||
const String & | frame | |||
) | [private] |
void casa::QtProfile::addCanvasMainCurve | ( | const Vector< Float > & | xVals, | |
const Vector< Float > & | yVals, | |||
const QString & | label, | |||
double | beamAngle, | |||
double | beamArea, | |||
SpectralCoordinate | coord | |||
) | [private] |
void casa::QtProfile::addImageAnalysisGraph | ( | const Vector< double > & | wxv, | |
const Vector< double > & | wyv, | |||
Int | ordersOfM | |||
) | [private] |
void casa::QtProfile::addOverplotToCanvas | ( | SHARED_PTR< ImageInterface< Float > > | imagePtr, | |
const Vector< Float > & | xVals, | |||
const 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] |
void casa::QtProfile::assignCoordinate | ( | const String & | c | ) | [private] |
bool casa::QtProfile::assignFrequencyProfile | ( | const Vector< double > & | wxv, | |
const Vector< double > & | wyv, | |||
const String & | coordinateType, | |||
String & | xAxisUnit, | |||
Vector< Float > & | z_xval, | |||
Vector< Float > & | z_yval, | |||
const String & | shape | |||
) | [private] |
void casa::QtProfile::assignProfileType | ( | const String & | shape, | |
int | regionPointCount | |||
) | [private] |
void casa::QtProfile::changeAxis | ( | String | xa, | |
String | ya, | |||
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 | ( | String | spcTypeUnit, | |
String | spcRval, | |||
String | spcSys | |||
) | [slot] |
void casa::QtProfile::changeTopAxis | ( | ) | [private, slot] |
void casa::QtProfile::changeTopAxisCoordinateType | ( | const QString & | text | ) | [slot] |
void casa::QtProfile::channelRangeSelect | ( | float | channelStart, | |
float | channelEnd | |||
) | [private, slot] |
void casa::QtProfile::channelSelect | ( | float | xval | ) | [private, slot] |
void casa::QtProfile::channelSelect | ( | int | channelIndex | ) | [signal] |
bool casa::QtProfile::checkCube | ( | ) | [private] |
void casa::QtProfile::clearPaletteModes | ( | ) | [slot] |
void casa::QtProfile::clearPlots | ( | ) | [slot] |
virtual void casa::QtProfile::closeEvent | ( | QCloseEvent * | ) | [virtual, slot] |
int casa::QtProfile::computeCB | ( | const String & | xa, | |
const String & | ya, | |||
const String & | za | |||
) | [private] |
pair<Vector<float>, Vector<float> > casa::QtProfile::convertIntensity | ( | const Vector< float > & | sourceXVals, | |
const Vector< float > & | sourceYVals, | |||
SHARED_PTR< ImageInterface< Float > > | imagePtr, | |||
const QString & | xUnits, | |||
const QString & | yUnitsOld, | |||
const QString & | yUnitsNew | |||
) | [private] |
void casa::QtProfile::coordinateChange | ( | const String & | ) | [signal] |
void casa::QtProfile::copyToLastEvent | ( | const String & | c, | |
const Vector< Double > & | px, | |||
const Vector< Double > & | py, | |||
const Vector< Double > & | wx, | |||
const 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.
MFrequency::Types casa::QtProfile::determineRefFrame | ( | SHARED_PTR< 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 SHARED_PTR< ImageInterface< Float > > | img | ) | [private] |
SHARED_PTR<ImageInterface<float> > casa::QtProfile::findImageWithMaximumChannels | ( | ) | [private] |
int casa::QtProfile::findNearestChannel | ( | float | xval | ) | const [private] |
Finds the channel index closest to the passed in value.
void casa::QtProfile::frameChanged | ( | int | ) | [slot] |
bool casa::QtProfile::generateProfile | ( | Vector< Float > & | resultXValues, | |
Vector< Float > & | resultYValues, | |||
SHARED_PTR< casa::ImageInterface< Float > > | imagePtr, | |||
const Vector< Double > & | regionX, | |||
const Vector< Double > & | regionY, | |||
String | shape, | |||
QtProfile::ExtrType | combineType, | |||
String & | unit, | |||
const String & | coordinateType, | |||
int | qualityAxis, | |||
String | restFreq = "" , |
|||
const String & | frame = "" | |||
) | [private] |
void casa::QtProfile::getBeamInfo | ( | SHARED_PTR< const ImageInterface< Float > > | imagePtr, | |
Double & | beamArea, | |||
Double & | beamSolidAngle | |||
) | const [private] |
virtual bool casa::QtProfile::getBeamInfo | ( | const QString & | curveName, | |
Double & | beamAngle, | |||
Double & | beamArea | |||
) | const [virtual] |
Implements casa::ProfileTaskMonitor.
QString casa::QtProfile::getBrightnessUnit | ( | SHARED_PTR< ImageInterface< Float > > | img | ) | const |
int casa::QtProfile::getChannelCount | ( | SHARED_PTR< ImageInterface< float > > & | img | ) | [private] |
int getChannelCount( ImageAnalysis* analysis );
void casa::QtProfile::getcoordTypeUnit | ( | String & | ctypeUnitStr, | |
String & | cTypeStr, | |||
String & | unitStr | |||
) | [private] |
QString casa::QtProfile::getFileName | ( | ) | const [virtual] |
Implements casa::ProfileTaskMonitor.
int casa::QtProfile::getFreqProfileTabularIndex | ( | SHARED_PTR< const ImageInterface< Float > > | img | ) | [private] |
SHARED_PTR<const ImageInterface<Float> > casa::QtProfile::getImage | ( | const QString & | imageName = "" |
) | const [virtual] |
Implements casa::ProfileTaskMonitor.
QString casa::QtProfile::getImagePath | ( | ) | const [virtual] |
Implements casa::ProfileTaskMonitor.
pair<double,double> casa::QtProfile::getMaximumTemperature | ( | ) | [private] |
void casa::QtProfile::getPixelBounds | ( | Vector< double > & | pixelX, | |
Vector< double > & | pixelY | |||
) | const [virtual] |
Implements casa::ProfileTaskMonitor.
QString casa::QtProfile::getRaDec | ( | double | x, | |
double | y | |||
) | [private] |
Conversion.
virtual MFrequency::Types casa::QtProfile::getReferenceFrame | ( | ) | const [virtual] |
Implements casa::ProfileTaskMonitor.
String casa::QtProfile::getRegionShape | ( | ) | const [virtual] |
Implements casa::ProfileTaskMonitor.
Vector<Double> casa::QtProfile::getRegionXValues | ( | ) | const [virtual] |
Implements casa::ProfileTaskMonitor.
Vector<Double> casa::QtProfile::getRegionYValues | ( | ) | const [virtual] |
Implements casa::ProfileTaskMonitor.
SpectralCoordinate casa::QtProfile::getSpectralAxis | ( | SHARED_PTR< const ImageInterface< Float > > | imagePtr, | |
Bool & | valid | |||
) | [private] |
SpectralCoordinate casa::QtProfile::getSpectralCoordinate | ( | SHARED_PTR< const ImageInterface< Float > > | imagePtr, | |
Bool & | valid | |||
) | [private, virtual] |
Implements casa::ProfileTaskMonitor.
double casa::QtProfile::getUnitsPerChannel | ( | SHARED_PTR< ImageInterface< Float > > | img, | |
bool * | ok, | |||
const QString & | matchUnits | |||
) | [private] |
String casa::QtProfile::getXAxisUnit | ( | ) | const [virtual] |
Implements casa::ProfileTaskMonitor.
Vector<Float> casa::QtProfile::getXValues | ( | ) | const [virtual] |
Implements casa::ProfileTaskMonitor.
QString casa::QtProfile::getYUnit | ( | ) | const [virtual] |
Implements casa::ProfileTaskMonitor.
QString casa::QtProfile::getYUnitPrefix | ( | ) | const [virtual] |
Implements casa::ProfileTaskMonitor.
Vector<Float> casa::QtProfile::getYValues | ( | ) | const [virtual] |
Implements casa::ProfileTaskMonitor.
Vector<Float> casa::QtProfile::getZValues | ( | ) | const [virtual] |
Implements casa::ProfileTaskMonitor.
void casa::QtProfile::hideProfile | ( | ) | [signal] |
void casa::QtProfile::imageCollapsed | ( | String | path, | |
String | dataType, | |||
String | displayType, | |||
Bool | autoRegister, | |||
Bool | tmpData, | |||
SHARED_PTR< ImageInterface< Float > > | img | |||
) | [virtual] |
Implements casa::ProfileTaskMonitor.
void casa::QtProfile::initializeCoordinateVectors | ( | const Vector< double > & | px, | |
const Vector< double > & | py, | |||
const Vector< double > & | wx, | |||
const Vector< double > & | wy, | |||
Vector< double > & | pxv, | |||
Vector< double > & | pyv, | |||
Vector< double > & | wxv, | |||
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 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 | ( | SHARED_PTR< ImageInterface< float > > | img | ) | [slot] |
Returns whether or not the image can be profiled.
bool casa::QtProfile::isProfileChanged | ( | const String & | c, | |
const Vector< Double > & | px, | |||
const Vector< Double > & | py, | |||
const Vector< Double > & | wx, | |||
const 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] |
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] |
void casa::QtProfile::outputCurve | ( | int | k, | |
QTextStream & | ts, | |||
Float | scaleFactor | |||
) | [private] |
void casa::QtProfile::overplot | ( | QList< OverplotInterface > | ) | [slot] |
bool casa::QtProfile::parseRestFrequency | ( | const String & | restStr, | |
Quantity & | result | |||
) | const [private] |
void casa::QtProfile::persist | ( | const QString & | key, | |
const QString & | value | |||
) | [virtual] |
Specific to Moments.
Implements casa::ProfileTaskMonitor.
void casa::QtProfile::persistTopAxis | ( | const QString & | units | ) | [private] |
void casa::QtProfile::pixelsChanged | ( | int | , | |
int | ||||
) | [slot] |
void casa::QtProfile::plotMainCurve | ( | ) | [virtual, slot] |
Implements casa::ProfileTaskMonitor.
void casa::QtProfile::postConversionWarning | ( | QString | unitStr | ) | [private] |
void casa::QtProfile::postStatus | ( | 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 String & | dataName, | |
const String & | positionInfo | |||
) |
virtual std::string casa::QtProfile::rcid | ( | ) | const [inline, virtual] |
Definition at line 131 of file QtProfile.qo.h.
References rcid_.
QString casa::QtProfile::read | ( | const QString & | key | ) | const [virtual] |
Implements casa::ProfileTaskMonitor.
QString casa::QtProfile::readTopAxis | ( | ) | const [private] |
void casa::QtProfile::redraw | ( | ) | [slot] |
void casa::QtProfile::reloadImages | ( | ) | [signal] |
void casa::QtProfile::replotCurves | ( | ) | [private, slot] |
void casa::QtProfile::resetProfile | ( | SHARED_PTR< ImageInterface< Float > > | img, | |
const char * | name = 0 | |||
) | [slot] |
SpectralCoordinate casa::QtProfile::resetTabularConversion | ( | SHARED_PTR< const 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 | ) | [private, slot] |
bool casa::QtProfile::setErrorPlotting | ( | const Vector< double > & | wxv, | |
const 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 Vector< double > & | pxv, | |
const Vector< double > & | pyv, | |||
const Vector< double > & | wxv, | |||
const 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 ProfileType | ptype | ) | [private] |
void casa::QtProfile::setTitle | ( | const QString & | shape | ) | [private] |
void casa::QtProfile::setUnitsText | ( | String | unitStr | ) | [private] |
void casa::QtProfile::setXAxisUnits | ( | ) | [private] |
void casa::QtProfile::setYUnitConversionVisibility | ( | bool | visible | ) | [private] |
void casa::QtProfile::showCollapsedImg | ( | String | path, | |
String | dataType, | |||
String | displayType, | |||
Bool | autoRegister, | |||
Bool | tmpData, | |||
SHARED_PTR< ImageInterface< Float > > | img | |||
) | [signal] |
void casa::QtProfile::showSmoothingPreferences | ( | ) | [private, slot] |
void casa::QtProfile::storeCoordinates | ( | const Vector< double > | pxv, | |
const Vector< double > | pyv, | |||
const Vector< double > | wxv, | |||
const 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 | |||
) | [private, slot] |
void casa::QtProfile::wcChanged | ( | const | String, | |
const Vector< Double > | , | |||
const Vector< Double > | , | |||
const Vector< Double > | , | |||
const Vector< Double > | , | |||
const | ProfileType | |||
) | [slot] |
void casa::QtProfile::zoomIn | ( | ) | [slot] |
void casa::QtProfile::zoomNeutral | ( | ) | [slot] |
void casa::QtProfile::zoomOut | ( | ) | [slot] |
const QString casa::QtProfile::AIR [static, private] |
Definition at line 440 of file QtProfile.qo.h.
const QString casa::QtProfile::CHANNEL [static] |
Definition at line 178 of file QtProfile.qo.h.
Definition at line 478 of file QtProfile.qo.h.
String casa::QtProfile::coordinate [private] |
Definition at line 380 of file QtProfile.qo.h.
String casa::QtProfile::coordinateType [private] |
Definition at line 381 of file QtProfile.qo.h.
String casa::QtProfile::cSysRval [private] |
Rest frequency quantity and unit.
Definition at line 387 of file QtProfile.qo.h.
String casa::QtProfile::ctypeUnit [private] |
Definition at line 383 of file QtProfile.qo.h.
int casa::QtProfile::cube [private] |
Definition at line 398 of file QtProfile.qo.h.
int casa::QtProfile::current_region_id [private] |
Definition at line 473 of file QtProfile.qo.h.
QString casa::QtProfile::fileName [private] |
Definition at line 389 of file QtProfile.qo.h.
const QString casa::QtProfile::FRAME_NONE [static, private] |
Definition at line 442 of file QtProfile.qo.h.
const QString casa::QtProfile::FRAME_REST [static, private] |
Definition at line 441 of file QtProfile.qo.h.
int casa::QtProfile::frameIndex [private] |
Definition at line 483 of file QtProfile.qo.h.
const QString casa::QtProfile::FREQUENCY [static] |
Definition at line 177 of file QtProfile.qo.h.
SHARED_PTR<ImageInterface<Float> > casa::QtProfile::image [private] |
ImageAnalysis* analysis;.
Definition at line 347 of file QtProfile.qo.h.
const QString casa::QtProfile::IMAGE_MISSING_ERROR [static, private] |
Definition at line 445 of file QtProfile.qo.h.
QString casa::QtProfile::imagePath [private] |
Definition at line 390 of file QtProfile.qo.h.
Referenced by setPath().
Definition at line 423 of file QtProfile.qo.h.
LogIO* casa::QtProfile::itsLog [private] |
Definition at line 426 of file QtProfile.qo.h.
Definition at line 422 of file QtProfile.qo.h.
String casa::QtProfile::last_event_cs [private] |
Definition at line 413 of file QtProfile.qo.h.
Vector<Double> casa::QtProfile::last_event_px [private] |
Definition at line 414 of file QtProfile.qo.h.
Vector<Double> casa::QtProfile::last_event_py [private] |
Definition at line 414 of file QtProfile.qo.h.
Vector<Double> casa::QtProfile::last_event_wx [private] |
Definition at line 415 of file QtProfile.qo.h.
Vector<Double> casa::QtProfile::last_event_wy [private] |
Definition at line 415 of file QtProfile.qo.h.
Vector<Double> casa::QtProfile::lastPX [private] |
Definition at line 408 of file QtProfile.qo.h.
Vector<Double> casa::QtProfile::lastPY [private] |
Definition at line 408 of file QtProfile.qo.h.
String casa::QtProfile::lastShape [private] |
Definition at line 476 of file QtProfile.qo.h.
Vector<Double> casa::QtProfile::lastWX [private] |
Definition at line 409 of file QtProfile.qo.h.
Vector<Double> casa::QtProfile::lastWY [private] |
Definition at line 409 of file QtProfile.qo.h.
Definition at line 479 of file QtProfile.qo.h.
const QString casa::QtProfile::MISSING_REGION_ERROR [static, private] |
Definition at line 446 of file QtProfile.qo.h.
Bool casa::QtProfile::newCollapseVals [private] |
Definition at line 428 of file QtProfile.qo.h.
bool casa::QtProfile::newOverplots [private] |
Definition at line 484 of file QtProfile.qo.h.
const QString casa::QtProfile::NO_PROFILE_ERROR [static, private] |
Definition at line 447 of file QtProfile.qo.h.
const int casa::QtProfile::NO_REGION_ID [private] |
Definition at line 472 of file QtProfile.qo.h.
int casa::QtProfile::npoints [private] |
Definition at line 400 of file QtProfile.qo.h.
int casa::QtProfile::npoints_old [private] |
Definition at line 401 of file QtProfile.qo.h.
const QString casa::QtProfile::OPTICAL [static, private] |
Definition at line 439 of file QtProfile.qo.h.
Int casa::QtProfile::ordersOfM_ [private] |
Definition at line 427 of file QtProfile.qo.h.
QList<OverplotInterface>* casa::QtProfile::over [private] |
Definition at line 378 of file QtProfile.qo.h.
const QString casa::QtProfile::PERSIST_FREQUENCY_BOTTOM [static, private] |
Definition at line 443 of file QtProfile.qo.h.
const QString casa::QtProfile::PERSIST_FREQUENCY_TOP [static, private] |
Definition at line 444 of file QtProfile.qo.h.
QtCanvas* casa::QtProfile::pixelCanvas [private] |
Definition at line 480 of file QtProfile.qo.h.
const QString casa::QtProfile::PLOT_TYPE_FLUX [static, private] |
Definition at line 433 of file QtProfile.qo.h.
const QString casa::QtProfile::PLOT_TYPE_MEAN [static, private] |
Definition at line 434 of file QtProfile.qo.h.
const QString casa::QtProfile::PLOT_TYPE_MEDIAN [static, private] |
Definition at line 435 of file QtProfile.qo.h.
const QString casa::QtProfile::PLOT_TYPE_SUM [static, private] |
Definition at line 436 of file QtProfile.qo.h.
QString casa::QtProfile::position [private] |
Definition at line 391 of file QtProfile.qo.h.
QtProfilePrefs* casa::QtProfile::profilePrefs [private] |
Definition at line 481 of file QtProfile.qo.h.
ProfileType casa::QtProfile::profileType [private] |
Definition at line 475 of file QtProfile.qo.h.
Casarc& casa::QtProfile::rc [private] |
connection to rc file
Definition at line 418 of file QtProfile.qo.h.
std::string casa::QtProfile::rcid_ [private] |
QString casa::QtProfile::region [private] |
Definition at line 411 of file QtProfile.qo.h.
const QString casa::QtProfile::REGION_ELLIPSE [static, private] |
Definition at line 448 of file QtProfile.qo.h.
const QString casa::QtProfile::REGION_POINT [static, private] |
Definition at line 450 of file QtProfile.qo.h.
const QString casa::QtProfile::REGION_POLY [static, private] |
Definition at line 451 of file QtProfile.qo.h.
const QString casa::QtProfile::REGION_RECTANGLE [static, private] |
Definition at line 449 of file QtProfile.qo.h.
const String casa::QtProfile::SHAPE_ELLIPSE [static] |
typedef pair<QString,ImageAnalysis*> OverplotAnalysis;
Definition at line 173 of file QtProfile.qo.h.
const String casa::QtProfile::SHAPE_POINT [static] |
Definition at line 175 of file QtProfile.qo.h.
const String casa::QtProfile::SHAPE_POLY [static] |
Definition at line 176 of file QtProfile.qo.h.
const String casa::QtProfile::SHAPE_RECTANGLE [static] |
Definition at line 174 of file QtProfile.qo.h.
bool casa::QtProfile::showSingleChannelImage [private] |
Definition at line 430 of file QtProfile.qo.h.
bool casa::QtProfile::showTopAxis [private] |
Definition at line 429 of file QtProfile.qo.h.
SmoothPreferences* casa::QtProfile::smoothWidget [private] |
Definition at line 482 of file QtProfile.qo.h.
String casa::QtProfile::spcRefFrame [private] |
Definition at line 384 of file QtProfile.qo.h.
Definition at line 474 of file QtProfile.qo.h.
int casa::QtProfile::stateMProf [private] |
Definition at line 403 of file QtProfile.qo.h.
int casa::QtProfile::stateRel [private] |
Definition at line 404 of file QtProfile.qo.h.
bool casa::QtProfile::topAxisDefaultSet [static, private] |
Definition at line 431 of file QtProfile.qo.h.
const QString casa::QtProfile::VELOCITY [static, private] |
Definition at line 438 of file QtProfile.qo.h.
const String casa::QtProfile::WORLD_COORDINATES [private] |
Definition at line 379 of file QtProfile.qo.h.
String casa::QtProfile::xaxisUnit [private] |
Definition at line 382 of file QtProfile.qo.h.
QString casa::QtProfile::xpos [private] |
Definition at line 396 of file QtProfile.qo.h.
QStringList casa::QtProfile::xUnitsList [private] |
Holds the available x-axis units.
Definition at line 395 of file QtProfile.qo.h.
QString casa::QtProfile::ypos [private] |
Definition at line 397 of file QtProfile.qo.h.
QString casa::QtProfile::yUnit [private] |
Definition at line 392 of file QtProfile.qo.h.
QString casa::QtProfile::yUnitPrefix [private] |
Definition at line 393 of file QtProfile.qo.h.
Vector<Float> casa::QtProfile::z_eval [private] |
Definition at line 410 of file QtProfile.qo.h.
Vector<Float> casa::QtProfile::z_xval [private] |
Definition at line 406 of file QtProfile.qo.h.
Vector<Float> casa::QtProfile::z_yval [private] |
Definition at line 407 of file QtProfile.qo.h.