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

#include <SlicePlot.qo.h>

Inheritance diagram for casa::SlicePlot:

Public Slots

void updatePolyLine (int regionId, viewer::region::RegionChanges regionChanges, const QList< double > &linearX, const QList< double > &linearY, const QList< int > &pixelX, const QList< int > &pixelY)
 
void setXAxis (const QString &newAxis)
 
void xAxisUnitsChanged (const QString &units)
 
void segmentMarkerVisibilityChanged (bool visible)
 

Signals

void markerPositionChanged (int regionId, int segmentIndex, float percentage)
 
void markerVisibilityChanged (int regionId, bool showMarker)
 

Public Member Functions

 SlicePlot (QWidget *parent=NULL, bool fullVersion=false)
 
void setImage (std::shared_ptr< casacore::ImageInterface< float > > img)
 Data. More...
 
void updateChannel (int channel)
 
bool setRegionSelected (int regionId, bool selected)
 
void resetCurveColors (bool viewerColors, bool polylineColorUnit, QList< QColor > accumulateCurveColors)
 Look and feel. More...
 
void setViewerCurveColor (int regionId, const QString &colorName)
 
void setUseViewerColors (bool viewerColors)
 
void setPlotPreferences (int lineWidth, int markerSize)
 
void setSampleCount (int sampleCount)
 Setting slice parameters. More...
 
void setInterpolationMethod (const casacore::String &method)
 
void setAccumulateSlices (bool accumulate)
 
void clearCurves ()
 Wipe out only the curves that shouldn't be displayed under the current settings. More...
 
void clearCurvesAll ()
 Wipe out all curves. More...
 
bool toAscii (const QString &fileName)
 
void addStatistic (int regionId)
 Statistics. More...
 
void removeStatistics ()
 
void removeStatistic (int regionId)
 
void setStatisticsLayout (QLayout *layout)
 
void updatePositionInformation (int id, const QVector< casacore::String > &info)
 
void markPositionChanged (int regionId, int segmentIndex, float percentage)
 
void markVisibilityChanged (int regionId, bool showMarker)
 
bool isFullVersion () const
 
virtual ~SlicePlot ()
 

Static Public Attributes

static const QString DISTANCE_AXIS
 
static const QString POSITION_X_AXIS
 
static const QString POSITION_Y_AXIS
 
static const QString UNIT_X_PIXEL
 
static const QString UNIT_X_ARCSEC
 
static const QString UNIT_X_ARCMIN
 
static const QString UNIT_X_ARCDEG
 

Private Member Functions

 SlicePlot (const SlicePlot &other)
 
SlicePlot operator= (const SlicePlot &other)
 
ImageSlicegetSlicerFor (int regionId)
 
SliceStatisticsFactory::AxisXUnits getUnitMode () const
 
SliceStatisticsFactory::AxisXChoice getXAxis () const
 
void initPlot ()
 
void resetCurves ()
 
void addPlotCurve (int regionId)
 
void initAxisFont (int axisId, const QString &axisTitle)
 
void sliceFinished (int regionId)
 
QString getAxisLabel () const
 
void updateSelectedRegionId (int selectedRegionId)
 
void updatePolyLine (int regionId, const QList< double > &worldX, const QList< double > &worldY, const QList< int > &pixelX, const QList< int > &pixelY)
 
void deletePolyLine (int regionId)
 
int getColorIndex (int regionId) const
 
int assignCurveColors (int initialColorIndex, int regionId)
 
void resetExistingCurveColors ()
 

Private Attributes

QList< QColor > curveColors
 
std::shared_ptr
< casacore::ImageInterface
< float > > 
image
 
QMap< int, ImageSlice * > sliceMap
 
casacore::Vector< int > coords
 
int curveWidth
 
int markerSize
 
bool accumulateSlices
 
bool fullVersion
 
bool viewerColors
 
bool polylineColorUnit
 
bool segmentMarkers
 
int sampleCount
 
int currentRegionId
 
const int AXIS_FONT_SIZE
 
