37 lines
734 B
C++
37 lines
734 B
C++
#ifndef VPOINTF_H
|
|
#define VPOINTF_H
|
|
|
|
#pragma GCC diagnostic ignored "-Weffc++"
|
|
#include <QPointF>
|
|
#include <QString>
|
|
#pragma GCC diagnostic warning "-Weffc++"
|
|
|
|
class VPointF
|
|
{
|
|
public:
|
|
VPointF();
|
|
VPointF (const VPointF &point );
|
|
VPointF ( qreal x, qreal y, QString name, qreal mx, qreal my );
|
|
~VPointF();
|
|
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);
|
|
|
|
private:
|
|
QString _name;
|
|
qreal _mx;
|
|
qreal _my;
|
|
qreal _x;
|
|
qreal _y;
|
|
};
|
|
|
|
#endif // VPOINTF_H
|