94 lines
2.3 KiB
C++
94 lines
2.3 KiB
C++
|
|
#pragma warning(push,0)
|
|
#include <cassert>
|
|
#include <QDialog>
|
|
#include "ConsoleOutputWidget.h"
|
|
#include "ui_Statistics2.h"
|
|
#include "LogIO.h"
|
|
#include "view.h"//ll
|
|
#include "OSGFramework.h"
|
|
#pragma warning(pop)
|
|
|
|
#pragma execution_character_set("utf-8")
|
|
BEGIN_OSGGRAPHICS_NAMESPACE
|
|
/**
|
|
* @brief 表格选择列自定义委托
|
|
*/
|
|
class CStatistics2Dlg : public QWidget//public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
CStatistics2Dlg(QWidget * parent=0, Qt::WindowFlags flags=0);
|
|
~CStatistics2Dlg();
|
|
Ui_Statistics2 *m_pUI;
|
|
MyView m_view;//ll
|
|
private slots:
|
|
/**
|
|
*@brief 保存槽函数
|
|
*/
|
|
void slotSave();
|
|
|
|
/**
|
|
*@brief 取消槽函数
|
|
*/
|
|
void slotCancel();
|
|
void slotRefurbish();
|
|
//改变曲线名称
|
|
void slotChangeName(const QString &text);
|
|
//改变曲线单位
|
|
void slotChangeUnit(const QString &text);
|
|
//void slotRefurbish(const QString &text);
|
|
void slotChangeXmin(const QString &text);
|
|
void slotChangeXmax(const QString &text);
|
|
void slotChangeXmin2(const QString &text);
|
|
void slotChangeXmax2(const QString &text);
|
|
void slotChangeYmin(const QString &text);
|
|
void slotChangeYmax(const QString &text);
|
|
void slotChangeSdep(const QString &text);
|
|
void slotChangeEdep(const QString &text);
|
|
void slotChangeStime(const QString &text);
|
|
void slotChangeEtime(const QString &text);
|
|
void slotChangeSmallGrid(const QString &text);
|
|
void slotSetSdep(const int &dep);
|
|
void slotSetEdep(const int &dep);
|
|
void slotSetStime(const int &dep);
|
|
void slotSetEtime(const int &dep);
|
|
void slotCheckLjpl();
|
|
public:
|
|
QString FileName;//slf文件名
|
|
QString CurveName;//曲线名
|
|
void init();
|
|
void Refurbish();
|
|
void Statistics2();
|
|
Slf_WAVE info;
|
|
DWORD num;
|
|
float *val;
|
|
float d_min,d_max;
|
|
float m_flEnDepth;
|
|
float m_flStDepth;
|
|
float m_flEndTime;
|
|
float m_flStTime;
|
|
float stime;
|
|
float etime;
|
|
float sdep,edep,rlev,min,max;
|
|
float fmin,fmax;
|
|
float depmin,depmax,timemin,timemax;//最小、最大值所在的深度、时间
|
|
double average;
|
|
double Variance;//方差
|
|
DWORD point[100],tpoint,ShowPoint;
|
|
int m_SmallGrid;
|
|
float m_Xmin;
|
|
float m_Xmax;
|
|
float m_Ymin;
|
|
float m_Ymax;
|
|
float m_PVmax,m_PVmin;//最大频率的数值范围
|
|
float m_Xmin2;
|
|
float m_Xmax2;
|
|
int ibegin,iend;
|
|
bool m_DrawLjpl;
|
|
QString m_CurveName,m_CurveUnit;//显示的曲线名称和单位
|
|
};
|
|
|
|
END_OSGGRAPHICS_NAMESPACE;
|