casa
5.7.0-16
|
#include <QtDrawCanvas.qo.h>
Public Types | |
enum | { LINE, POINT, FPOINT, CIRCLE, FCIRCLE, RECT, FRECT, DIM, FDIM, PLUS, FPLUS, CROSS, FCROSS, TRIGU, FTRIGU, TRIGD, FTRIGD, TRIGL, FTRIGL, TRIGR, FTRIGR, SAND, FSAND, WING, FWING, BEAM, FBEAM, BED, FBED, HIST, FHIST } |
Public Slots | |
void | zoomIn () |
void | zoomOut () |
void | markPrev () |
void | markNext () |
Signals | |
void | zoomChanged () |
void | gotFocus () |
Public Member Functions | |
QtDrawCanvas (QWidget *parent=0) | |
void | setPlotSettings (const QtDrawSettings &settings) |
void | setCurveData (int id, const CurveData data, int tp=0, int cl=0) |
void | clearCurve (int id) |
void | setDataRange () |
void | setImageMode (bool) |
void | setPixmap (const QImage &) |
QPixmap * | graph () |
void | drawBackBuffer (QPainter *) |
void | plotPolyLines (QString) |
void | plotPolyLine (const casacore::Vector< int > &, const casacore::Vector< int > &, int ln=0, int tp=0, int cl=0) |
ln = 0, new chart ln < 0, remove trace ln > 0, append trace if ln exists, otherwise add trace tp = 0, continous line tp > 0, discrete symbols tp < 0, line and symbols cl, color value range from 0 up More... | |
void | plotPolyLine (const casacore::Vector< float > &x, const casacore::Vector< float > &y, int ln=0, int tp=0, int cl=0) |
void | plotPolyLine (const casacore::Vector< double > &, const casacore::Vector< double > &, int ln=0, int tp=0, int cl=0) |
void | plotPolyLine (const casacore::Matrix< int > &verts, int ln=0, int tp=0, int cl=0) |
Each row is a trace ln = 0, new chart ln < 0, remove traces ln > 0, append traces from (ln)th, add if not exists tp < 0, same shape for all traces tp = 0, continuous lines tp > 0, different discrete shape for each trace cl > 0, different color for each trace cl <= 0, same color for all traces. More... | |
void | plotPolyLine (const casacore::Matrix< float > &verts, int ln=0, int tp=0, int cl=0) |
void | plotPolyLine (const casacore::Matrix< double > &verts, int ln=0, int tp=0, int cl=0) |
void | drawImage (const casacore::Matrix< casacore::uInt > &data, casacore::Matrix< casacore::uInt > *mask) |
template<class T> More... | |
void | drawImage (const casacore::Matrix< casacore::uInt > &data) |
QColor | getLinearColor (double) |
void setMarkMode(bool); More... | |
QSize | minimumSizeHint () const |
QSize | sizeHint () const |
~QtDrawCanvas () | |
void | increaseCurZoom () |
int | getCurZoom () |
int | getZoomStackSize () |
int | getCurLine () |
int | getTotalLines () |
void | setTitle (const QString &text, int fontSize=12, int color=0, const QString &font="Helvetica [Cronyx]") |
void | setXLabel (const QString &text, int fontSize=10, int color=1, const QString &font="Helvetica [Cronyx]") |
void | setYLabel (const QString &text, int fontSize=10, int color=2, const QString &font="Helvetica [Cronyx]") |
void | setWelcome (const QString &text, int fontSize=14, int color=1, const QString &font="Helvetica [Cronyx]") |
Protected Member Functions | |
void | paintEvent (QPaintEvent *event) |
void | resizeEvent (QResizeEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
void | keyPressEvent (QKeyEvent *event) |
void | wheelEvent (QWheelEvent *event) |
void | focusInEvent (QFocusEvent *event) |
Private Types | |
enum | { Margin } |
Private Member Functions | |
void | updateRubberBandRegion () |
void | refreshPixmap () |
void | drawGrid (QPainter *painter) |
void | drawTicks (QPainter *painter) |
void | drawLabels (QPainter *painter) |
void | drawWelcome (QPainter *painter) |
void | drawCurves (QPainter *painter) |
void | drawRects (QPainter *painter) |
Private Attributes | |
GraphLabel | title |
GraphLabel | xLabel |
GraphLabel | yLabel |
GraphLabel | welcome |
std::map< int, CurveData > | curveMap |
std::map< int, int > | typeMap |
std::map< int, int > | colorMap |
int | curLine |
std::vector< QtDrawSettings > | zoomStack |
int | curZoom |
std::map< int, CurveData > | markerStack |
int | curMarker |
QRect | rubberBandRect |
bool | rubberBandIsShown |
bool | imageMode |
bool | markMode |
QPixmap | pixmap |
QPixmap | backBuffer |
casacore::Matrix < casacore::uInt > * | pMask |
Definition at line 71 of file QtDrawCanvas.qo.h.
anonymous enum |
Enumerator | |
---|---|
LINE | |
POINT | |
FPOINT | |
CIRCLE | |
FCIRCLE | |
RECT | |
FRECT | |
DIM | |
FDIM | |
PLUS | |
FPLUS | |
CROSS | |
FCROSS | |
TRIGU | |
FTRIGU | |
TRIGD | |
FTRIGD | |
TRIGL | |
FTRIGL | |
TRIGR | |
FTRIGR | |
SAND | |
FSAND | |
WING | |
FWING | |
BEAM | |
FBEAM | |
BED | |
FBED | |
HIST | |
FHIST |
Definition at line 74 of file QtDrawCanvas.qo.h.
|
private |
Enumerator | |
---|---|
Margin |
Definition at line 187 of file QtDrawCanvas.qo.h.
casa::QtDrawCanvas::QtDrawCanvas | ( | QWidget * | parent = 0 | ) |
casa::QtDrawCanvas::~QtDrawCanvas | ( | ) |
void casa::QtDrawCanvas::clearCurve | ( | int | id | ) |
void casa::QtDrawCanvas::drawBackBuffer | ( | QPainter * | ) |
|
private |
|
private |
void casa::QtDrawCanvas::drawImage | ( | const casacore::Matrix< casacore::uInt > & | data, |
casacore::Matrix< casacore::uInt > * | mask | ||
) |
template<class T>
void casa::QtDrawCanvas::drawImage | ( | const casacore::Matrix< casacore::uInt > & | data | ) |
|
private |
|
private |
|
private |
|
private |
|
protected |
int casa::QtDrawCanvas::getCurLine | ( | ) |
int casa::QtDrawCanvas::getCurZoom | ( | ) |
QColor casa::QtDrawCanvas::getLinearColor | ( | double | ) |
void setMarkMode(bool);
int casa::QtDrawCanvas::getTotalLines | ( | ) |
int casa::QtDrawCanvas::getZoomStackSize | ( | ) |
|
signal |
QPixmap* casa::QtDrawCanvas::graph | ( | ) |
void casa::QtDrawCanvas::increaseCurZoom | ( | ) |
|
protected |
|
slot |
|
slot |
QSize casa::QtDrawCanvas::minimumSizeHint | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
void casa::QtDrawCanvas::plotPolyLine | ( | const casacore::Vector< int > & | , |
const casacore::Vector< int > & | , | ||
int | ln = 0 , |
||
int | tp = 0 , |
||
int | cl = 0 |
||
) |
ln = 0, new chart ln < 0, remove trace ln > 0, append trace if ln exists, otherwise add trace tp = 0, continous line tp > 0, discrete symbols tp < 0, line and symbols cl, color value range from 0 up
void casa::QtDrawCanvas::plotPolyLine | ( | const casacore::Vector< float > & | x, |
const casacore::Vector< float > & | y, | ||
int | ln = 0 , |
||
int | tp = 0 , |
||
int | cl = 0 |
||
) |
void casa::QtDrawCanvas::plotPolyLine | ( | const casacore::Vector< double > & | , |
const casacore::Vector< double > & | , | ||
int | ln = 0 , |
||
int | tp = 0 , |
||
int | cl = 0 |
||
) |
void casa::QtDrawCanvas::plotPolyLine | ( | const casacore::Matrix< int > & | verts, |
int | ln = 0 , |
||
int | tp = 0 , |
||
int | cl = 0 |
||
) |
Each row is a trace ln = 0, new chart ln < 0, remove traces ln > 0, append traces from (ln)th, add if not exists tp < 0, same shape for all traces tp = 0, continuous lines tp > 0, different discrete shape for each trace cl > 0, different color for each trace cl <= 0, same color for all traces.
void casa::QtDrawCanvas::plotPolyLine | ( | const casacore::Matrix< float > & | verts, |
int | ln = 0 , |
||
int | tp = 0 , |
||
int | cl = 0 |
||
) |
void casa::QtDrawCanvas::plotPolyLine | ( | const casacore::Matrix< double > & | verts, |
int | ln = 0 , |
||
int | tp = 0 , |
||
int | cl = 0 |
||
) |
void casa::QtDrawCanvas::plotPolyLines | ( | QString | ) |
|
private |
|
protected |
void casa::QtDrawCanvas::setCurveData | ( | int | id, |
const CurveData | data, | ||
int | tp = 0 , |
||
int | cl = 0 |
||
) |
void casa::QtDrawCanvas::setDataRange | ( | ) |
void casa::QtDrawCanvas::setImageMode | ( | bool | ) |
void casa::QtDrawCanvas::setPixmap | ( | const QImage & | ) |
void casa::QtDrawCanvas::setPlotSettings | ( | const QtDrawSettings & | settings | ) |
void casa::QtDrawCanvas::setTitle | ( | const QString & | text, |
int | fontSize = 12 , |
||
int | color = 0 , |
||
const QString & | font = "Helvetica [Cronyx]" |
||
) |
void casa::QtDrawCanvas::setWelcome | ( | const QString & | text, |
int | fontSize = 14 , |
||
int | color = 1 , |
||
const QString & | font = "Helvetica [Cronyx]" |
||
) |
void casa::QtDrawCanvas::setXLabel | ( | const QString & | text, |
int | fontSize = 10 , |
||
int | color = 1 , |
||
const QString & | font = "Helvetica [Cronyx]" |
||
) |
void casa::QtDrawCanvas::setYLabel | ( | const QString & | text, |
int | fontSize = 10 , |
||
int | color = 2 , |
||
const QString & | font = "Helvetica [Cronyx]" |
||
) |
QSize casa::QtDrawCanvas::sizeHint | ( | ) | const |
|
private |
|
protected |
|
signal |
|
slot |
|
slot |
|
private |
Definition at line 212 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 196 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 197 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 203 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 194 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 200 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 208 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 202 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 209 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 211 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 213 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 206 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 205 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 189 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 195 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 192 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 190 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 191 of file QtDrawCanvas.qo.h.
|
private |
Definition at line 199 of file QtDrawCanvas.qo.h.