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.

46 lines
983 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.

//////////////////////////////////////////////////////////////////////////////
//文件: DFDraw补充绘图元素接口类
//主要功能:
//
//程序编写: 2005-12-07
//
//
/////////////////////////////////////////////////////////////////////////////
#pragma once
class AFX_EXT_CLASS CDepthToTime
{
public:
CDepthToTime(void);
virtual ~CDepthToTime(void);
class CTraceHV
{
public:
CTraceHV();
~CTraceHV();
int Create(int num);
BOOL SetValue(int nIndex, double sh,double sv);
double Value(double &sh); //返回时间和速度
double *h;
double *v;
int num;
};
void Clear(void);
int Create(int numx, int numy); //numx为总道数,numy为采样点个数
double ValueTime(double &x, double &y); //输入的x为CDP号y为深度值返回时y为时间返回速度值
int SetValue(int i, int j, double h, double v);
CTraceHV* m_pValue;
double* x;
int num;
void SetCDP(double* px);
int SetValue(double x0, int j, double h, double v);
int m_nCurIndex;
int SetValue(int j, double h, double v);
};