2013-07-13 12:51:31 +02:00
|
|
|
#ifndef VPOINTF_H
|
|
|
|
#define VPOINTF_H
|
|
|
|
|
2013-08-15 22:39:00 +02:00
|
|
|
#pragma GCC diagnostic push
|
2013-08-13 18:48:36 +02:00
|
|
|
#pragma GCC diagnostic ignored "-Weffc++"
|
2013-08-15 22:39:00 +02:00
|
|
|
#pragma GCC diagnostic ignored "-Wconversion"
|
|
|
|
#pragma GCC diagnostic ignored "-Wsign-conversion"
|
2013-07-13 12:51:31 +02:00
|
|
|
#include <QPointF>
|
|
|
|
#include <QString>
|
2013-08-15 22:39:00 +02:00
|
|
|
#pragma GCC diagnostic pop
|
2013-07-13 12:51:31 +02:00
|
|
|
|
2013-08-13 18:48:36 +02:00
|
|
|
class VPointF
|
2013-07-13 12:51:31 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
VPointF();
|
|
|
|
VPointF (const VPointF &point );
|
|
|
|
VPointF ( qreal x, qreal y, QString name, qreal mx, qreal my );
|
2013-08-13 18:48:36 +02:00
|
|
|
~VPointF();
|
2013-07-13 12:51:31 +02:00
|
|
|
QString name() const;
|
|
|
|
qreal mx() const;
|
|
|
|
qreal my() const;
|
|
|
|
void setName(const QString &name);
|
|
|
|
void setMx(qreal mx);
|
|
|
|
void setMy(qreal my);
|
|
|
|
QPointF toQPointF()const;
|
2013-08-13 18:48:36 +02:00
|
|
|
qreal x() const;
|
|
|
|
void setX(const qreal &value);
|
|
|
|
qreal y() const;
|
|
|
|
void setY(const qreal &value);
|
|
|
|
|
2013-07-13 12:51:31 +02:00
|
|
|
private:
|
|
|
|
QString _name;
|
|
|
|
qreal _mx;
|
|
|
|
qreal _my;
|
2013-08-13 18:48:36 +02:00
|
|
|
qreal _x;
|
|
|
|
qreal _y;
|
2013-07-13 12:51:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // VPOINTF_H
|