You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.2 KiB
C++
57 lines
1.2 KiB
C++
#ifndef NMDATAMEASURE_H
|
|
#define NMDATAMEASURE_H
|
|
|
|
#include "nmData_global.h"
|
|
#include "ZxDataObjectDbl.h"
|
|
#include "nmDefines.h"
|
|
#include "nmDataAttribute.h"
|
|
|
|
class NM_DATA_EXPORT nmDataMeasure : public ZxDataObjectDbl
|
|
{
|
|
ZX_DECLARE_DYNAMIC
|
|
Q_OBJECT
|
|
|
|
public:
|
|
nmDataMeasure();
|
|
nmDataMeasure(const nmDataMeasure& other); // 拷贝构造函数
|
|
nmDataMeasure& operator=(const nmDataMeasure& other); // 赋值运算符
|
|
~nmDataMeasure();
|
|
|
|
signals:
|
|
void sigMeasureDataChanged();
|
|
|
|
public:
|
|
//nmDataAttribute& getStartPoint();
|
|
//void setStartPoint(const nmDataAttribute &startPoint);
|
|
|
|
//nmDataAttribute& getEndPoint();
|
|
//void setEndPoint(const nmDataAttribute &endPoint);
|
|
|
|
nmDataAttribute& getLength();
|
|
void setLength(const nmDataAttribute &length);
|
|
|
|
QPointF getStartPoint() const;
|
|
void setStartPoint(const QPointF &startPoint);
|
|
|
|
QPointF getEndPoint() const;
|
|
void setEndPoint(const QPointF &endPoint);
|
|
|
|
QPointF getCurrentPoint() const;
|
|
void setCurrentPoint(const QPointF ¤tPoint);
|
|
|
|
private:
|
|
// 起始点
|
|
//nmDataAttribute m_startPoint;
|
|
// 终点
|
|
//nmDataAttribute m_endPoint;
|
|
// 长度
|
|
nmDataAttribute m_length;
|
|
|
|
QPointF m_startPoint;
|
|
QPointF m_endPoint;
|
|
QPointF m_currentPoint;
|
|
|
|
};
|
|
|
|
#endif // NMDATAMEASURE_H
|