valentina_old/container/vpointf.h

27 lines
510 B
C
Raw Normal View History

2013-07-13 12:51:31 +02:00
#ifndef VPOINTF_H
#define VPOINTF_H
#include <QPointF>
#include <QString>
class VPointF : public QPointF
{
public:
VPointF();
VPointF (const VPointF &point );
VPointF ( qreal x, qreal y, QString name, qreal mx, qreal my );
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;
private:
QString _name;
qreal _mx;
qreal _my;
};
#endif // VPOINTF_H