QXRD  0.11.16
Public Member Functions | List of all members
QxrdDetectorImagePlot Class Reference

#include <qxrddetectorimageplot.h>

Inheritance diagram for QxrdDetectorImagePlot:
Inheritance graph
[legend]
Collaboration diagram for QxrdDetectorImagePlot:
Collaboration graph
[legend]

Public Member Functions

 QxrdDetectorImagePlot (QWidget *parent=0)
 
void init (QxrdImagePlotSettingsWPtr settings)
 
void contextMenuEvent (QContextMenuEvent *event)
 
- Public Member Functions inherited from QxrdImagePlot
 QxrdImagePlot (QWidget *parent=0)
 
void init (QxrdImagePlotSettingsWPtr settings)
 
QxrdImagePlotSettingsWPtr imagePlotSettings ()
 
const QxrdRasterDataraster () const
 
QxrdRasterDataraster ()
 
const QxrdMaskRasterDatamaskRaster () const
 
QxrdMaskRasterDatamaskRaster ()
 
QxrdDataProcessorWPtr processor () const
 
void setProcessor (QxrdDataProcessorWPtr proc)
 
void replot ()
 
virtual QwtText trackerTextF (const QPointF &pos)
 
void contextMenuEvent (QContextMenuEvent *event)
 
void enableROIDisplay (bool enable)
 
void setROIModel (QxrdROICoordinatesListModelPtr model)
 
void setROISelection (QItemSelectionModel *select)
 
- Public Member Functions inherited from QcepPlot
 QcepPlot (QWidget *parent=0)
 
virtual ~QcepPlot ()
 
void init (QcepPlotSettingsWPtr settings)
 
void setPlotCurveStyle (int index, QwtPlotCurve *curve)
 
void contextMenuEvent (QContextMenuEvent *event)
 
void updateZoomer ()
 

Additional Inherited Members

- Public Types inherited from QxrdImagePlot
enum  { PercentageMode, PercentileMode, AbsoluteMode }
 
- Public Slots inherited from QxrdImagePlot
void autoScale ()
 
void set005Range ()
 
void set010Range ()
 
void set100Range ()
 
void recalculateDisplayedRange ()
 
void setAutoRange ()
 
void setGrayscale ()
 
void setInverseGrayscale ()
 
void setEarthTones ()
 
void setSpectrum ()
 
void setFire ()
 
void setIce ()
 
void redoColorMap ()
 
void setColorMap (int index)
 
void toggleShowImage ()
 
void toggleShowMask ()
 
void toggleShowOverflow ()
 
void toggleShowROI ()
 
void toggleLogDisplay ()
 
void changeImageShown (bool shown)
 
void changeMaskShown (bool shown)
 
void changeOverflowShown (bool shown)
 
void changeROIShown (bool shown)
 
void changeLogDisplay (bool isLog)
 
void onInterpolateChanged (bool interp)
 
void onMaintainAspectChanged (bool interp)
 
void onProcessedImageAvailable (QcepImageDataBasePtr image, QcepMaskDataPtr overflow)
 
void onMaskedImageAvailable (QcepImageDataBasePtr image, QcepMaskDataPtr mask)
 
void onDarkImageAvailable (QcepImageDataBasePtr image)
 
void onCenterXChanged (double cx)
 
void onCenterYChanged (double cy)
 
void onCenterChanged (QPointF c)
 
void onMarkedPointsChanged ()
 
void onImageScaleChanged ()
 
void enableZooming ()
 
void enableCentering ()
 
void enableSlicing ()
 
void enableMeasuring ()
 
void enableHistograms ()
 
void enableMaskCircles ()
 
void enableMaskPolygons ()
 
void enablePowderPoints ()
 
void clearPowderMarkers ()
 
void displayPowderMarkers ()
 
void enableContextMenu ()
 
void disableContextMenu ()
 
void zapPixel (int x, int y)
 
virtual void onLegendChecked (const QVariant &itemInfo, bool on, int index)
 
- Public Slots inherited from QcepPlot
virtual void autoScale ()
 
void printGraph ()
 
void zoomIn ()
 
void zoomOut ()
 
void enableZooming ()
 
void enableMeasuring ()
 
virtual void onLegendClicked (const QVariant &itemInfo, int index)
 
virtual void onLegendChecked (const QVariant &itemInfo, bool on, int index)
 
void setXAxisLog (bool isLog)
 
void setYAxisLog (bool isLog)
 
void setX2AxisLog (bool isLog)
 
void setY2AxisLog (bool isLog)
 
void setLogAxis (int axis, int isLog)
 
