Esempio n. 1
0
        private void SetFeatureSmooting(SymbolSmoothing smooting)
        {
            if (_map == null || _map.MapElements == null)
            {
                return;
            }

            foreach (IDatasetElement dsElement in _map.MapElements)
            {
                IFeatureLayer fLayer = dsElement as IFeatureLayer;
                if (fLayer == null || fLayer.FeatureRenderer == null)
                {
                    continue;
                }

                IFeatureRenderer fRenderer = fLayer.FeatureRenderer;
                foreach (ISymbol symbol in fRenderer.Symbols)
                {
                    if (symbol == null)
                    {
                        continue;
                    }

                    symbol.SymbolSmothingMode = smooting;
                }
            }
            if (_app != null)
            {
                _app.RefreshActiveMap(DrawPhase.All);
            }
        }
Esempio n. 2
0
        public void Load(IPersistStream stream)
        {
            base.Load(stream);

            this.Smoothingmode = (SymbolSmoothing)stream.Load("smoothing", (int)SymbolSmoothing.None);
        }