casa
5.7.0-16
|
Display a histogram of intensity vs count. More...
#include <BinPlotWidget.qo.h>
Public Slots | |
void | fitModeChanged () |
void | plotModeChanged (int mode) |
void | setDisplayStep (bool display) |
void | setDisplayLogY (bool display) |
void | clearFit () |
void | clearAll () |
void | toAscii (const QString &filePath) |
Saving the Histogram. More... | |
void | toPing (const QString &filtPath, int width, int height) |
void | channelRangeChanged (int minValue, int maxValue, bool allChannels, bool automatic, int specIndex=-1) |
The channel has changed value. More... | |
void | imageModeSelected (bool enabled) |
Histogramming an image versus a region. More... | |
void | regionModeSelected (bool enabled) |
Signals | |
void | postStatusMessage (const QString &msg) |
void | rangeChanged () |
Public Member Functions | |
BinPlotWidget (bool fitControls, bool rangeControls, bool plotModeControls, QWidget *parent) | |
fitControls: true allows the user to fit curves to the Histogram. More... | |
bool | setImage (const std::shared_ptr< const casacore::ImageInterface< float > > img, bool waitOnHistogram=false) |
bool | setImageRegion (casacore::ImageRegion *imageRegion, int id) |
void | deleteImageRegion (int id) |
void | imageRegionSelected (int id) |
virtual void | postMessage (const QString &msg) |
std::vector< float > | getXValues () const |
pair< double, double > | getMinMaxValues () const |
void | setMinMaxValues (double minValue, double maxValue, bool updateGraph=true) |
void | hideMaximumRange () |
Customizing the display. More... | |
void | setColorLookups (const casacore::Vector< casacore::uInt > &lookups) |
void | setColorMap (QwtLinearColorMap *colorMap) |
void | setColorScaleMax (int max) |
void | setMultiColored (bool multipleColors) |
void | setLineMode (bool lineMode) |
void | setDisplayPlotTitle (bool display) |
void | setDisplayAxisTitles (bool display) |
void | setHistogramColor (QColor color) |
void | setFitEstimateColor (QColor color) |
void | setFitCurveColor (QColor color) |
void | setMultipleHistogramColors (const QList< QColor > &colors) |
void | setAxisLabelFont (int size) |
void | setChannelCount (int count) |
void | setChannelValue (int value) |
void | addZoomActions (bool rangeControl, QMenu *zoomMenu) |
void | addDisplayActions (QMenu *menu, QWidgetAction *binCountAction) |
void | addPlotModeActions (QMenu *menu, QWidgetAction *channelRangeAction=NULL, QWidgetAction *footPrintAction=NULL) |
void | setPlotMode (int mode) |
bool | isEmpty () const |
~BinPlotWidget () | |
Public Member Functions inherited from casa::HeightSource | |
virtual | ~HeightSource () |
Protected Member Functions | |
virtual void | resizeEvent (QResizeEvent *event) |
virtual void | keyPressEvent (QKeyEvent *event) |
virtual void | enterEvent (QEvent *event) |
virtual void | mousePressEvent (QMouseEvent *event) |
Private Types | |
enum | ContextMenuMode { ZOOM_CONTEXT, DISPLAY_CONTEXT, FIT_CONTEXT } |
enum | HistogramOptions { HISTOGRAM_FILLED, HISTOGRAM_OUTLINE, HISTOGRAM_LINE } |
Private Slots | |
void | lineMoved (const QPoint &pt) |
void | lineSelected () |
void | clearRange () |
void | defineCurve (int id, const QColor &curveColor, bool clear=true) |
void | minMaxChanged () |
void | showContextMenu (const QPoint &pt) |
void | centerPeakSpecified () |
void | lambdaSpecified () |
void | fwhmSpecified () |
void | fitDone (const QString &msg) |
void | zoomContextFinished () |
void | zoomMenuFinished () |
void | resetGaussianFitMarker () |
void | resetPoissonFitMarker () |
void | zoomNeutral () |
void | zoomRange () |
Zoom based on an intensity range specified by the user using the range controls widget. More... | |
void | zoomPercentage (float minValue, float maxValue) |
Zoom based on an intensity range specified by the user using the zoom context menu. More... | |
void | binCountChanged (int count) |
void | regionAllModeSelected (bool enabled) |
Private Member Functions | |
BinPlotWidget (const BinPlotWidget &) | |
BinPlotWidget & | operator= (const BinPlotWidget &) |
void | initializeFitWidget (bool fitControls) |
void | initializeDisplayActions () |
void | initializeZoomControls (bool rangeControls) |
void | initializePlotModeControls (bool enable) |
void | initializeGaussianFitMarker () |
void | initializePoissonFitMarker () |
void | initializeRangeControls (bool rangeControls) |
void | connectZoomActions (ZoomWidget *zoomWidget) |
void | clearGaussianFitMarker () |
void | clearPoissonFitMarker () |
void | clearHistograms () |
void | clearCurves () |
void | makeHistogram (int id, const QColor &histogramColor, bool clearCurve=true) |
void | rectangleSizeChanged () |
void | resetAxisTitles () |
void | resetPlotTitle () |
void | reset () |
bool | resetImage (bool waitOnHistogram=false) |
void | resetRegion () |
void | resetRectangleMarker () |
void | defineCurveLine (int id, const QColor &lineColor) |
void | defineCurveHistogram (int id, const QColor &histogramColor) |
QwtPlotCurve * | addCurve (QVector< double > &xValues, QVector< double > &yValues, const QColor &curveColor) |
bool | isPrintOut (int id) const |
bool | isPrincipalHistogram (int id) const |
bool | isPlotContains (int x, int y) |
virtual int | getCanvasHeight () |
Histogram * | findHistogramFor (int id) |
int | getSelectedId () const |
QColor | getPieceColor (int index, const QColor &defaultColor) const |
void | zoom (float percent) |
void | zoomRangeMarker (double startValue, double endValue) |
Friends | |
class | RangePicker |
Display a histogram of intensity vs count.
Functionality is pluggable and can either be put in or left out: selection of a range along the intensity axis of the histogram (rangeControls), fitting a curve to the histogram (fitControls), changing how the histogram is displayed (plotControls). HeightSource is intended to be an interface to reduce the coupling being this class and a subclass that needs to know the height of the plot in order to correctly draw a marker.
Definition at line 81 of file BinPlotWidget.qo.h.
|
private |
Enumerator | |
---|---|
ZOOM_CONTEXT | |
DISPLAY_CONTEXT | |
FIT_CONTEXT |
Definition at line 229 of file BinPlotWidget.qo.h.
|
private |
Enumerator | |
---|---|
HISTOGRAM_FILLED | |
HISTOGRAM_OUTLINE | |
HISTOGRAM_LINE |
Definition at line 291 of file BinPlotWidget.qo.h.
casa::BinPlotWidget::BinPlotWidget | ( | bool | fitControls, |
bool | rangeControls, | ||
bool | plotModeControls, | ||
QWidget * | parent | ||
) |
fitControls: true allows the user to fit curves to the Histogram.
rangeControls: true allows the user to specify a min/max value on the histogram. plotModeControls: true allows the user to specify whether a histogram should be created for an image, a region, or multiple regions.
casa::BinPlotWidget::~BinPlotWidget | ( | ) |
|
private |
|
private |
void casa::BinPlotWidget::addDisplayActions | ( | QMenu * | menu, |
QWidgetAction * | binCountAction | ||
) |
void casa::BinPlotWidget::addPlotModeActions | ( | QMenu * | menu, |
QWidgetAction * | channelRangeAction = NULL , |
||
QWidgetAction * | footPrintAction = NULL |
||
) |
void casa::BinPlotWidget::addZoomActions | ( | bool | rangeControl, |
QMenu * | zoomMenu | ||
) |
|
privateslot |
|
privateslot |
|
slot |
The channel has changed value.
|
slot |
|
private |
|
slot |
|
private |
|
private |
|
private |
|
privateslot |
|
private |
|
privateslot |
|
private |
|
private |
void casa::BinPlotWidget::deleteImageRegion | ( | int | id | ) |
|
protectedvirtual |
|
private |
|
privateslot |
|
slot |
|
privateslot |
|
privatevirtual |
Implements casa::HeightSource.
pair<double,double> casa::BinPlotWidget::getMinMaxValues | ( | ) | const |
|
private |
|
private |
std::vector<float> casa::BinPlotWidget::getXValues | ( | ) | const |
void casa::BinPlotWidget::hideMaximumRange | ( | ) |
Customizing the display.
|
slot |
Histogramming an image versus a region.
void casa::BinPlotWidget::imageRegionSelected | ( | int | id | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
bool casa::BinPlotWidget::isEmpty | ( | ) | const |
|
private |
|
private |
|
private |
|
protectedvirtual |
|
privateslot |
|
privateslot |
|
privateslot |
|
private |
|
privateslot |
|
protectedvirtual |
|
private |
|
slot |
|
virtual |
Implements casa::HeightSource.
|
signal |
|
signal |
|
private |
|
privateslot |
|
slot |
|
private |
|
private |
|
privateslot |
|
private |
|
private |
|
privateslot |
|
private |
|
private |
|
protectedvirtual |
void casa::BinPlotWidget::setAxisLabelFont | ( | int | size | ) |
void casa::BinPlotWidget::setChannelCount | ( | int | count | ) |
void casa::BinPlotWidget::setChannelValue | ( | int | value | ) |
void casa::BinPlotWidget::setColorLookups | ( | const casacore::Vector< casacore::uInt > & | lookups | ) |
void casa::BinPlotWidget::setColorMap | ( | QwtLinearColorMap * | colorMap | ) |
void casa::BinPlotWidget::setColorScaleMax | ( | int | max | ) |
void casa::BinPlotWidget::setDisplayAxisTitles | ( | bool | display | ) |
|
slot |
void casa::BinPlotWidget::setDisplayPlotTitle | ( | bool | display | ) |
|
slot |
void casa::BinPlotWidget::setFitCurveColor | ( | QColor | color | ) |
void casa::BinPlotWidget::setFitEstimateColor | ( | QColor | color | ) |
void casa::BinPlotWidget::setHistogramColor | ( | QColor | color | ) |
bool casa::BinPlotWidget::setImage | ( | const std::shared_ptr< const casacore::ImageInterface< float > > | img, |
bool | waitOnHistogram = false |
||
) |
bool casa::BinPlotWidget::setImageRegion | ( | casacore::ImageRegion * | imageRegion, |
int | id | ||
) |
void casa::BinPlotWidget::setLineMode | ( | bool | lineMode | ) |
void casa::BinPlotWidget::setMinMaxValues | ( | double | minValue, |
double | maxValue, | ||
bool | updateGraph = true |
||
) |
void casa::BinPlotWidget::setMultiColored | ( | bool | multipleColors | ) |
void casa::BinPlotWidget::setMultipleHistogramColors | ( | const QList< QColor > & | colors | ) |
void casa::BinPlotWidget::setPlotMode | ( | int | mode | ) |
|
privateslot |
|
slot |
Saving the Histogram.
|
slot |
|
private |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
Zoom based on an intensity range specified by the user using the zoom context menu.
|
privateslot |
Zoom based on an intensity range specified by the user using the range controls widget.
|
private |
|
friend |
Definition at line 84 of file BinPlotWidget.qo.h.
|
private |
Definition at line 235 of file BinPlotWidget.qo.h.
|
private |
Plot Control We should be able to use just one binCountAction and binCountWidget However, to appear, the constructor has to take the appropriate menu as a parent.
Definition at line 299 of file BinPlotWidget.qo.h.
|
private |
Definition at line 303 of file BinPlotWidget.qo.h.
|
private |
Definition at line 307 of file BinPlotWidget.qo.h.
|
private |
Definition at line 311 of file BinPlotWidget.qo.h.
|
private |
Definition at line 253 of file BinPlotWidget.qo.h.
|
private |
Definition at line 275 of file BinPlotWidget.qo.h.
|
private |
Definition at line 300 of file BinPlotWidget.qo.h.
|
private |
Definition at line 304 of file BinPlotWidget.qo.h.
|
private |
Definition at line 308 of file BinPlotWidget.qo.h.
|
private |
Definition at line 312 of file BinPlotWidget.qo.h.
|
private |
Definition at line 290 of file BinPlotWidget.qo.h.
|
private |
Definition at line 246 of file BinPlotWidget.qo.h.
|
private |
Definition at line 245 of file BinPlotWidget.qo.h.
|
private |
Definition at line 247 of file BinPlotWidget.qo.h.
|
private |
Definition at line 277 of file BinPlotWidget.qo.h.
|
private |
Definition at line 314 of file BinPlotWidget.qo.h.
|
private |
Definition at line 293 of file BinPlotWidget.qo.h.
|
private |
Definition at line 230 of file BinPlotWidget.qo.h.
|
private |
Definition at line 264 of file BinPlotWidget.qo.h.
|
private |
Definition at line 240 of file BinPlotWidget.qo.h.
|
private |
Histogram & data.
Definition at line 250 of file BinPlotWidget.qo.h.
|
private |
Definition at line 233 of file BinPlotWidget.qo.h.
|
private |
Definition at line 292 of file BinPlotWidget.qo.h.
|
private |
Definition at line 232 of file BinPlotWidget.qo.h.
|
private |
Specifying a range with the histogram.
Definition at line 260 of file BinPlotWidget.qo.h.
|
private |
Definition at line 279 of file BinPlotWidget.qo.h.
|
private |
Definition at line 243 of file BinPlotWidget.qo.h.
|
private |
Definition at line 242 of file BinPlotWidget.qo.h.
|
private |
Definition at line 281 of file BinPlotWidget.qo.h.
|
private |
Definition at line 282 of file BinPlotWidget.qo.h.
|
private |
Definition at line 280 of file BinPlotWidget.qo.h.
|
private |
Definition at line 278 of file BinPlotWidget.qo.h.
|
private |
Definition at line 301 of file BinPlotWidget.qo.h.
|
private |
Definition at line 305 of file BinPlotWidget.qo.h.
|
private |
Definition at line 309 of file BinPlotWidget.qo.h.
|
private |
Definition at line 313 of file BinPlotWidget.qo.h.
|
private |
Definition at line 276 of file BinPlotWidget.qo.h.
|
private |
Definition at line 251 of file BinPlotWidget.qo.h.
|
private |
Definition at line 252 of file BinPlotWidget.qo.h.
|
private |
Definition at line 256 of file BinPlotWidget.qo.h.
|
private |
Fitting the histogram.
Definition at line 274 of file BinPlotWidget.qo.h.
|
private |
Definition at line 285 of file BinPlotWidget.qo.h.
|
private |
Definition at line 289 of file BinPlotWidget.qo.h.
|
private |
Definition at line 238 of file BinPlotWidget.qo.h.
|
private |
Definition at line 237 of file BinPlotWidget.qo.h.
|
private |
Definition at line 234 of file BinPlotWidget.qo.h.
|
private |
Definition at line 244 of file BinPlotWidget.qo.h.
|
private |
Definition at line 254 of file BinPlotWidget.qo.h.
|
private |
Definition at line 255 of file BinPlotWidget.qo.h.
|
private |
Definition at line 315 of file BinPlotWidget.qo.h.
|
private |
Definition at line 263 of file BinPlotWidget.qo.h.
|
private |
Definition at line 261 of file BinPlotWidget.qo.h.
|
private |
Definition at line 271 of file BinPlotWidget.qo.h.
|
private |
Definition at line 270 of file BinPlotWidget.qo.h.
|
private |
Definition at line 257 of file BinPlotWidget.qo.h.
|
private |
Definition at line 241 of file BinPlotWidget.qo.h.
|
private |
Definition at line 236 of file BinPlotWidget.qo.h.
|
private |
Definition at line 287 of file BinPlotWidget.qo.h.
|
private |
Definition at line 288 of file BinPlotWidget.qo.h.
|
private |
Definition at line 286 of file BinPlotWidget.qo.h.
|
private |
Definition at line 262 of file BinPlotWidget.qo.h.
|
private |
Definition at line 227 of file BinPlotWidget.qo.h.
|
private |
Definition at line 266 of file BinPlotWidget.qo.h.
|
private |
Definition at line 268 of file BinPlotWidget.qo.h.
|
private |
Definition at line 267 of file BinPlotWidget.qo.h.
|
private |
Definition at line 269 of file BinPlotWidget.qo.h.