📄 wgl_32doc.h
字号:
// wgl_32Doc.h : interface of the CWgl_32Doc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_WGL_32DOC_H__7DE01B2D_157D_11D2_82C0_A7114CADFA82__INCLUDED_)
#define AFX_WGL_32DOC_H__7DE01B2D_157D_11D2_82C0_A7114CADFA82__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
class Channel {
public:
Channel() {
ChannelName=_T("");
Phase=_T("");
Monitor=_T("");
Unit=_T("");
a=b=skew=0.0;
min=max=0;
}
public:
WORD ChannelNum;
CString ChannelName;
CString Phase;
CString Monitor;
CString Unit;
char VAD;
double a;
double b;
double skew;
long min;
long max;
};
class SampRates {
public:
SampRates() {
SampRate=0.0;
EndSampNum=0;
}
public:
double SampRate;
unsigned long EndSampNum;
};
struct ShortNode {
char bShow;
unsigned long lend;
};
struct ChannelNumber {
double YFactor;
COLORREF Color;
char bShow;
WORD No;
int nNumb;
WORD *pSub;
};
class CWgl_32Doc : public CDocument
{
protected:
CWgl_32Doc();
DECLARE_DYNCREATE(CWgl_32Doc)
// Attributes
public:
CString m_strRecordPath;
CString m_strRecordID;
CString m_strFaultFile;
double fFaultJL;
BOOL AnaError;
int m_FaultLineNo;
UINT FFTPoints;
CString m_strFaultLineName[8];
CString m_strFaultPhase;
double Value[8][40];
double DblVT,DblAT;
private:
// display init function
BOOL SetInitShowStatus(char *cfgFileName=NULL);
public:
// control display redraw function
void UpdateView(BOOL bTree = FALSE, BOOL bRigh = FALSE);
// calculate the LCURSOR & RCURSOR point value
void GetDisplayValue(WORD wChannel,double& dmin,double& dmax);
// horz diplay function
BOOL RelocalShortNode(CStringArray& List,CString strShow);
BOOL SetNewSegment(int nx1, int nx2);
int GetVScrollPos();
unsigned long GetShowHRange(unsigned long& NumHide);
unsigned int GetHNumIndex(unsigned long nPos);
unsigned long GetHNumIndex(unsigned int xpos);
void GetHNumPosit(int& xpos,unsigned long index);
void GetHNumIndex(int xpos,unsigned long& index);
void AdjustSampIndex(unsigned long& Index,BOOL bIncDec);
void GetNextHPage(unsigned long& Page);
void GetPrevHPage(unsigned long& Page);
void GetNextHLine(unsigned long& Line);
void GetPrevHLine(unsigned long& Line);
// Vert diplay function
void SwapChannelInform(int Num1,int Num2);
BOOL CopyChannelInform(int Num,int NumS);
BOOL DeltChannelInform(int Num,int NumS);
BOOL DeltChannelInform( int Number );
public:
// display control varible
static const WORD ShortWidth;
double DblVVT,DblAAT;
WORD HalfCurveHeigh;
WORD m_NumPerView;
int m_ViewChannel;
int m_ViewChannelMin;
int m_ViewChannelMax;
double m_XSizeFactor;
ChannelNumber *m_pChannelIndex;
unsigned long PageFromSampNum;
unsigned long PageFromSampNumMax;
int pageHWidth;
BOOL bReadError;
BOOL bFirstValue;
BOOL bVirtualValue;
BOOL bShowSubCurve;
BOOL bDelSubCurve;
int nWhichCurve;
int ShortNodeNum;
int mNumViewChannel;
ShortNode *m_pShortNode;
unsigned long LCursor,RCursor;
double LCursorA,RCursorA;
private:
// file control function
BOOL OpenRelateConFig( const char *cfgFileName );
BOOL ReadThisDataFile( CArchive& ar );
BOOL LocateChr( const char *str, char ch, int& find, int* len=NULL, int from=0);
public:
// file control varible
CString m_strReportFile;
CString m_StationName,m_StationNum;
WORD m_ChannelNum,m_AnaNum,m_DigNum;
Channel* m_pChannel;
unsigned long EndSampNum;
float m_FreqPhase;
WORD m_NumRates;
double maxV,maxA,minV,minA;
WORD nWhichA,nWhichV;
SampRates* m_pSampRates;
CString DateTime1,DateTime2;
char FileType[10];
double *SampleIndex;
double *RelateTime;
long** PSamplData;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWgl_32Doc)
public:
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CWgl_32Doc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CWgl_32Doc)
afx_msg void OnEditSegment();
afx_msg void OnChangeCurveColor();
afx_msg void OnViewGroupShow();
afx_msg void OnViewWhichValue();
afx_msg void OnUpdateViewWhichValue(CCmdUI* pCmdUI);
afx_msg void OnVirtueValue();
afx_msg void OnUpdateVirtueValue(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WGL_32DOC_H__7DE01B2D_157D_11D2_82C0_A7114CADFA82__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -