1 Star 0 Fork 0

houmingzhang/CovAnalysisTool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
QDataTrendWidget.h 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
Administrator 提交于 2021-10-05 19:06 +08:00 . 协相关分析工具
#ifndef _MDITEXTEDIT_H_
#define _MDITEXTEDIT_H_
#include "qcustomplot.h"
#include <QMainWindow>
#include <QInputDialog>
#include <QVector>
namespace Ui {
class CustomPlot;
}
class AnalysisTask;
class QDataTrendWidget : public QMainWindow
{
Q_OBJECT
public:
explicit QDataTrendWidget(AnalysisTask* ptask,const QString & TaskName,QString& XAxisName,QString& YAxisName,QWidget *parent = 0);
~QDataTrendWidget();
QString GetTaskName();
/**
* @note úͼڱ,
*/
void InitPlotor(QString& newtitle,QString& xAxisName,QString& yAxisName,int x1,int x2,int y1,int y2);
void InitPlotor(QString& newtitle,QString& xAxisName,QString& yAxisName);
void UpdateXRange(int x1,int x2);
void UpdateYRange(int y1,int y2);
public slots:
void titleDoubleClick(QMouseEvent *event);
void axisLabelDoubleClick(QCPAxis* axis, QCPAxis::SelectablePart part);
void legendDoubleClick(QCPLegend* legend, QCPAbstractLegendItem* item);
void selectionChanged();
void mousePress();
void mouseWheel();
void addCustomGraph(QVector<double>& xvar,QVector<double>& yvar,QString& graphname);
void removeSelectedGraph();
void removeAllGraphs();
void contextMenuRequest(QPoint pos);
void moveLegend();
void graphClicked(QCPAbstractPlottable *plottable, int dataIndex);
void SlotNewChannelDataRecvied();
private:
static double GetFloor(double value,int step);
static double GetCeiling(double value,int step);
private:
QString m_taskname;
QString m_XAxisName;
QString m_YAxisName;
AnalysisTask* m_ptaskOwner;
Ui::CustomPlot *ui;
};
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dtrylzhm/cov-analysis-tool.git
git@gitee.com:dtrylzhm/cov-analysis-tool.git
dtrylzhm
cov-analysis-tool
CovAnalysisTool
master

搜索帮助