valentina/container/vpointf.h

40 lines
844 B
C
Raw Normal View History

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
#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
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 );
~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;
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;
qreal _x;
qreal _y;
2013-07-13 12:51:31 +02:00
};
#endif // VPOINTF_H