#include <DragBase.h>
Inheritance diagram for PSQt::DragBase:
Public Member Functions | |
DragBase (WdgImage *wimg, const QPointF *points, const int &npoints=1) | |
DragBase - base class for draggable figures. | |
virtual | ~DragBase () |
virtual void | draw (const DRAGMODE &mode=DRAW)=0 |
virtual bool | contains (const QPointF &p)=0 |
virtual void | move (const QPointF &p)=0 |
virtual void | moveIsCompleted (const QPointF &p)=0 |
virtual void | create ()=0 |
virtual const QPointF & | getCenter () |
virtual void | print () |
void | setPenMove (const QPen &pen) |
void | setPenDraw (const QPen &pen) |
void | setPickRadius (const float &rpick) |
Protected Member Functions | |
void | setImagePointsFromRaw () |
void | setRawPointsFromImage () |
Protected Attributes | |
PSQt::WdgImage * | m_wimg |
QPointF * | m_points_raw |
QPointF * | m_points_img |
int | m_npoints |
QPen | m_pen_draw |
QPen | m_pen_move |
float | m_rpick |
This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.
#include "PSQt/DragBase.h"
Definition at line 67 of file DragBase.h.
PSQt::DragBase::DragBase | ( | WdgImage * | wimg, | |
const QPointF * | points, | |||
const int & | npoints = 1 | |||
) |
DragBase - base class for draggable figures.
[in] | wimg | - pointer to WdgImage |
[in] | points | - array of points which defines initial figure parameters |
[in] | npoints | - number of points in the array |
Definition at line 18 of file DragBase.cpp.
References m_npoints, m_points_img, m_points_raw, and setImagePointsFromRaw().
PSQt::DragBase::~DragBase | ( | ) | [virtual] |
virtual bool PSQt::DragBase::contains | ( | const QPointF & | p | ) | [pure virtual] |
Implemented in PSQt::DragCenter, and PSQt::DragCircle.
virtual void PSQt::DragBase::create | ( | ) | [pure virtual] |
Implemented in PSQt::DragCenter, and PSQt::DragCircle.
virtual void PSQt::DragBase::draw | ( | const DRAGMODE & | mode = DRAW |
) | [pure virtual] |
Implemented in PSQt::DragCenter, and PSQt::DragCircle.
virtual const QPointF& PSQt::DragBase::getCenter | ( | ) | [inline, virtual] |
virtual void PSQt::DragBase::move | ( | const QPointF & | p | ) | [pure virtual] |
Implemented in PSQt::DragCenter, and PSQt::DragCircle.
virtual void PSQt::DragBase::moveIsCompleted | ( | const QPointF & | p | ) | [pure virtual] |
Implemented in PSQt::DragCenter, and PSQt::DragCircle.
void PSQt::DragBase::print | ( | ) | [virtual] |
Reimplemented in PSQt::DragCenter, and PSQt::DragCircle.
Definition at line 69 of file DragBase.cpp.
References m_npoints, m_points_raw, and PSQt::strTimeStamp().
void PSQt::DragBase::setImagePointsFromRaw | ( | ) | [protected] |
Definition at line 53 of file DragBase.cpp.
References m_npoints, m_points_img, m_points_raw, m_wimg, and PSQt::WdgImage::pointInImage().
Referenced by DragBase(), PSQt::DragCircle::draw(), PSQt::DragCenter::draw(), and PSQt::DragCenter::moveToRaw().
void PSQt::DragBase::setPenDraw | ( | const QPen & | pen | ) | [inline] |
void PSQt::DragBase::setPenMove | ( | const QPen & | pen | ) | [inline] |
void PSQt::DragBase::setPickRadius | ( | const float & | rpick | ) | [inline] |
void PSQt::DragBase::setRawPointsFromImage | ( | ) | [protected] |
Definition at line 61 of file DragBase.cpp.
References m_npoints, m_points_img, m_points_raw, m_wimg, and PSQt::WdgImage::pointInRaw().
Referenced by PSQt::DragCenter::move().
int PSQt::DragBase::m_npoints [protected] |
Definition at line 105 of file DragBase.h.
Referenced by DragBase(), print(), setImagePointsFromRaw(), and setRawPointsFromImage().
QPen PSQt::DragBase::m_pen_draw [protected] |
Definition at line 106 of file DragBase.h.
Referenced by PSQt::DragCircle::draw(), PSQt::DragCenter::draw(), and setPenDraw().
QPen PSQt::DragBase::m_pen_move [protected] |
Definition at line 107 of file DragBase.h.
Referenced by PSQt::DragCircle::draw(), PSQt::DragCenter::draw(), and setPenMove().
QPointF* PSQt::DragBase::m_points_img [protected] |
Definition at line 104 of file DragBase.h.
Referenced by PSQt::DragCenter::contains(), DragBase(), PSQt::DragCircle::draw(), PSQt::DragCenter::draw(), PSQt::DragCenter::move(), setImagePointsFromRaw(), setRawPointsFromImage(), and ~DragBase().
QPointF* PSQt::DragBase::m_points_raw [protected] |
Definition at line 103 of file DragBase.h.
Referenced by PSQt::DragCircle::contains(), DragBase(), PSQt::DragCircle::draw(), PSQt::DragCenter::forceToEmitSignal(), PSQt::DragCenter::getCenter(), PSQt::DragCircle::move(), PSQt::DragCenter::move(), PSQt::DragCenter::moveIsCompleted(), PSQt::DragCenter::moveToRaw(), print(), setImagePointsFromRaw(), setRawPointsFromImage(), and ~DragBase().
float PSQt::DragBase::m_rpick [protected] |
Definition at line 108 of file DragBase.h.
Referenced by PSQt::DragCircle::contains(), PSQt::DragCenter::contains(), and setPickRadius().
PSQt::WdgImage* PSQt::DragBase::m_wimg [protected] |
Definition at line 102 of file DragBase.h.
Referenced by PSQt::DragCircle::contains(), PSQt::DragCircle::draw(), PSQt::DragCenter::draw(), PSQt::DragCircle::getCenter(), PSQt::DragCircle::move(), setImagePointsFromRaw(), and setRawPointsFromImage().