#include <DragCircle.h>
Inheritance diagram for PSQt::DragCircle:
Public Member Functions | |
DragCircle (WdgImage *wimg=0, const QPointF *points=0) | |
DragCircle class for draggable circle. | |
virtual | ~DragCircle () |
virtual void | draw (const DRAGMODE &mode=DRAW) |
virtual bool | contains (const QPointF &p) |
virtual void | move (const QPointF &p) |
virtual void | moveIsCompleted (const QPointF &p) |
virtual void | create () |
virtual const QPointF & | getCenter () |
virtual void | print () |
This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.
#include "PSQt/DragCircle.h"
Definition at line 51 of file DragCircle.h.
PSQt::DragCircle::DragCircle | ( | WdgImage * | wimg = 0 , |
|
const QPointF * | points = 0 | |||
) |
DragCircle class for draggable circle.
[in] | wimg | - pointer to WdgImage |
[in] | points | - array of points which defines initial figure parameters |
Definition at line 17 of file DragCircle.cpp.
virtual PSQt::DragCircle::~DragCircle | ( | ) | [inline, virtual] |
Definition at line 62 of file DragCircle.h.
bool PSQt::DragCircle::contains | ( | const QPointF & | p | ) | [virtual] |
Implements PSQt::DragBase.
Definition at line 65 of file DragCircle.cpp.
References PSQt::DragBase::m_points_raw, PSQt::DragBase::m_rpick, PSQt::DragBase::m_wimg, and PSQt::WdgImage::pointInRaw().
void PSQt::DragCircle::create | ( | ) | [virtual] |
void PSQt::DragCircle::draw | ( | const DRAGMODE & | mode = DRAW |
) | [virtual] |
Implements PSQt::DragBase.
Definition at line 34 of file DragCircle.cpp.
References getCenter(), PSQt::WdgImage::getPainter(), PSQt::DragBase::m_pen_draw, PSQt::DragBase::m_pen_move, PSQt::DragBase::m_points_img, PSQt::DragBase::m_points_raw, PSQt::DragBase::m_wimg, PSQt::MOVE, and PSQt::DragBase::setImagePointsFromRaw().
const QPointF & PSQt::DragCircle::getCenter | ( | ) | [virtual] |
Reimplemented from PSQt::DragBase.
Definition at line 27 of file DragCircle.cpp.
References PSQt::DragBase::m_wimg.
Referenced by draw().
void PSQt::DragCircle::move | ( | const QPointF & | p | ) | [virtual] |
Implements PSQt::DragBase.
Definition at line 79 of file DragCircle.cpp.
References PSQt::DragBase::m_points_raw, PSQt::DragBase::m_wimg, and PSQt::WdgImage::pointInRaw().
Referenced by moveIsCompleted().
void PSQt::DragCircle::moveIsCompleted | ( | const QPointF & | p | ) | [virtual] |
Implements PSQt::DragBase.
Definition at line 89 of file DragCircle.cpp.
References PSQt::INFO, move(), and MsgInLog.
void PSQt::DragCircle::print | ( | ) | [virtual] |
Reimplemented from PSQt::DragBase.
Definition at line 99 of file DragCircle.cpp.
References PSQt::strTimeStamp().