casa::FeatherPlot Class Reference

#include <FeatherPlot.h>

List of all members.

Public Types

enum  PlotType {
  SLICE_CUT,
  SCATTER_PLOT,
  NO_TYPE
}

Public Member Functions

 FeatherPlot (QWidget *parent)
virtual ~FeatherPlot ()
void clearCurves ()
void clearLegend ()
void resetLegend ()
void addCurve (QVector< double > xValues, QVector< double > yValues, QColor curveColor, const QString &curveTitle, QwtPlot::Axis yAxis, bool sumCurve)
void addAxisTitle (QwtPlot::Axis axis, const QString &title)
void addDiagonal (QVector< double > xValues, QColor lineColor, QwtPlot::Axis yAxis)
void initializePlot (const QString &title, PlotType plotType)
void setFunctionColor (const QString &curveID, const QColor &color)
 Preferences.
void setLineThickness (int thickness)
void setDotSize (int dotSize)
void setLegendVisibility (bool visible)
bool setLogScale (bool uvScale, bool ampScale)
 Returns true if the uvScale changed.
void insertSingleLegend (QWidget *parent)
 Legend.
QWidget * getExternalAxisControl (QwtPlot::Axis position)
FeatherPlot::PlotType getPlotType () const
 Accessors.
bool isLogUV () const
bool isLogAmplitude () const
bool isEmpty () const
bool isScatterPlot () const
bool isSliceCut () const

Static Public Attributes

static const QString Y_EQUALS_X

Private Member Functions

void setCurvePenColor (int curveIndex, const QColor &color)
int getCurveIndex (const QString &curveTitle) const
void setCurveSize (int curveIndex)
void updateAxes ()
void updateAxis (int index)
void setAxisLabels ()
void adjustPlotBounds (std::pair< double, double > curveBounds, QwtPlot::Axis yAxis)
void resetPlotBounds ()
void setLegendSize ()
void initAxes ()
void setCurveData (FeatherCurve *curve, QwtPlot::Axis yAxis)

Private Attributes

QwtLegend * externalLegend
QWidget * legendParent
PlotType plotType
int lineThickness
int dotSize
bool scaleLogAmplitude
bool scaleLogUV
const int AXIS_COUNT
const int MINIMUM_LEGEND_LINE_WIDTH
QList< FeatherCurve * > curves
QList< QString > axisTitles
 External axis drawing support.
QList< QString > axisLabels
QList< ExternalAxisControl * > axisWidgets
QList< ExternalAxis * > axisBlanks
double minX
double maxX
double minY
double maxY
double minYRight
double maxYRight

Friends

class ExternalAxisControlBottom
class ExternalAxisControlRight
class ExternalAxisControlLeft

Detailed Description

Definition at line 45 of file FeatherPlot.h.


Member Enumeration Documentation

Enumerator:
SLICE_CUT 
SCATTER_PLOT 
NO_TYPE 

Definition at line 53 of file FeatherPlot.h.


Constructor & Destructor Documentation

casa::FeatherPlot::FeatherPlot ( QWidget *  parent  ) 
virtual casa::FeatherPlot::~FeatherPlot (  )  [virtual]

Member Function Documentation

void casa::FeatherPlot::addAxisTitle ( QwtPlot::Axis  axis,
const QString &  title 
)
void casa::FeatherPlot::addCurve ( QVector< double >  xValues,
QVector< double >  yValues,
QColor  curveColor,
const QString &  curveTitle,
QwtPlot::Axis  yAxis,
bool  sumCurve 
)
void casa::FeatherPlot::addDiagonal ( QVector< double >  xValues,
QColor  lineColor,
QwtPlot::Axis  yAxis 
)
void casa::FeatherPlot::adjustPlotBounds ( std::pair< double, double >  curveBounds,
QwtPlot::Axis  yAxis 
) [private]
void casa::FeatherPlot::clearCurves (  ) 
void casa::FeatherPlot::clearLegend (  ) 
int casa::FeatherPlot::getCurveIndex ( const QString &  curveTitle  )  const [private]
QWidget* casa::FeatherPlot::getExternalAxisControl ( QwtPlot::Axis  position  ) 
FeatherPlot::PlotType casa::FeatherPlot::getPlotType (  )  const

