📄 gprreadview.h
字号:
// GprReadView.h : interface of the CGprReadView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_GPRREADVIEW_H__825817B5_181E_4CCF_AE93_3ECCA7401778__INCLUDED_)
#define AFX_GPRREADVIEW_H__825817B5_181E_4CCF_AE93_3ECCA7401778__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CGprReadView : public CView
{
protected: // create from serialization only
CGprReadView();
DECLARE_DYNCREATE(CGprReadView)
// Attributes
public:
CGprReadDoc* GetDocument();
CPalette m_Palette; //定义一个系统面板
double ColorRange;
struct SIR_rfdate
{unsigned short sec2 :5; /*second/2 (0-29)*/
unsigned short min :6; /*minute (0-59)*/
unsigned short hour :5; /*hour (0-23)*/
unsigned short day :5; /*day (1-31)*/
unsigned short month :4; /*month (1=Jan,2=Fed,etc*/
unsigned short year :7; /*year-1980(0-127=1980-2107)*/
};
unsigned short rh_tag; /*0x00ff if header,0xfnff for old file*/
unsigned short rh_data; /*offset to data in file*/
unsigned short rh_nsamp; /*sample per scan*/
unsigned short rh_bits; /*bits per data word*/
unsigned short rh_zero; /*binary offset*/
float rh_sps; /*scans per second*/
float rh_spm; /*scans per meter*/
float rh_mpm; /*meters per mark*/
float rh_position; /*position(ns)*/
float rh_range; /*range(ns)*/
unsigned short rh_spp; /*scans per pass for 2-D files*/
struct SIR_rfdate rh_creat; /*data created*/
struct SIR_rfdate rh_modif; /*data modifed (this file)*/
unsigned short rh_rgain; /*offset to range gain function*/
unsigned short rh_nrgain; /*size of range gain function */
unsigned short rh_text; /*offest to text*/
unsigned short rh_ntext; /*size of text*/
unsigned short rh_proc; /*offset to processing history*/
unsigned short rh_nproc; /*size of processing histroy*/
unsigned short rh_nchan; /*number of channel*/
float rh_epsr; /*average dielectric constant*/
float rh_top; /*position in meters*/
float rh_depth; /*range in meters*/
unsigned short rh_npass; /*number of passes*/
char reserved[128-12*sizeof(char)-16*sizeof(short)-8*sizeof(float)-2*sizeof(struct
SIR_rfdate)];
unsigned short rh_chanmask; /*activ channels mask*/
char rh_fname[12]; /*name of file*/
unsigned short rh_chksum; /*check summ*/
char variable[384];
double dataa[4000][2048];
double pr[2048],pi[2048],fr[2048],fi[2048];
double ttt[2048];
double wt[2049]; //用于频谱输出结果
int m1,m2;
int iColorIndex;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGprReadView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
double MinData;
double MaxData;
double GetMaxMindata();
bool DrawDisplay();
virtual ~CGprReadView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CGprReadView)
afx_msg void OnFileOpen();
afx_msg LRESULT OnDoRealize(WPARAM wParam, LPARAM lParam);
afx_msg void OnColorDialog();
afx_msg void OnViewColorbit();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in GprReadView.cpp
inline CGprReadDoc* CGprReadView::GetDocument()
{ return (CGprReadDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GPRREADVIEW_H__825817B5_181E_4CCF_AE93_3ECCA7401778__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -