27 #ifndef TQDRAWCANVAS_H
28 #define TQDRAWCANVAS_H
47 #include <QMouseEvent>
48 #include <QToolButton>
51 #include <QVBoxLayout>
87 int tp = 0,
int cl = 0);
105 int ln = 0,
int tp = 0,
int cl = 0);
108 int ln = 0,
int tp = 0,
int cl = 0);
111 int ln = 0,
int tp = 0,
int cl = 0);
123 int ln = 0,
int tp = 0,
int cl = 0);
125 int ln = 0,
int tp = 0,
int cl = 0);
127 int ln = 0,
int tp = 0,
int cl = 0);
145 int fontSize = 12,
int color = 0,
146 const QString &font =
"Helvetica [Cronyx]");
148 int fontSize = 10,
int color = 1,
149 const QString &font =
"Helvetica [Cronyx]");
151 int fontSize = 10,
int color = 2,
152 const QString &font =
"Helvetica [Cronyx]");
153 void setWelcome(
const QString &text,
int fontSize = 14,
155 const QString &font =
"Helvetica [Cronyx]");
void drawImage(const casacore::Matrix< casacore::uInt > &data, casacore::Matrix< casacore::uInt > *mask)
template<class T>
void setCurveData(int id, const CurveData data, int tp=0, int cl=0)
void drawWelcome(QPainter *painter)
casacore::Matrix< casacore::uInt > * pMask
void setYLabel(const QString &text, int fontSize=10, int color=2, const QString &font="Helvetica [Cronyx]")
void updateRubberBandRegion()
void wheelEvent(QWheelEvent *event)
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
std::map< int, CurveData > markerStack
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...
void plotPolyLines(QString)
void resizeEvent(QResizeEvent *event)
void mouseMoveEvent(QMouseEvent *event)
void focusInEvent(QFocusEvent *event)
std::map< int, CurveData > curveMap
QtDrawCanvas(QWidget *parent=0)
void setWelcome(const QString &text, int fontSize=14, int color=1, const QString &font="Helvetica [Cronyx]")
A 2-D Specialization of the Array class.
void drawGrid(QPainter *painter)
void keyPressEvent(QKeyEvent *event)
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of data
QColor getLinearColor(double)
void setMarkMode(bool);
void drawLabels(QPainter *painter)
void mouseReleaseEvent(QMouseEvent *event)
void paintEvent(QPaintEvent *event)
void setPixmap(const QImage &)
void drawTicks(QPainter *painter)
void setPlotSettings(const QtDrawSettings &settings)
void drawBackBuffer(QPainter *)
void setTitle(const QString &text, int fontSize=12, int color=0, const QString &font="Helvetica [Cronyx]")
std::vector< QtDrawSettings > zoomStack
void drawRects(QPainter *painter)
void setXLabel(const QString &text, int fontSize=10, int color=1, const QString &font="Helvetica [Cronyx]")
std::map< int, int > colorMap
std::map< int, int > typeMap
void mousePressEvent(QMouseEvent *event)
QSize minimumSizeHint() const
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the color(i.e.,"000000"for black) and
std::vector< double > CurveData
void drawCurves(QPainter *painter)