📄 lbtreeview.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 + -