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/nmData/nmDataPlotContextProvider.h

26 lines
773 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 "nmData_global.h"
#include <QPointF>
#include <QVector>
class nmDataAnalyzeManager;
class nmDataWellBase;
// 数据层访问绘图上下文的抽象接口
// nmData只依赖这个接口不直接包含nmPlot中的具体绘图类
class NM_DATA_EXPORT nmDataPlotContextProvider {
public:
virtual ~nmDataPlotContextProvider() {}
// 按井数据移除对应井图元
virtual bool removeWellPlotByData(void* pPlot, nmDataWellBase* pWellData) = 0;
// 根据数据管理器刷新井图元
virtual bool updateWellPlots(void* pPlot, nmDataAnalyzeManager* pDataManager) = 0;
// 将数值坐标转换为绘图坐标
virtual bool getPosForValue(void* pPlot, QVector<QPointF>& vecValues, QVector<QPointF>& vecPos) = 0;
};