int logAxis (int axis)
 
- Signals inherited from QxrdImagePlot
void slicePolygon (QVector< QPointF > poly)
 
void selectHistogram (QRectF rect)
 
- Protected Member Functions inherited from QxrdImagePlot
void selectROILabel (int i, bool on)
 
void moveSelectedROICenter (double x, double y)
 
- Protected Attributes inherited from QxrdImagePlot
QxrdImagePlotSettingsWPtr m_ImagePlotSettings
 
- Protected Attributes inherited from QcepPlot
QcepPlotSettingsWPtr m_PlotSettings
 
QwtLegend * m_Legend
 
QwtPlotZoomer * m_Zoomer
 
QwtPlotPanner * m_Panner
 
QwtPlotMagnifier * m_Magnifier
 
QcepPlotMeasurerPtr m_Measurer
 
int m_IsLog [QwtPlot::axisCnt]
 

Detailed Description

Definition at line 6 of file qxrddetectorimageplot.h.

Constructor & Destructor Documentation

QxrdDetectorImagePlot::QxrdDetectorImagePlot ( QWidget *  parent = 0)

Definition at line 5 of file qxrddetectorimageplot.cpp.

6  : QxrdImagePlot(parent)
7 {
8 }
QxrdImagePlot(QWidget *parent=0)

Member Function Documentation

void QxrdDetectorImagePlot::contextMenuEvent ( QContextMenuEvent *  event)

Definition at line 15 of file qxrddetectorimageplot.cpp.

References QxrdImagePlot::autoScale(), QxrdImagePlot::m_ImagePlotSettings, QxrdImagePlot::moveSelectedROICenter(), QcepPlot::printGraph(), QxrdImagePlot::toggleLogDisplay(), QxrdImagePlot::toggleShowMask(), QxrdImagePlot::toggleShowROI(), and QxrdImagePlot::zapPixel().

16 {
18 
19  if (set) {
20  QwtScaleMap xMap = canvasMap(QwtPlot::xBottom);
21  QwtScaleMap yMap = canvasMap(QwtPlot::yLeft);
22 
23  QWidget *canv = canvas();
24 
25  QPoint evlocal = canv->mapFromParent(event->pos());
26 
27  double x = xMap.invTransform(evlocal.x());
28  double y = yMap.invTransform(evlocal.y());
29 
30  QMenu plotMenu;
31 
32  QAction *auSc = plotMenu.addAction("Autoscale");
33  QAction *prGr = plotMenu.addAction("Print Graph...");
34 
35  QAction *lgSc = plotMenu.addAction("Log Intensity Scale?");
36  lgSc->setCheckable(true);
37  lgSc->setChecked(set->get_DisplayLog());
38 
39  QAction *shMk = plotMenu.addAction("Show Mask?");
40  shMk->setCheckable(true);
41  shMk->setChecked(set->get_MaskShown());
42 
43  QAction *shRoi = plotMenu.addAction("Show ROI Outlines?");
44  shRoi->setCheckable(true);
45  shRoi->setChecked(set->get_DisplayROI());
46  QAction *mvRoi = plotMenu.addAction(tr("Move selected ROI centers to (%1,%2)").arg(x).arg(y));
47  plotMenu.addSeparator();
48 
49  QAction *zap = plotMenu.addAction(tr("Zap (replace with avg of neighboring values) pixel [%1,%2]").arg((int)x).arg(int(y)));
50 
51  QAction *action = plotMenu.exec(event->globalPos());
52 
53  if (action == auSc) {
54  autoScale();
55  } else if (action == prGr) {
56  printGraph();
57  } else if (action == lgSc) {
59  } else if (action == shMk) {
61  } else if (action == shRoi) {
62  toggleShowROI();
63  } else if (action == mvRoi) {
65  } else if (action == zap) {
66  zapPixel(qRound(x), qRound(y));
67  }
68  }
69 }
void moveSelectedROICenter(double x, double y)
void toggleLogDisplay()
QxrdImagePlotSettingsWPtr m_ImagePlotSettings
void zapPixel(int x, int y)
void printGraph()
Definition: qcepplot.cpp:199
QSharedPointer< QxrdImagePlotSettings > QxrdImagePlotSettingsPtr

Here is the call graph for this function:

void QxrdDetectorImagePlot::init ( QxrdImagePlotSettingsWPtr  settings)

Definition at line 10 of file qxrddetectorimageplot.cpp.

References QxrdImagePlot::init().

11 {
12  QxrdImagePlot::init(settings);
13 }
void init(QxrdImagePlotSettingsWPtr settings)

Here is the call graph for this function:


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