casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
casa::ImageSlice Class Reference

Represents a slice cut of an image. More...

#include <ImageSlice.qo.h>

Inheritance diagram for casa::ImageSlice:

Public Member Functions

 ImageSlice (int id, QWidget *parent=NULL)
 
QColor getCurveColor (int index) const
 
int getColorCount () const
 
void setShowCorners (bool show)
 
void setSampleCount (int count)
 
void setAxes (const casacore::Vector< int > &axes)
 
void setCoords (const casacore::Vector< int > &coords)
 
void setCurveColor (QList< QColor > colors)
 
bool isSelected () const
 
void setSelected (bool selected)
 
void setInterpolationMethod (const casacore::String &method)
 
void setImage (std::shared_ptr< casacore::ImageInterface< float > > img)
 
void setUseViewerColors (bool useViewerColors)
 
void setPolylineColorUnit (bool polyline)
 
void setPlotPreferences (int curveWidth, int markerSize)
 
void setViewerCurveColor (const QString &colorName)
 
void updatePolyLine (const QList< int > &pixelX, const QList< int > &pixelY, const QList< double > &worldX, const QList< double > &worldY)
 
void updatePositionInformation (const QVector< casacore::String > &info)
 
void toAscii (QTextStream &)
 
void clearCurve ()
 
void addPlotCurve (QwtPlot *plot)
 
virtual ~ImageSlice ()
 
void setStatistics (SliceStatistics *statistics)
 X-Axis. More...
 

Private Slots

void openCloseDisplay ()
 

Private Member Functions

void minimizeDisplay ()
 
void maximizeDisplay ()
 
void resetPlotCurve ()
 
void updateSliceStatistics ()
 
void clearCorners ()
 
void addCorner (double xValue, double yValue, QwtPlot *plot)
 
void addSegment (SliceSegment *segment)
 
void removeSegment (SliceSegment *segment)
 
void resetSegmentColors ()
 
void runSliceWorker ()
 
 ImageSlice (const ImageSlice &other)
 
ImageSlice operator= (const ImageSlice &other)
 

Private Attributes

SliceStatisticsstatistics
 
int markerSize
 
int curveWidth
 
int regionId
 
bool selected
 
bool useViewerColors
 
bool showCorners
 
bool polylineUnit
 
bool minimized
 
QColor viewerColor
 
QList< QColor > segmentColors
 
SliceWorkersliceWorker
 
QList< SliceSegment * > segments
 
QList< QwtPlotMarker * > segmentCorners
 
ImageSliceColorBarcolorBar
 
Ui::ImageSliceClass ui
 

Detailed Description

Represents a slice cut of an image.

The slice cut may be a polygonal chain or a single line segment.

Definition at line 57 of file ImageSlice.qo.h.

Constructor & Destructor Documentation

casa::ImageSlice::ImageSlice ( int  id,
QWidget *  parent = NULL 
)
virtual casa::ImageSlice::~ImageSlice ( )
virtual
casa::ImageSlice::ImageSlice ( const ImageSlice other)
private

Member Function Documentation

void casa::ImageSlice::addCorner ( double  xValue,
double  yValue,
QwtPlot *  plot 
)
private
void casa::ImageSlice::addPlotCurve ( QwtPlot *  plot)
void casa::ImageSlice::addSegment ( SliceSegment segment)
private
void casa::ImageSlice::clearCorners ( )
private
void casa::ImageSlice::clearCurve ( )
int casa::ImageSlice::getColorCount ( ) const
QColor casa::ImageSlice::getCurveColor ( int  index) const
bool casa::ImageSlice::isSelected ( ) const
void casa::ImageSlice::maximizeDisplay ( )
private
void casa::ImageSlice::minimizeDisplay ( )
private
void casa::ImageSlice::openCloseDisplay ( )
privateslot
ImageSlice casa::ImageSlice::operator= ( const ImageSlice other)
private
void casa::ImageSlice::removeSegment ( SliceSegment segment)
private
void casa::ImageSlice::resetPlotCurve ( )
private
void casa::ImageSlice::resetSegmentColors ( )
private
void casa::ImageSlice::runSliceWorker ( )
private
void casa::ImageSlice::setAxes ( const casacore::Vector< int > &  axes)
void casa::ImageSlice::setCoords ( const casacore::Vector< int > &  coords)
void casa::ImageSlice::setCurveColor ( QList< QColor >  colors)
void casa::ImageSlice::setImage ( std::shared_ptr< casacore::ImageInterface< float > >  img)
void casa::ImageSlice::setInterpolationMethod ( const casacore::String method)
void casa::ImageSlice::setPlotPreferences ( int  curveWidth,
int  markerSize 
)
void casa::ImageSlice::setPolylineColorUnit ( bool  polyline)
void casa::ImageSlice::setSampleCount ( int  count)
void casa::ImageSlice::setSelected ( bool  selected)
void casa::ImageSlice::setShowCorners ( bool  show)
void casa::ImageSlice::setStatistics ( SliceStatistics statistics)

X-Axis.

void casa::ImageSlice::setUseViewerColors ( bool  useViewerColors)
void casa::ImageSlice::setViewerCurveColor ( const QString &  colorName)
void casa::ImageSlice::toAscii ( QTextStream &  )
void casa::ImageSlice::updatePolyLine ( const QList< int > &  pixelX,
const QList< int > &  pixelY,
const QList< double > &  worldX,
const QList< double > &  worldY 
)
void casa::ImageSlice::updatePositionInformation ( const QVector< casacore::String > &  info)
void casa::ImageSlice::updateSliceStatistics ( )
private

Member Data Documentation

ImageSliceColorBar* casa::ImageSlice::colorBar
private

Definition at line 122 of file ImageSlice.qo.h.

int casa::ImageSlice::curveWidth
private

Definition at line 110 of file ImageSlice.qo.h.

int casa::ImageSlice::markerSize
private

Definition at line 109 of file ImageSlice.qo.h.

bool casa::ImageSlice::minimized
private

Definition at line 116 of file ImageSlice.qo.h.

bool casa::ImageSlice::polylineUnit
private

Definition at line 115 of file ImageSlice.qo.h.

int casa::ImageSlice::regionId
private

Definition at line 111 of file ImageSlice.qo.h.

QList<QColor> casa::ImageSlice::segmentColors
private

Definition at line 118 of file ImageSlice.qo.h.

QList<QwtPlotMarker*> casa::ImageSlice::segmentCorners
private

Definition at line 121 of file ImageSlice.qo.h.

QList<SliceSegment*> casa::ImageSlice::segments
private

Definition at line 120 of file ImageSlice.qo.h.

bool casa::ImageSlice::selected
private

Definition at line 112 of file ImageSlice.qo.h.

bool casa::ImageSlice::showCorners
private

Definition at line 114 of file ImageSlice.qo.h.

SliceWorker* casa::ImageSlice::sliceWorker
private

Definition at line 119 of file ImageSlice.qo.h.

SliceStatistics* casa::ImageSlice::statistics
private

Definition at line 105 of file ImageSlice.qo.h.

Ui::ImageSliceClass casa::ImageSlice::ui
private

Definition at line 123 of file ImageSlice.qo.h.

bool casa::ImageSlice::useViewerColors
private

Definition at line 113 of file ImageSlice.qo.h.

QColor casa::ImageSlice::viewerColor
private

Definition at line 117 of file ImageSlice.qo.h.


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