Accessors.

void casa::FeatherPlot::initAxes (  )  [private]
void casa::FeatherPlot::initializePlot ( const QString &  title,
PlotType  plotType 
)
void casa::FeatherPlot::insertSingleLegend ( QWidget *  parent  ) 

Legend.

bool casa::FeatherPlot::isEmpty (  )  const
bool casa::FeatherPlot::isLogAmplitude (  )  const
bool casa::FeatherPlot::isLogUV (  )  const
bool casa::FeatherPlot::isScatterPlot (  )  const
bool casa::FeatherPlot::isSliceCut (  )  const
void casa::FeatherPlot::resetLegend (  ) 
void casa::FeatherPlot::resetPlotBounds (  )  [private]
void casa::FeatherPlot::setAxisLabels (  )  [private]
void casa::FeatherPlot::setCurveData ( FeatherCurve curve,
QwtPlot::Axis  yAxis 
) [private]
void casa::FeatherPlot::setCurvePenColor ( int  curveIndex,
const QColor &  color 
) [private]
void casa::FeatherPlot::setCurveSize ( int  curveIndex  )  [private]
void casa::FeatherPlot::setDotSize ( int  dotSize  ) 
void casa::FeatherPlot::setFunctionColor ( const QString &  curveID,
const QColor &  color 
)
void casa::FeatherPlot::setLegendSize (  )  [private]
void casa::FeatherPlot::setLegendVisibility ( bool  visible  ) 
void casa::FeatherPlot::setLineThickness ( int  thickness  ) 
bool casa::FeatherPlot::setLogScale ( bool  uvScale,
bool  ampScale 
)

Returns true if the uvScale changed.

The log scale does not impact the return of this method.

void casa::FeatherPlot::updateAxes (  )  [private]
void casa::FeatherPlot::updateAxis ( int  index  )  [private]

Friends And Related Function Documentation

friend class ExternalAxisControlBottom [friend]

Definition at line 47 of file FeatherPlot.h.

friend class ExternalAxisControlLeft [friend]

Definition at line 49 of file FeatherPlot.h.

friend class ExternalAxisControlRight [friend]

Definition at line 48 of file FeatherPlot.h.


Member Data Documentation

const int casa::FeatherPlot::AXIS_COUNT [private]

Definition at line 113 of file FeatherPlot.h.

Definition at line 122 of file FeatherPlot.h.

QList<QString> casa::FeatherPlot::axisLabels [private]

Definition at line 120 of file FeatherPlot.h.

QList<QString> casa::FeatherPlot::axisTitles [private]

External axis drawing support.

Definition at line 119 of file FeatherPlot.h.

Definition at line 121 of file FeatherPlot.h.

Definition at line 116 of file FeatherPlot.h.

Definition at line 109 of file FeatherPlot.h.

QwtLegend* casa::FeatherPlot::externalLegend [private]

Definition at line 104 of file FeatherPlot.h.

QWidget* casa::FeatherPlot::legendParent [private]

Definition at line 105 of file FeatherPlot.h.

Definition at line 108 of file FeatherPlot.h.

double casa::FeatherPlot::maxX [private]

Definition at line 125 of file FeatherPlot.h.

double casa::FeatherPlot::maxY [private]

Definition at line 127 of file FeatherPlot.h.

double casa::FeatherPlot::maxYRight [private]

Definition at line 129 of file FeatherPlot.h.

Definition at line 114 of file FeatherPlot.h.

double casa::FeatherPlot::minX [private]

Definition at line 124 of file FeatherPlot.h.

double casa::FeatherPlot::minY [private]

Definition at line 126 of file FeatherPlot.h.

double casa::FeatherPlot::minYRight [private]

Definition at line 128 of file FeatherPlot.h.

Definition at line 106 of file FeatherPlot.h.

Definition at line 110 of file FeatherPlot.h.

Definition at line 111 of file FeatherPlot.h.

const QString casa::FeatherPlot::Y_EQUALS_X [static]

Definition at line 89 of file FeatherPlot.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1