#include <GUAxes.h>
Public Slots | |
void | testSignalPressOnAxes (QMouseEvent *, QPointF) |
void | testSignalReleaseOnAxes (QMouseEvent *, QPointF) |
void | testSignalMoveOnAxes (QMouseEvent *, QPointF) |
Signals | |
void | pressOnAxes (QMouseEvent *, QPointF) |
void | releaseOnAxes (QMouseEvent *, QPointF) |
void | moveOnAxes (QMouseEvent *, QPointF) |
Public Member Functions | |
GUAxes (QWidget *parent=0, const float &xmin=0, const float &xmax=100, const float &ymin=0, const float &ymax=100, const unsigned &nxdiv1=4, const unsigned &nydiv1=4, const unsigned &nxdiv2=2, const unsigned &nydiv2=2, const unsigned pbits=0) | |
virtual | ~GUAxes () |
void | setLimits (const float &xmin=0, const float &xmax=100, const float &ymin=0, const float &ymax=100, const unsigned &nxdiv1=4, const unsigned &nydiv1=4, const unsigned &nxdiv2=2, const unsigned &nydiv2=2) |
void | updateTransform () |
void | setAxes () |
void | setPen (const QPen &pen) |
void | setFont (const QFont &font) |
void | setColor (const QColor &color) |
void | printMemberData () |
void | printTransform () |
QTransform | transform () |
QGraphicsScene * | pscene () |
QGraphicsView * | pview () |
QGraphicsView & | rview () |
Protected Member Functions | |
void | closeEvent (QCloseEvent *event=0) |
void | resizeEvent (QResizeEvent *event=0) |
void | mousePressEvent (QMouseEvent *event=0) |
void | mouseReleaseEvent (QMouseEvent *event=0) |
void | mouseMoveEvent (QMouseEvent *event=0) |
This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.
Definition at line 41 of file GUAxes.h.
PSQt::GUAxes::GUAxes | ( | QWidget * | parent = 0 , |
|
const float & | xmin = 0 , |
|||
const float & | xmax = 100 , |
|||
const float & | ymin = 0 , |
|||
const float & | ymax = 100 , |
|||
const unsigned & | nxdiv1 = 4 , |
|||
const unsigned & | nydiv1 = 4 , |
|||
const unsigned & | nxdiv2 = 2 , |
|||
const unsigned & | nydiv2 = 2 , |
|||
const unsigned | pbits = 0 | |||
) |
Definition at line 29 of file GUAxes.cpp.
References printMemberData(), printTransform(), pview(), and setLimits().
PSQt::GUAxes::~GUAxes | ( | ) | [virtual] |
Definition at line 109 of file GUAxes.cpp.
void PSQt::GUAxes::closeEvent | ( | QCloseEvent * | event = 0 |
) | [protected] |
Definition at line 192 of file GUAxes.cpp.
void PSQt::GUAxes::mouseMoveEvent | ( | QMouseEvent * | event = 0 |
) | [protected] |
Definition at line 248 of file GUAxes.cpp.
void PSQt::GUAxes::mousePressEvent | ( | QMouseEvent * | event = 0 |
) | [protected] |
void PSQt::GUAxes::mouseReleaseEvent | ( | QMouseEvent * | event = 0 |
) | [protected] |
void PSQt::GUAxes::moveOnAxes | ( | QMouseEvent * | , | |
QPointF | ||||
) | [signal] |
void PSQt::GUAxes::pressOnAxes | ( | QMouseEvent * | , | |
QPointF | ||||
) | [signal] |
Referenced by mousePressEvent().
void PSQt::GUAxes::printMemberData | ( | ) |
void PSQt::GUAxes::printTransform | ( | ) |
QGraphicsScene* PSQt::GUAxes::pscene | ( | ) | [inline] |
Definition at line 78 of file GUAxes.h.
References pview().
Referenced by PSQt::WdgRadHist::onRHistIsFilled(), and PSQt::WdgSpecHist::onSHistIsFilled().
QGraphicsView* PSQt::GUAxes::pview | ( | ) | [inline] |
Definition at line 79 of file GUAxes.h.
Referenced by GUAxes(), printTransform(), pscene(), transform(), and updateTransform().
void PSQt::GUAxes::releaseOnAxes | ( | QMouseEvent * | , | |
QPointF | ||||
) | [signal] |
Referenced by mouseReleaseEvent().
void PSQt::GUAxes::resizeEvent | ( | QResizeEvent * | event = 0 |
) | [protected] |
QGraphicsView& PSQt::GUAxes::rview | ( | ) | [inline] |
void PSQt::GUAxes::setAxes | ( | ) |
Definition at line 138 of file GUAxes.cpp.
References PSQt::GURuler::HD, PSQt::GURuler::HU, rview(), PSQt::GURuler::VL, and PSQt::GURuler::VR.
Referenced by setLimits().
void PSQt::GUAxes::setColor | ( | const QColor & | color | ) | [inline] |
void PSQt::GUAxes::setLimits | ( | const float & | xmin = 0 , |
|
const float & | xmax = 100 , |
|||
const float & | ymin = 0 , |
|||
const float & | ymax = 100 , |
|||
const unsigned & | nxdiv1 = 4 , |
|||
const unsigned & | nydiv1 = 4 , |
|||
const unsigned & | nxdiv2 = 2 , |
|||
const unsigned & | nydiv2 = 2 | |||
) |
Definition at line 86 of file GUAxes.cpp.
References setAxes(), and updateTransform().
Referenced by GUAxes(), PSQt::WdgRadHist::onRHistIsFilled(), PSQt::WdgSpecHist::onSHistIsFilled(), PSQt::WdgRadHist::WdgRadHist(), and PSQt::WdgSpecHist::WdgSpecHist().
void PSQt::GUAxes::testSignalMoveOnAxes | ( | QMouseEvent * | , | |
QPointF | ||||
) | [slot] |
Definition at line 290 of file GUAxes.cpp.
void PSQt::GUAxes::testSignalPressOnAxes | ( | QMouseEvent * | , | |
QPointF | ||||
) | [slot] |
Definition at line 274 of file GUAxes.cpp.
void PSQt::GUAxes::testSignalReleaseOnAxes | ( | QMouseEvent * | , | |
QPointF | ||||
) | [slot] |
Definition at line 282 of file GUAxes.cpp.
QTransform PSQt::GUAxes::transform | ( | ) | [inline] |
void PSQt::GUAxes::updateTransform | ( | ) |
Definition at line 119 of file GUAxes.cpp.
References pview().
Referenced by resizeEvent(), and setLimits().