casacore::String interpolationMethod
 
QString xAxis
 
QString xAxisUnits
 
casacore::Vector< int > axes
 
QLayout * statLayout
 
SliceStatisticsFactoryfactory
 

Detailed Description

Definition at line 41 of file SlicePlot.qo.h.

Constructor & Destructor Documentation

casa::SlicePlot::SlicePlot ( QWidget *  parent = NULL,
bool  fullVersion = false 
)
virtual casa::SlicePlot::~SlicePlot ( )
virtual
casa::SlicePlot::SlicePlot ( const SlicePlot other)
private

Member Function Documentation

void casa::SlicePlot::addPlotCurve ( int  regionId)
private
void casa::SlicePlot::addStatistic ( int  regionId)

Statistics.

int casa::SlicePlot::assignCurveColors ( int  initialColorIndex,
int  regionId 
)
private
void casa::SlicePlot::clearCurves ( )

Wipe out only the curves that shouldn't be displayed under the current settings.

void casa::SlicePlot::clearCurvesAll ( )

Wipe out all curves.

void casa::SlicePlot::deletePolyLine ( int  regionId)
private
QString casa::SlicePlot::getAxisLabel ( ) const
private
int casa::SlicePlot::getColorIndex ( int  regionId) const
private
ImageSlice* casa::SlicePlot::getSlicerFor ( int  regionId)
private
SliceStatisticsFactory::AxisXUnits casa::SlicePlot::getUnitMode ( ) const
private
SliceStatisticsFactory::AxisXChoice casa::SlicePlot::getXAxis ( ) const
private
void casa::SlicePlot::initAxisFont ( int  axisId,
const QString &  axisTitle 
)
private
void casa::SlicePlot::initPlot ( )
private
bool casa::SlicePlot::isFullVersion ( ) const
void casa::SlicePlot::markerPositionChanged ( int  regionId,
int  segmentIndex,
float  percentage 
)
signal
void casa::SlicePlot::markerVisibilityChanged ( int  regionId,
bool  showMarker 
)
signal
void casa::SlicePlot::markPositionChanged ( int  regionId,
int  segmentIndex,
float  percentage 
)
void casa::SlicePlot::markVisibilityChanged ( int  regionId,
bool  showMarker 
)
SlicePlot casa::SlicePlot::operator= ( const SlicePlot other)
private
void casa::SlicePlot::removeStatistic ( int  regionId)
void casa::SlicePlot::removeStatistics ( )
void casa::SlicePlot::resetCurveColors ( bool  viewerColors,
bool  polylineColorUnit,
QList< QColor >  accumulateCurveColors 
)

Look and feel.

void casa::SlicePlot::resetCurves ( )
private
void casa::SlicePlot::resetExistingCurveColors ( )
private
void casa::SlicePlot::segmentMarkerVisibilityChanged ( bool  visible)
slot
void casa::SlicePlot::setAccumulateSlices ( bool  accumulate)
void casa::SlicePlot::setImage ( std::shared_ptr< casacore::ImageInterface< float > >  img)

Data.

void casa::SlicePlot::setInterpolationMethod ( const casacore::String method)
void casa::SlicePlot::setPlotPreferences ( int  lineWidth,
int  markerSize 
)
bool casa::SlicePlot::setRegionSelected ( int  regionId,
bool  selected 
)
void casa::SlicePlot::setSampleCount ( int  sampleCount)

Setting slice parameters.

