Beispiel #1
0
 public void Dispose()
 {
     // Get rid of dummies
     for (int i = 0; i < hashSize; i++)
     {
         hash[i].Dispose(manager);
         hash[i] = null;
     }
     manager.Release(hash);
     hash = null;
     manager.Release(this);
 }
Beispiel #2
0
        public void Dispose()
        {
            leftVertex  = null;
            rightVertex = null;
            if (clippedVertices != null)
            {
                clippedVertices.Clear();
                manager.Release(clippedVertices);
                clippedVertices = null;
            }
            sites.Clear();

            manager.Release(this);
        }
Beispiel #3
0
 public void Dispose()
 {
     foreach (var site in sites)
     {
         site.Dispose();
     }
     manager.Release(sites);
     ResetListIndex();
 }
Beispiel #4
0
        public void Dispose()
        {
            sites.Dispose();

            foreach (Edge e in edges)
            {
                e.Dispose();
            }
            manager.Release(edges);

            foreach (Vertex ve in vertices)
            {
                ve.Dispose(manager);
            }
            manager.Release(vertices);

            plotBounds = Rectf.zero;
        }
Beispiel #5
0
        public void Dispose()
        {
            Halfedge halfedge = leftEnd.edgeListRightNeighbor;
            Halfedge prevHe;

            while (halfedge != rightEnd)
            {
                prevHe   = halfedge;
                halfedge = halfedge.edgeListRightNeighbor;
                prevHe.Dispose(manager);
            }
            leftEnd.ReallyDispose(manager);
            leftEnd = null;
            rightEnd.ReallyDispose(manager);
            rightEnd = null;

            manager.Release(hash);
            manager.Release(this);
        }
Beispiel #6
0
 public void ReallyDispose(VoronoiManager manager)
 {
     edgeListLeftNeighbor  = null;
     edgeListRightNeighbor = null;
     nextInPriorityQueue   = null;
     edge      = null;
     leftRight = null;
     vertex    = null;
     manager.Release(this);
 }
Beispiel #7
0
 public void Dispose(VoronoiManager manager)
 {
     if (edgeListLeftNeighbor != null || edgeListRightNeighbor != null)
     {
         // still in EdgeList
         return;
     }
     if (nextInPriorityQueue != null)
     {
         // still in PriorityQueue
         return;
     }
     edge      = null;
     leftRight = null;
     vertex    = null;
     manager.Release(this);
 }
Beispiel #8
0
 public void Dispose()
 {
     Clear();
     manager.Release(this);
 }
Beispiel #9
0
 public void Dispose(VoronoiManager manager)
 {
     coord = Vector2f.zero;
     manager.Release(this);
 }