PSQt::DragBase Class Reference
[PSQt package]

Base class for draggable figures like circle, line, center, etc on the plot. More...

#include <DragBase.h>

Inheritance diagram for PSQt::DragBase:

PSQt::DragCenter PSQt::DragCircle List of all members.

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::WdgImagem_wimg
QPointF * m_points_raw
QPointF * m_points_img
int m_npoints
QPen m_pen_draw
QPen m_pen_move
float m_rpick

Detailed Description

Base class for draggable figures like circle, line, center, etc on the plot.

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

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

Definition at line 67 of file DragBase.h.


Constructor & Destructor Documentation

PSQt::DragBase::DragBase ( WdgImage wimg,
const QPointF *  points,
const int &  npoints = 1 
)

DragBase - base class for draggable figures.

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

Definition at line 36 of file DragBase.cpp.

References m_points_img, and m_points_raw.


Member Function Documentation

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]

Reimplemented in PSQt::DragCenter, and PSQt::DragCircle.

Definition at line 90 of file DragBase.h.

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]

Definition at line 94 of file DragBase.h.

References m_pen_draw.

void PSQt::DragBase::setPenMove ( const QPen &  pen  )  [inline]

Definition at line 93 of file DragBase.h.

References m_pen_move.

void PSQt::DragBase::setPickRadius ( const float &  rpick  )  [inline]

Definition at line 95 of file DragBase.h.

References m_rpick.

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


Member Data Documentation

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


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