logplus/logPlus/PickFrac.h

77 lines
1.6 KiB
C++

#ifndef DrawFrac_H
#define DrawFrac_H
#include <QObject>
#include "qmycustomplot.h"
//裂缝
//const int iFracType=15;
typedef struct tagPOINTF
{
float x;
float y;
} POINTF;
typedef struct
{
int iCode; //代码
QString csName;// 名称
int iType; //形状代码(1:正弦曲线 2:连线 3:封闭区域)
QColor crColor; //颜色(红 绿 蓝)
int nLineWidth;//线宽度
int bDraw; // 是否显示
}FRAC_DEF_Crack;
typedef struct
{
float DEP;
float AorX; //XRMI_DYN_DipHeight
float XETAorH;//XRMI_DYN_Azimuth
float W;
float DIPorS;//XRMI_DYN_Dip_APP
float DIR;//XRMI_DYN_Azimuth
float TDIP; //真倾角 Dip_TRU
float TDIR; //真倾向 Azimuth
float ID;//裂缝代码,type
float NUM;
//float X[16],Y[16];//X0,Y0,X1,Y1,X2,Y2,X3,Y3,X4,Y4,X5,Y5,X6,Y6,X7,Y7,X8,Y8,X9,Y9;
POINTF point[16];
}FRAC_TABLE_Crack;
typedef struct
{
float DEP;
float AorX;
float XETAorH;
float W;
float DIPorS;
float DIR;
float ID;//裂缝代码
}FRAC_TABLE_OLD_Crack;
class CPickFrac:public QObject
{
Q_OBJECT
public:
CPickFrac(QMyCustomPlot *widget, QString strSlfName, QString csCurve, int iMyWidth);
virtual ~CPickFrac(void);
public:
QString m_Name;
QString m_strDevi, m_strHazi;
QList <FRAC_DEF_Crack> m_FracDef;
bool m_bTypeDraw[iFracType];
QMyCustomPlot *m_myCustomPlot;
int m_iMyWidth=0;
public:
void ReadFracDef();
void ReadData(QString strSlfName, QString csCurve);
void drawOne(FRAC_TABLE_Crack frac, QString cs, int iType, int nLineWidth, QColor crColor);
public slots:
};
#endif