casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Slots | Signals | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
casa::SlicePlot Class Reference

#include <SlicePlot.qo.h>

List of all members.

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 (ImageInterface< float > *img)
 Data.
void updateChannel (int channel)
void setRegionSelected (int regionId, bool selected)
void resetCurveColors (bool viewerColors, bool polylineColorUnit, QList< QColor > accumulateCurveColors)
 Look and feel.
void setViewerCurveColor (int regionId, const QString &colorName)
void setUseViewerColors (bool viewerColors)
void setPlotPreferences (int lineWidth, int markerSize)
void setSampleCount (int sampleCount)
 Setting slice parameters.
void setInterpolationMethod (const String &method)
void setAccumulateSlices (bool accumulate)
void clearCurves ()
 Wipe out only the curves that shouldn't be displayed under the current settings.
void clearCurvesAll ()
 Wipe out all curves.
bool toAscii (const QString &fileName)
void addStatistic (int regionId)
 Statistics.
void removeStatistics ()
void removeStatistic (int regionId)
void setStatisticsLayout (QLayout *layout)
void updatePositionInformation (int id, const QVector< 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
ImageInterface< float > * image
ImageAnalysisimageAnalysis
QMap< int, ImageSlice * > sliceMap
Vector< Intcoords
int curveWidth
int markerSize
bool accumulateSlices
bool fullVersion
bool viewerColors
bool polylineColorUnit
bool segmentMarkers
int sampleCount
int currentRegionId
const int AXIS_FONT_SIZE
String interpolationMethod
QString xAxis
QString xAxisUnits
Vector< Intaxes
QLayout * statLayout
SliceStatisticsFactoryfactory

Detailed Description

Definition at line 43 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]

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

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]
void casa::SlicePlot::initAxisFont ( int  axisId,
const QString &  axisTitle 
) [private]
void casa::SlicePlot::initPlot ( ) [private]
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::resetCurveColors ( bool  viewerColors,
bool  polylineColorUnit,
QList< QColor >  accumulateCurveColors 
)

Look and feel.

void casa::SlicePlot::resetCurves ( ) [private]
void casa::SlicePlot::segmentMarkerVisibilityChanged ( bool  visible) [slot]
void casa::SlicePlot::setAccumulateSlices ( bool  accumulate)
void casa::SlicePlot::setImage ( ImageInterface< float > *  img)

Data.

void casa::SlicePlot::setPlotPreferences ( int  lineWidth,
int  markerSize 
)
void 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< String > &  info 
)
void casa::SlicePlot::updateSelectedRegionId ( int  selectedRegionId) [private]
void casa::SlicePlot::xAxisUnitsChanged ( const QString &  units) [slot]

Member Data Documentation

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

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

const int casa::SlicePlot::AXIS_FONT_SIZE [private]

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

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

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

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

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

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

const QString casa::SlicePlot::DISTANCE_AXIS [static]

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

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

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

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

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

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

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

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

const QString casa::SlicePlot::POSITION_X_AXIS [static]

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

const QString casa::SlicePlot::POSITION_Y_AXIS [static]

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

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

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

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

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

QLayout* casa::SlicePlot::statLayout [private]

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

const QString casa::SlicePlot::UNIT_X_ARCDEG [static]

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

const QString casa::SlicePlot::UNIT_X_ARCMIN [static]

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

const QString casa::SlicePlot::UNIT_X_ARCSEC [static]

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

const QString casa::SlicePlot::UNIT_X_PIXEL [static]

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

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

QString casa::SlicePlot::xAxis [private]

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

QString casa::SlicePlot::xAxisUnits [private]

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


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