1 #ifndef QXRDIMAGEPLOT_H
2 #define QXRDIMAGEPLOT_H
6 #include <qwt_color_map.h>
7 #include <qwt_plot_rescaler.h>
8 #include <qwt_plot_spectrogram.h>
9 #include <qwt_plot_marker.h>
28 #include <QItemSelectionModel>
101 virtual void onLegendChecked(
const QVariant &itemInfo,
bool on,
int index);
132 void colorMapRange(
double value1, QColor color1,
double value2, QColor color2);
142 const QItemSelection &deselected);
void changeMaskShown(bool shown)
void changeOverflowShown(bool shown)
QxrdROICoordinatesListModelPtr m_ROIModel
QWeakPointer< QxrdDataProcessor > QxrdDataProcessorWPtr
QwtPlotSpectrogram * m_DataImage
void changeImageShown(bool shown)
QwtPlotMarker * m_CenterMarker
QxrdPlotSlicer * m_Slicer
void selectHistogram(QRectF rect)
QcepObjectNamer m_ObjectNamer
QwtLinearColorMap * m_ColorMap
void setInverseGrayscale()
void contextMenuEvent(QContextMenuEvent *event)
void moveSelectedROICenter(double x, double y)
void toggleShowOverflow()
QVector< QwtPlotCurve * > m_PowderPointCurves
void onImageScaleChanged()
QxrdImagePlotSettingsWPtr imagePlotSettings()
void setROISelection(QItemSelectionModel *select)
void onDarkImageAvailable(QcepImageDataBasePtr image)
void setMask(QxrdMaskRasterData *data)
QwtPlotSpectrogram * m_OverflowImage
QWeakPointer< QxrdImagePlotSettings > QxrdImagePlotSettingsWPtr
QxrdImagePlotSettingsWPtr m_ImagePlotSettings
QxrdDataProcessorWPtr processor() const
void colorMapRange(double value1, QColor color1, double value2, QColor color2)
void setProcessor(QxrdDataProcessorWPtr proc)
const QxrdRasterData * raster() const
void zapPixel(int x, int y)
void updateROISelection(const QItemSelection &selected, const QItemSelection &deselected)
void onCenterYChanged(double cy)
const QxrdMaskRasterData * maskRaster() const
QxrdMaskRasterData * m_MaskRaster
void onCenterChanged(QPointF c)
QwtPlotSpectrogram * m_MaskImage
void init(QxrdImagePlotSettingsWPtr settings)
QwtPlotRescaler * m_Rescaler
QxrdMaskColorMap * m_MaskColorMap
QxrdImagePlotMeasurer * m_Measurer
QxrdMaskRasterData * m_OverflowRaster
QxrdMaskPicker * m_Polygons
void setColorMap(int index)
void slicePolygon(QVector< QPointF > poly)
QxrdImagePlot(QWidget *parent=0)
void changeROIShown(bool shown)
void recalculateDisplayedRange()
void enablePowderPoints()
QxrdMaskPicker * m_Circles
void clearPowderMarkers()
void onMarkedPointsChanged()
QxrdHistogramSelector * m_HistogramSelector
void setTrackerPen(const QPen &pen)
QcepMaskDataPtr m_Overflow
void onMaintainAspectChanged(bool interp)
QItemSelectionModel * m_ROISelection
QxrdMaskColorMap * m_OverflowColorMap
void onMaskedImageAvailable(QcepImageDataBasePtr image, QcepMaskDataPtr mask)
QxrdRasterData * m_DataRaster
void displayPowderMarkers()
void selectROIItem(int n, bool selected)
bool m_ContextMenuEnabled
void onProcessedImageAvailable(QcepImageDataBasePtr image, QcepMaskDataPtr overflow)
void enableMaskPolygons()
virtual void onLegendChecked(const QVariant &itemInfo, bool on, int index)
void selectROILabel(int i, bool on)
void setOverflows(QxrdMaskRasterData *overflow)
void changeLogDisplay(bool isLog)
QxrdDataProcessorWPtr m_DataProcessor
QSharedPointer< QcepImageDataBase > QcepImageDataBasePtr
QSharedPointer< QcepMaskData > QcepMaskDataPtr
void setROIModel(QxrdROICoordinatesListModelPtr model)
virtual QwtText trackerTextF(const QPointF &pos)
void setImage(QxrdRasterData *data)
void disableContextMenu()
QSharedPointer< QxrdROICoordinatesListModel > QxrdROICoordinatesListModelPtr
void onCenterXChanged(double cx)
QxrdCenterFinderPicker * m_CenterFinderPicker
QVector< QwtPlotCurve * > m_ROICurves
QcepImageDataBasePtr m_Data
void enableROIDisplay(bool enable)
QxrdPowderPointPicker * m_PowderPointPicker
void onInterpolateChanged(bool interp)
void colorMapStart(QColor startColor, QColor endColor)