⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testdlg.h

📁 DGCL (An Efficient Density and Grid Based Clustering Algorithm for Large Spatial Database)的实现代码
💻 H
字号:
// testDlg.h : header file
//

#if !defined(AFX_TESTDLG_H__55A480A5_B220_45A4_AE29_2E1EBDE7DB20__INCLUDED_)
#define AFX_TESTDLG_H__55A480A5_B220_45A4_AE29_2E1EBDE7DB20__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CTestDlg dialog

typedef struct datafile{
	long id;
	int x;
	int y;
}DATA_FILE;

typedef struct gridstructure{
	int groupID;
	long density;
	long realNum;  //记录在这个网格中实际点的个数
	bool used;
}GRID_STRUCT;

typedef struct grid_combine {    //用于合并聚簇后产生的相邻聚簇区为统一的聚簇
//	int gridID;      //下标就代表groupID
	int finalID;
	bool combineTab;
}GRID_COMBINE;

class CTestDlg : public CDialog
{
// Construction
public: 
	CString colorbuf[16];  //用来测试有多少种颜色被用到,也就代表了优化后一共用多少个聚簇
	COLORREF SelectColor(int colorIndex);
    double m_CoefDensity;    //密度调整系数
	int m_CoefInterval;   //间隔调整系数
	int m_DensityLevel;   //密度量度
	int CheckNeighbors(int x,int y,int gridx,int gridy,int avgInterval);
	long m_IntervalNum;  //record the number of intervals
	int m_gridHeight;
	int m_gridWidth;
	int CheckCondition(int gridx,int gridy);
	FILE* m_dataFile;
	CTestDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CTestDlg)
	enum { IDD = IDD_TEST_DIALOG };
	CString	m_interNum;
	CString	m_avgDens;
	CString	m_cellNum;
	CString	m_dl;
	CString	m_timeStr;
	CString	m_coedens;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTestDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnCoordinate();
	afx_msg void OnRandom();
	afx_msg void OnDraw();
	afx_msg void OnCircle();
	afx_msg void OnSin();
	afx_msg void OnRect();
	afx_msg void OnCluster();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TESTDLG_H__55A480A5_B220_45A4_AE29_2E1EBDE7DB20__INCLUDED_)





















⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -