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.
nmWATI/Include/nmNum/nmData/nmDataOilReservoirOutlineLi...

51 lines
1.6 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#ifndef NMDATAOILRESERVOIROUTLINELINESEGMENT_H
#define NMDATAOILRESERVOIROUTLINELINESEGMENT_H
#include "nmData_global.h"
// 以Dbl为结尾的类字符串扩展字段是Float
// 以Str为结尾的类字符串扩展字段是Nvarchar
#include "ZxDataObjectDbl.h"
#include "nmDefines.h"
class NM_DATA_EXPORT nmDataOilReservoirOutlineLineSegment : public ZxDataObjectDbl
{
ZX_DECLARE_DYNAMIC
public:
nmDataOilReservoirOutlineLineSegment();
nmDataOilReservoirOutlineLineSegment(const nmDataOilReservoirOutlineLineSegment &other);
virtual ~nmDataOilReservoirOutlineLineSegment();
nmDataOilReservoirOutlineLineSegment &operator = (const nmDataOilReservoirOutlineLineSegment &other);
public:
// 接口
virtual ZxDataObject* clone();
virtual QString type() const;
// 表名
virtual QString getTableName();
// 加载保存(数据库部分)
virtual bool _parseData(VecVariant vec, int& n);
virtual bool _sumUpData(VecVariant& vec);
// 序列化(统一序列化为大字段时的处理)
virtual void onSerialize(ZxSerializer* ser);
virtual void onDeserialize(ZxSerializer* ser);
// Icon
virtual QIcon getIcon(bool expanded) const;
void setFlowType(NM_OIL_RESERVOIR_OUTLINE_TYPE newFlowType);
NM_OIL_RESERVOIR_OUTLINE_TYPE flowType() const;
// 设置起点和终点
void setPoints(QPointF startPoint, QPointF endPoint);
private:
// 起点
QPointF m_startPoint;
// 终点
QPointF m_endPoint;
// 边界端的类型:定压 | 封闭
NM_OIL_RESERVOIR_OUTLINE_TYPE m_flowType;
};
#endif // NMDATAOILRESERVOIROUTLINELINESEGMENT_H