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

📄 lbtreeview.h

📁 用VC。NET2005实现优秀的最近邻搜索算法LB-TREE的模拟和图形显示。具有建立优良数据结构和搜索功能
💻 H
字号:
// LBTreeView.h : interface of the CLBTreeView class
//


#pragma once

#include "Cluster.h"
#include "HeapSearch.h"
#include "Random.h"

class CLBTreeView : public CView
{
protected: // create from serialization only
	CLBTreeView();
	DECLARE_DYNCREATE(CLBTreeView)

// Attributes
public:
	CLBTreeDoc* GetDocument() const;

// Operations
public:

// Overrides
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);

// Implementation
public:
	virtual ~CLBTreeView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnProducenewdata();
public:
	afx_msg void OnTreebuild();
public:
	// LB树的根指针
	Cluster* Root;
	Random NewRandon;
protected:
	// 图形显示的放大倍数
	int Zoom;
public:
	afx_msg void OnZoomIn();
public:
	afx_msg void OnZoomOut();
public:
	afx_msg void OnHaar();
public:
	afx_msg void OnLeftMove();
protected:
	// 图像原点横坐标
	int CoordinateX;
	// 图像原点纵坐标
	int CoordinateY;
public:
	afx_msg void OnRightMove();
public:
	afx_msg void OnUpMove();
public:
	afx_msg void OnDownMove();
public:
	afx_msg void OnHeap();
public:
	afx_msg void OnQueryPoint();
public:
	// 查询点指针
	NPoint* QueryPoint;
public:
	afx_msg void OnHaarQuery();
protected:
	// 表示图形显示原始数据的状态
	bool ShowData;
	// 表示图示建树和搜索结果的状态
	bool ShowResult;
};

#ifndef _DEBUG  // debug version in LBTreeView.cpp
inline CLBTreeDoc* CLBTreeView::GetDocument() const
   { return reinterpret_cast<CLBTreeDoc*>(m_pDocument); }
#endif

⌨️ 快捷键说明

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