/// <summary> /// Collects statistics for this node and all children (for use in experimentation) /// </summary> /// <param name="stats">The stats to update</param> internal override void CollectStats(PointIndexStatistics stats) { stats.Add(this); foreach (Node child in m_Children) { child.CollectStats(stats); } }
/// <summary> /// Collects statistics for this node (for use in experimentation) /// </summary> /// <param name="stats">The stats to update</param> internal override void CollectStats(PointIndexStatistics stats) { stats.Add(this); }
/// <summary> /// Collects statistical information about this index. For experimentation. /// </summary> /// <param name="stats">The stats to fill in.</param> internal void CollectStats(PointIndexStatistics stats) { m_Root.CollectStats(stats); }
/// <summary> /// Collects statistics for this node and all children (for use in experimentation) /// </summary> /// <param name="stats">The stats to update</param> internal override void CollectStats(PointIndexStatistics stats) { stats.Add(this); foreach (Node child in m_Children) child.CollectStats(stats); }
/// <summary> /// Collects statistical information about this index. For experimentation. /// </summary> /// <param name="stats">The stats to fill in.</param> internal void CollectStats(PointIndexStatistics stats) { m_Root.CollectStats(stats); }
/// <summary> /// Collects statistics for this node (for use in experimentation) /// </summary> /// <param name="stats">The stats to update</param> internal abstract void CollectStats(PointIndexStatistics stats);
// <summary> // Dumps out debug information relating to this index, creating // a file called <c>C:\Temp\index.txt</c> // </summary> //public void Dump() //{ // using (StreamWriter w = File.CreateText(@"C:\Temp\index.txt")) // { // w.WriteLine("Lines"); // m_Lines.Dump(w, 0); // w.WriteLine(); // w.WriteLine("Text"); // m_Text.Dump(w, 0); // w.WriteLine(); // w.WriteLine("Polygons"); // m_Polygons.Dump(w, 0); // } //} /// <summary> /// Obtains the number of points in this index /// </summary> /// <returns>The number of points</returns> public uint GetPointCount() { PointIndexStatistics statPoints = new PointIndexStatistics(); m_Points.CollectStats(statPoints); return statPoints.PointCount; }
/// <summary> /// Dumps out debug statistics relating to this index, creating /// a file called <c>C:\Temp\indexStats.txt</c> /// </summary> public void DumpStats() { using (StreamWriter w = File.CreateText(@"C:\Temp\indexStats.txt")) { PointIndexStatistics statPoints = new PointIndexStatistics(); w.WriteLine("Points"); m_Points.CollectStats(statPoints); statPoints.Dump(w); IndexStatistics statLines = new IndexStatistics(); w.WriteLine(); w.WriteLine("Lines"); m_Lines.CollectStats(statLines); statLines.Dump(w); IndexStatistics statText = new IndexStatistics(); w.WriteLine(); w.WriteLine("Text"); m_Text.CollectStats(statText); statText.Dump(w); IndexStatistics statPol = new IndexStatistics(); w.WriteLine(); w.WriteLine("Polygons"); m_Polygons.CollectStats(statPol); statPol.Dump(w); } }
/// <summary> /// Collects statistics for this node (for use in experimentation) /// </summary> /// <param name="stats">The stats to update</param> internal abstract void CollectStats(PointIndexStatistics stats);