void casa::SlicePlot::setStatisticsLayout ( QLayout *  layout)
void casa::SlicePlot::setUseViewerColors ( bool  viewerColors)
void casa::SlicePlot::setViewerCurveColor ( int  regionId,
const QString &  colorName 
)
void casa::SlicePlot::setXAxis ( const QString &  newAxis)
slot
void casa::SlicePlot::sliceFinished ( int  regionId)
private
bool casa::SlicePlot::toAscii ( const QString &  fileName)
void casa::SlicePlot::updateChannel ( int  channel)
void casa::SlicePlot::updatePolyLine ( int  regionId,
viewer::region::RegionChanges  regionChanges,
const QList< double > &  linearX,
const QList< double > &  linearY,
const QList< int > &  pixelX,
const QList< int > &  pixelY 
)
slot
void casa::SlicePlot::updatePolyLine ( int  regionId,
const QList< double > &  worldX,
const QList< double > &  worldY,
const QList< int > &  pixelX,
const QList< int > &  pixelY 
)
private
void casa::SlicePlot::updatePositionInformation ( int  id,
const QVector< casacore::String > &  info 
)
void casa::SlicePlot::updateSelectedRegionId ( int  selectedRegionId)
private
void casa::SlicePlot::xAxisUnitsChanged ( const QString &  units)
slot

Member Data Documentation

bool casa::SlicePlot::accumulateSlices
private

Definition at line 134 of file SlicePlot.qo.h.

casacore::Vector<int> casa::SlicePlot::axes
private

Definition at line 145 of file SlicePlot.qo.h.

const int casa::SlicePlot::AXIS_FONT_SIZE
private

Definition at line 141 of file SlicePlot.qo.h.

casacore::Vector<int> casa::SlicePlot::coords
private

Definition at line 131 of file SlicePlot.qo.h.

int casa::SlicePlot::currentRegionId
private

Definition at line 140 of file SlicePlot.qo.h.

QList<QColor> casa::SlicePlot::curveColors
private

Definition at line 126 of file SlicePlot.qo.h.

int casa::SlicePlot::curveWidth
private

Definition at line 132 of file SlicePlot.qo.h.

const QString casa::SlicePlot::DISTANCE_AXIS
static

Definition at line 84 of file SlicePlot.qo.h.

SliceStatisticsFactory* casa::SlicePlot::factory
private

Definition at line 147 of file SlicePlot.qo.h.

bool casa::SlicePlot::fullVersion
private

Definition at line 135 of file SlicePlot.qo.h.

std::shared_ptr<casacore::ImageInterface<float> > casa::SlicePlot::image
private

Definition at line 127 of file SlicePlot.qo.h.

casacore::String casa::SlicePlot::interpolationMethod
private

Definition at line 142 of file SlicePlot.qo.h.

int casa::SlicePlot::markerSize
private

Definition at line 133 of file SlicePlot.qo.h.

bool casa::SlicePlot::polylineColorUnit
private

Definition at line 137 of file SlicePlot.qo.h.

const QString casa::SlicePlot::POSITION_X_AXIS
static

Definition at line 85 of file SlicePlot.qo.h.

const QString casa::SlicePlot::POSITION_Y_AXIS
static

Definition at line 86 of file SlicePlot.qo.h.

int casa::SlicePlot::sampleCount
private

Definition at line 139 of file SlicePlot.qo.h.

bool casa::SlicePlot::segmentMarkers
private

Definition at line 138 of file SlicePlot.qo.h.

QMap<int, ImageSlice*> casa::SlicePlot::sliceMap
private

Definition at line 129 of file SlicePlot.qo.h.

QLayout* casa::SlicePlot::statLayout
private

Definition at line 146 of file SlicePlot.qo.h.

const QString casa::SlicePlot::UNIT_X_ARCDEG
static

Definition at line 90 of file SlicePlot.qo.h.

const QString casa::SlicePlot::UNIT_X_ARCMIN
static

Definition at line 89 of file SlicePlot.qo.h.

const QString casa::SlicePlot::UNIT_X_ARCSEC
static

Definition at line 88 of file SlicePlot.qo.h.

const QString casa::SlicePlot::UNIT_X_PIXEL
static

Definition at line 87 of file SlicePlot.qo.h.

bool casa::SlicePlot::viewerColors
private

Definition at line 136 of file SlicePlot.qo.h.

QString casa::SlicePlot::xAxis
private

Definition at line 143 of file SlicePlot.qo.h.

QString casa::SlicePlot::xAxisUnits
private

Definition at line 144 of file SlicePlot.qo.h.


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