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/nmPlot/nmObjPolygonOutline.h

76 lines
2.1 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.

#pragma once
#include "nmObjPolygon.h"
#include "nmDefines.h"
#include "nmPlot_global.h"
// 数值试井绘图对象(多边形)
class NM_PLOT_EXPORT nmObjPolygonOutline : public nmObjPolygon
{
Q_OBJECT
ZX_DECLARE_DYNAMIC
public:
nmObjPolygonOutline();
nmObjPolygonOutline(const QString& sName, \
ZxSubAxisX* pAxisX, \
ZxSubAxisY* pAxisY);
~nmObjPolygonOutline();
// 设置初始参数
virtual void init(const QString& sName, \
ZxSubAxisX* pAxisX, \
ZxSubAxisY* pAxisY);
// 设置Tools
virtual void initTools();
protected:
// 设置图元对象的属性标志
// virtual void initFlags();
public:
// 击中
virtual bool hitTest(const QPointF& pt);
// 具体击中实现的函数,单纯击中,不做选项的改变
// nOption用int是因为Rect类的击中选项不一致
// nOption为负值表示未击中此时返回false
virtual bool _runHitTest(const QPointF& pt, \
int& nOption, int& nSubIndex);
// 击中后ButtonUp后的处理
// pt1:鼠标Down点pt2鼠标Up点
virtual bool runMove(const QPointF& pt1, const QPointF& pt2);
public:
// 属性填充内容
virtual void fillPtyPano(IxPtyPano* sheet);
// 成果序列化
virtual void onSerialize(ZxSerializer* ser);
virtual void onDeserialize(ZxSerializer* ser);
// 模版处理(从道理上讲,模版处理与成果序列化机制完全一致)
// 但此处放开是为了调用方更灵活的控制
virtual void onLoadTempl(ZxSerializer* ser);
virtual void onSaveTempl(ZxSerializer* ser);
// 设置所有的Pos外界调用
virtual void setAllPos(QVector<QPointF> vecPoss, QVector<int>* pVecIndexes = NULL);
virtual void paintBack(QPainter* painter, \
const ZxPaintParam& param);
// 当前选中边界的类型
void setCurOutlineFlowType(int);
int getCurOutlineFlowType();
public:
// 边界的压力类型
QVector<int> m_vFlowTypeList;
};