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.
38 lines
987 B
C++
38 lines
987 B
C++
#ifndef nmDataMeasuringScale_H
|
|
#define nmDataMeasuringScale_H
|
|
|
|
#include "nmData_global.h"
|
|
#include "ZxDataObjectDbl.h"
|
|
#include "nmDefines.h"
|
|
#include "nmDataAttribute.h"
|
|
|
|
class NM_DATA_EXPORT nmDataMeasuringScale : public ZxDataObjectDbl
|
|
{
|
|
ZX_DECLARE_DYNAMIC
|
|
Q_OBJECT
|
|
public:
|
|
nmDataMeasuringScale();
|
|
nmDataMeasuringScale(const nmDataMeasuringScale& other); // 拷贝构造函数
|
|
nmDataMeasuringScale& operator=(const nmDataMeasuringScale& other); // 赋值运算符
|
|
~nmDataMeasuringScale();
|
|
|
|
public:
|
|
nmDataAttribute& getStartPoint();
|
|
void setStartPoint(const nmDataAttribute &startPoint);
|
|
|
|
nmDataAttribute& getEndPoint();
|
|
void setEndPoint(const nmDataAttribute &endPoint);
|
|
|
|
nmDataAttribute& getLength();
|
|
void setLength(const nmDataAttribute &length);
|
|
|
|
private:
|
|
// 起始点
|
|
nmDataAttribute m_startPoint;
|
|
// 终点
|
|
nmDataAttribute m_endPoint;
|
|
// 长度
|
|
nmDataAttribute m_length;
|
|
};
|
|
#endif // nmDataMeasuringScale_H
|