PSQt::DragCircle Class Reference
[PSQt package]

Derived class from DragBase for draggable circle. More...

#include <DragCircle.h>

Inheritance diagram for PSQt::DragCircle:

PSQt::DragBase List of all members.

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 ()

Detailed Description

Derived class from DragBase for draggable circle.

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

See also:
DragBase, DragStore, WdgImageFigs, WdgImage
Version:
Id
DragCircle.h 9841 2015-03-26 18:35:44Z dubrovin@SLAC.STANFORD.EDU
Author:
Mikhail Dubrovin
Interface Description

Definition at line 51 of file DragCircle.h.


Constructor & Destructor Documentation

PSQt::DragCircle::DragCircle ( WdgImage wimg = 0,
const QPointF *  points = 0 
)

DragCircle class for draggable circle.

Parameters:
[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.


Member Function Documentation

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]

Implements PSQt::DragBase.

Definition at line 58 of file DragCircle.cpp.

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().


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