valentina/container/vpointf.h

48 lines
1.0 KiB
C
Raw Normal View History

2013-07-13 12:51:31 +02:00
#ifndef VPOINTF_H
#define VPOINTF_H
#include <QPointF>
#include <QString>
2013-08-28 10:55:11 +02:00
#include "options.h"
2013-07-13 12:51:31 +02:00
class VPointF
2013-07-13 12:51:31 +02:00
{
public:
VPointF();
VPointF (const VPointF &point );
2013-08-28 10:55:11 +02:00
VPointF ( qreal x, qreal y, QString name, qreal mx, qreal my, Draw::Mode mode = Draw::Calculation,
qint64 idObject = 0);
~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-08-28 10:55:11 +02:00
qint32 referens() const;
void incrementReferens();
void decrementReferens();
Draw::Mode getMode() const;
void setMode(const Draw::Mode &value);
qint64 getIdObject() const;
void setIdObject(const qint64 &value);
2013-07-13 12:51:31 +02:00
private:
QString _name;
qreal _mx;
qreal _my;
qreal _x;
qreal _y;
2013-08-28 10:55:11 +02:00
qint32 _referens;
Draw::Mode mode;
qint64 idObject;
2013-07-13 12:51:31 +02:00
};
#endif // VPOINTF_H