You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
869 B
C++
43 lines
869 B
C++
#pragma once
|
|
|
|
#include "CommonDefines.h"
|
|
|
|
struct SCATTEREDDATAINDEX;
|
|
class CScatteredTrace;
|
|
class CGDFPolygon;
|
|
|
|
//离散点的搜索
|
|
class CPointSearcher
|
|
{
|
|
public:
|
|
CPointSearcher();
|
|
~CPointSearcher();
|
|
|
|
//Attributes
|
|
private:
|
|
CFile m_IndexFile;
|
|
CString m_strFileName;
|
|
CString m_strFileName1;
|
|
|
|
BOOL m_bSaveIndex;
|
|
CArray<CPoint2D,CPoint2D> m_SavedIndexArray;//保存已建立索引的点
|
|
|
|
CScatteredTrace* m_pScatteredData;
|
|
|
|
CTypedPtrArray<CPtrArray,CGDFPolygon*> m_PolygonArray;//相当于断层
|
|
CArray<BOOL,BOOL> m_PolygonEnableArray;//标志是否使用该断层
|
|
|
|
CFile m_SeparateIndexFile;
|
|
CArray<CPoint2D,CPoint2D> m_SeparateIndexArray;
|
|
|
|
CPoint2D m_currentpoint;
|
|
SCATTEREDDATAINDEX* m_pDataIndex;//针对某一个插值点的所有离散点排序(只考虑距离)
|
|
int m_iPointCount;
|
|
|
|
//Operations
|
|
public:
|
|
void SetScatteredData(CScatteredTrace* pScatteredData);
|
|
void Clear();
|
|
void ClearPolygon();
|
|
};
|