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.
nmWTAI-Platform/Include/nmNum/nmPlot/nmPlotDataAnalyzeController.h

25 lines
848 B
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 "nmDataPlotContextProvider.h"
#include "nmPlot_global.h"
// 绘图层的数据分析上下文控制器
// 负责把数据层的绘图请求转发给nmGuiPlot避免nmData直接依赖nmPlot
class NM_PLOT_EXPORT nmPlotDataAnalyzeController : public nmDataPlotContextProvider {
public:
// 获取全局唯一的绘图上下文控制器实例
static nmPlotDataAnalyzeController* instance();
// 按井数据移除对应井图元
bool removeWellPlotByData(void* pPlot, nmDataWellBase* pWellData);
// 根据数据管理器刷新井图元
bool updateWellPlots(void* pPlot, nmDataAnalyzeManager* pDataManager);
// 将数值坐标转换为绘图坐标
bool getPosForValue(void* pPlot, QVector<QPointF>& vecValues, QVector<QPointF>& vecPos);
private:
nmPlotDataAnalyzeController() {}
};