PSQt::GUAxes Class Reference
[PSQt package]

Inherits from QGraphicsView and displays window with axes. More...

#include <GUAxes.h>

List of all members.

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)


Detailed Description

Inherits from QGraphicsView and displays window with axes.

This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.

See also:
GURuler, WdgRadHist, WdgSpecHist
Version:
Id
GUAxes.h 9841 2015-03-26 18:35:44Z dubrovin@SLAC.STANFORD.EDU
Author:
Mikhail Dubrovin

Definition at line 41 of file GUAxes.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Definition at line 230 of file GUAxes.cpp.

References pressOnAxes().

void PSQt::GUAxes::mouseReleaseEvent ( QMouseEvent *  event = 0  )  [protected]

Definition at line 239 of file GUAxes.cpp.

References releaseOnAxes().

void PSQt::GUAxes::moveOnAxes ( QMouseEvent *  ,
QPointF   
) [signal]

void PSQt::GUAxes::pressOnAxes ( QMouseEvent *  ,
QPointF   
) [signal]

Referenced by mousePressEvent().

void PSQt::GUAxes::printMemberData (  ) 

Definition at line 161 of file GUAxes.cpp.

Referenced by GUAxes().

void PSQt::GUAxes::printTransform (  ) 

Definition at line 178 of file GUAxes.cpp.

References pview().

Referenced by GUAxes().

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]

Definition at line 201 of file GUAxes.cpp.

References updateTransform().

QGraphicsView& PSQt::GUAxes::rview (  )  [inline]

Definition at line 80 of file GUAxes.h.

Referenced by setAxes().

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]

Definition at line 73 of file GUAxes.h.

void PSQt::GUAxes::setFont ( const QFont &  font  )  [inline]

Definition at line 72 of file GUAxes.h.

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::setPen ( const QPen &  pen  )  [inline]

Definition at line 71 of file GUAxes.h.

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]

Definition at line 77 of file GUAxes.h.

References pview().

void PSQt::GUAxes::updateTransform (  ) 

Definition at line 119 of file GUAxes.cpp.

References pview().

Referenced by resizeEvent(), and setLimits().


The documentation for this class was generated from the following files:
Generated on 19 Dec 2016 for PSANAmodules by  doxygen 1.4.7