public ShapeLayer(int width, int height, GeomCoordinate centerCoordinate, int level) : base(width, height, centerCoordinate, level) { CoordinateTolerance = 0; _rVertexTree = new VertexTree(); _rCableTree = new CableTree(); }
public NetLayer(int width, int height, Coordinate centerCoordinate, int level) : base(width, height, centerCoordinate, level) { CoordinateTolerance = 0; _rVertexTree = new VertexTree(); _rCableTree = new CableTree(); }
private void ReadCables() { var cableTree = new CableTree(); cableTree.LoadData(); try { _lockCr.EnterWriteLock(); _rCableTree = cableTree; } finally { _lockCr.ExitWriteLock(); } }
public void ClearData() { try { _lockCr.EnterWriteLock(); _rCableTree = new CableTree(); } finally { _lockCr.ExitWriteLock(); } try { _lockVr.EnterWriteLock(); _rVertexTree = new VertexTree(); } finally { _lockVr.ExitWriteLock(); } Update(new Rectangle(0, 0, Width, Height)); }