26 #ifndef IMAGE_SLICE_QO_H_
27 #define IMAGE_SLICE_QO_H_
29 #include <display/Slicer/ImageSlice.ui.h>
39 #include <QTextStream>
49 class ImageSliceColorBar;
50 class SliceStatistics;
78 void updatePolyLine(
const QList<int> &pixelX,
const QList<int> & pixelY,
79 const QList<double>& worldX,
const QList<double>& worldY );
99 void addCorner(
double xValue,
double yValue, QwtPlot* plot );
123 Ui::ImageSliceClass
ui;
QColor getCurveColor(int index) const
SliceWorker * sliceWorker
void updateSliceStatistics()
ImageSlice(int id, QWidget *parent=NULL)
Draws a colored rectangular bar across the top of the image slice statistics as an identifier when th...
void setInterpolationMethod(const casacore::String &method)
void setImage(std::shared_ptr< casacore::ImageInterface< float > > img)
Responsible for computing the (x,y)-values that represent a slice cut.
void setSampleCount(int count)
void addCorner(double xValue, double yValue, QwtPlot *plot)
ImageSlice operator=(const ImageSlice &other)
Specialization for Quantum<Vector<T> >
void setSelected(bool selected)
void show(const variant &v)
QList< QwtPlotMarker * > segmentCorners
int getColorCount() const
void removeSegment(SliceSegment *segment)
void setPolylineColorUnit(bool polyline)
void setCurveColor(QList< QColor > colors)
void setAxes(const casacore::Vector< int > &axes)
QList< QColor > segmentColors
SliceStatistics * statistics
void updatePolyLine(const QList< int > &pixelX, const QList< int > &pixelY, const QList< double > &worldX, const QList< double > &worldY)
QList< SliceSegment * > segments
Represents a slice cut of an image.
void resetSegmentColors()
void setUseViewerColors(bool useViewerColors)
void toAscii(QTextStream &)
void setPlotPreferences(int curveWidth, int markerSize)
void addPlotCurve(QwtPlot *plot)
Computes the angle and distance for a single line segment in the slice.
void setShowCorners(bool show)
void setStatistics(SliceStatistics *statistics)
X-Axis.
String: the storage and methods of handling collections of characters.
ImageSliceColorBar * colorBar
void setViewerCurveColor(const QString &colorName)
void addSegment(SliceSegment *segment)
void setCoords(const casacore::Vector< int > &coords)
void updatePositionInformation(const QVector< casacore::String > &info)