www.pudn.com > roadextr.rar > roadextrView.h
// roadextrView.h : interface of the CRoadextrView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_ROADEXTRVIEW_H__1A4F0822_4419_4C8C_8A38_8072C1CE5060__INCLUDED_)
#define AFX_ROADEXTRVIEW_H__1A4F0822_4419_4C8C_8A38_8072C1CE5060__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "valdef.h "
#include "DefValue.h"
class CRoadextrView : public CScrollView
{
protected: // create from serialization only
CRoadextrView();
DECLARE_DYNCREATE(CRoadextrView)
// Attributes
public:
CRoadextrDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRoadextrView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
int nExtrType;///提取类型
BOOL bSnap;////自动定位于边缘?
BOOL bClose;///闭和?
BOOL bMSLine,bMBSPLine,bSLine,bCentLine,bDbLine;
BOOL bDigRecog,bDrawRecDig,bCorner,bShowInputPt;
BOOL bHouPDZJ,bShowBMP,bCopyImage;
bool bGetInitRect,bGetInitRENZI,bGetInit,bCatchEdge,bShowVectors;
bool bSegmentation,m_bIsRGB;
// CMyDilErDlg myDilErDlg;
// sjCross mysjCross;
// LPCTSTR *pStrDig[10000];
LPCTSTR strDig;
int nDigStrC,nInCornerPtC;
//for extraction
unsigned char *pucWholeImg,*pucImgBuf,*pucImgBlk,*pucImgBuf2; ///整幅图象的指针
unsigned int wSeedCount,wSeedNum,///种子点(人工点)数
// nBeginSegFg,wDoneFg;
int ni,nShiftFg;///
int j,k;
int nx1,nx2,ny1,ny2;
unsigned long dwPtSegmentNum,////提取的一段的点数
dwOneLinePtNum,////一次提取的点数
dwNum,
dwOneLinePtNum2,////B样条拟合后的点数
*pdwSegmentCount,*pdwNumCp,
dwVPt,dwPtNumErase;
nPOINT pnptPolyPt[1000];
int nPolyPtCount,nPolyCount;
float fZoomRate;
// dfPOINT *pptSeed;///人工点指针
// dfPOINT *pptContrl,///控制点
// dfPOINT *pptCen,///中心点
// *pptRoadL,///道路边线点
// *pptRoadR,
dfPOINT *pptCross;
CornerPt *pCorner;
dfPOINT *pdfCornerPT,*pdfInCornerPT;
HouPDZJPt *pHouPDZJ;
int nPDZJPtC;
int nCornerPtC;
int nCrossPtC;
double dfRW,pdfCC2[100];
ROAD_DETECT_STRU stRD;///道路提取的返回结构
int nScrX,nScrY,
nImgBeginX,nImgBeginY,///窗口影象在整幅图象中的位置
sflag;
int nWholeImgH,nWholeImgW,///整幅图象的行列数
nMouseMvFg;
int nObjID;
int nViewWinHeight;////影象窗口的高度
int nImgColors;////BMP的颜色数
CPoint old_point;
mmOBJECT *pobjTotal;////提取结果的内存数据指针
mmOBJECTRec *pobjRec;////提取结果的内存数据指针
digINFO *pdigInfo;
int nTotalCount;////提取的OBJECT数
int nRecTotal;
int nShortLineTh;
// CMyObjIDDlg myObjIDDlg;
// CSLineTh myCSLThDlg;
// CSaveDlg mysaveDlg;
CPoint myPoint;
char strMsg[30];
CurSegNo *pCurSegNo;
int nCurSegC;
virtual ~CRoadextrView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CRoadextrView)
afx_msg void OnStrroadnet();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in roadextrView.cpp
inline CRoadextrDoc* CRoadextrView::GetDocument()
{ return (CRoadextrDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ROADEXTRVIEW_H__1A4F0822_4419_4C8C_8A38_8072C1CE5060__INCLUDED_)