C# 클래스 SharpMap.Utilities.SpatialIndexing.QuadTree

Constructs a Quad-tree node from a object list and creates its children recursively
상속: IDisposable
파일 보기 프로젝트 열기: jumpinjackie/fdotoolbox 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
_ID uint?

보호된 프로퍼티들

프로퍼티 타입 설명
_Depth uint

공개 메소드들

메소드 설명
Dispose ( ) : void

Disposes the node

ErrorMetric ( SharpMap box ) : double

Calculate the floating point error metric

FromFile ( string filename ) : QuadTree

Loads a quadtree from a file

QuadTree ( List objList, uint depth, Heuristic heurdata ) : System

Creates a node and either splits the objects recursively into sub-nodes, or stores them at the node depending on the heuristics. Tree is built top->down

SaveIndex ( string filename ) : void

Saves the Quadtree to a file

Search ( SharpMap box ) : List

Searches the tree and looks for intersections with the boundingbox 'bbox'

비공개 메소드들

메소드 설명
IntersectTreeRecursive ( SharpMap box, QuadTree node, List &list ) : void

Recursive function that traverses the tree and looks for intersections with a boundingbox

QuadTree ( ) : System

This instantiator is used internally for loading a tree from a file

ReadNode ( uint depth, System &br ) : QuadTree

Reads a node from a stream recursively

SaveNode ( QuadTree node, System &sw ) : void

Saves a node to a stream recursively

메소드 상세

Dispose() 공개 메소드

Disposes the node
public Dispose ( ) : void
리턴 void

ErrorMetric() 공개 메소드

Calculate the floating point error metric
public ErrorMetric ( SharpMap box ) : double
box SharpMap
리턴 double

FromFile() 공개 정적인 메소드

Loads a quadtree from a file
public static FromFile ( string filename ) : QuadTree
filename string
리턴 QuadTree

QuadTree() 공개 메소드

Creates a node and either splits the objects recursively into sub-nodes, or stores them at the node depending on the heuristics. Tree is built top->down
public QuadTree ( List objList, uint depth, Heuristic heurdata ) : System
objList List Geometries to index
depth uint Current depth of tree
heurdata Heuristic Heuristics data
리턴 System

SaveIndex() 공개 메소드

Saves the Quadtree to a file
public SaveIndex ( string filename ) : void
filename string
리턴 void

Search() 공개 메소드

Searches the tree and looks for intersections with the boundingbox 'bbox'
public Search ( SharpMap box ) : List
box SharpMap Boundingbox to intersect with
리턴 List

프로퍼티 상세

_Depth 보호되어 있는 프로퍼티

Nodes depth in a tree
protected uint _Depth
리턴 uint

_ID 공개적으로 프로퍼티

Node ID
public uint? _ID
리턴 uint?