Exemple #1
0
        public ShapeLayer(int width, int height, GeomCoordinate centerCoordinate, int level)
            : base(width, height, centerCoordinate, level)
        {
            CoordinateTolerance = 0;

            _rVertexTree = new VertexTree();
            _rCableTree  = new CableTree();
        }
Exemple #2
0
        public NetLayer(int width, int height, Coordinate centerCoordinate, int level)
            : base(width, height, centerCoordinate, level)
        {
            CoordinateTolerance = 0;

            _rVertexTree = new VertexTree();
            _rCableTree = new CableTree();
        }
Exemple #3
0
        private void ReadCables()
        {
            var cableTree = new CableTree();

            cableTree.LoadData();

            try
            {
                _lockCr.EnterWriteLock();
                _rCableTree = cableTree;
            }
            finally
            {
                _lockCr.ExitWriteLock();
            }
        }
Exemple #4
0
        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));
        }
Exemple #5
0
        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));
        }
Exemple #6
0
        private void ReadCables()
        {
            var cableTree = new CableTree();
            cableTree.LoadData();

            try
            {
                _lockCr.EnterWriteLock();
                _rCableTree = cableTree;
            }
            finally
            {
                _lockCr.ExitWriteLock();
            }
        }