Beispiel #1
0
        public void FlashDstItem()
        {
            IMapControl3      mapControl            = this.m_app.MapControl as IMapControl3;
            Color             randColor             = (new CRandomColor()).GetRandColor();
            ISimpleLineSymbol simpleLineSymbolClass = new SimpleLineSymbol();
            IRgbColor         rgbColorClass         = new RgbColor();

            rgbColorClass.Red           = ((int)randColor.R);
            rgbColorClass.Green         = ((int)randColor.G);
            rgbColorClass.Blue          = ((int)randColor.B);
            simpleLineSymbolClass.Color = (rgbColorClass);
            simpleLineSymbolClass.Width = (5);
            object            obj = simpleLineSymbolClass;
            ISimpleLineSymbol simpleLineSymbolClass1 = new SimpleLineSymbol();
            IRgbColor         rgbColorClass1         = new RgbColor();

            rgbColorClass1.Red           = (255);
            rgbColorClass1.Green         = (0);
            rgbColorClass1.Blue          = (0);
            simpleLineSymbolClass1.Color = (rgbColorClass1);
            simpleLineSymbolClass1.Width = (5);
            object obj1 = simpleLineSymbolClass1;

            try
            {
                mapControl.DrawShape(this.m_pFlashGeo, ref obj);
                if (this.m_commonDistAls.m_pBaseLine != null)
                {
                    mapControl.DrawShape(this.m_commonDistAls.m_pBaseLine, ref obj1);
                }
            }
            catch
            {
            }
        }
Beispiel #2
0
        public void FlashDstItem()
        {
            IMapControl3      mapControl            = this.m_iApp.MapControl as IMapControl3;
            Color             randColor             = (new CRandomColor()).GetRandColor();
            ISimpleLineSymbol simpleLineSymbolClass = new SimpleLineSymbol();
            IRgbColor         rgbColorClass         = new RgbColor();

            rgbColorClass.Red           = ((int)randColor.R);
            rgbColorClass.Green         = ((int)randColor.G);
            rgbColorClass.Blue          = ((int)randColor.B);
            simpleLineSymbolClass.Color = (rgbColorClass);
            simpleLineSymbolClass.Width = (5);
            object obj = simpleLineSymbolClass;
            ISimpleMarkerSymbol simpleMarkerSymbolClass = new SimpleMarkerSymbol();

            simpleMarkerSymbolClass.Color = (rgbColorClass);
            simpleMarkerSymbolClass.Size  = (10);
            simpleMarkerSymbolClass.Style = (0);
            object            obj1 = simpleMarkerSymbolClass;
            ISimpleFillSymbol simpleFillSymbolClass = new SimpleFillSymbol();

            simpleFillSymbolClass.Style         = 0;
            simpleFillSymbolClass.Outline.Width = (6);
            simpleFillSymbolClass.Color         = (rgbColorClass);
            object obj2 = simpleFillSymbolClass;

            try
            {
                if (this.igeometry_0.GeometryType == esriGeometryType.esriGeometryPoint)
                {
                    mapControl.DrawShape(this.igeometry_0, ref obj1);
                }
                if (this.igeometry_0.GeometryType == esriGeometryType.esriGeometryPolyline)
                {
                    mapControl.DrawShape(this.igeometry_0, ref obj);
                }
                if (this.igeometry_0.GeometryType == esriGeometryType.esriGeometryPolygon)
                {
                    mapControl.DrawShape(this.igeometry_0, ref obj2);
                }
            }
            catch
            {
            }
        }
Beispiel #3
0
        public void DrawSelGeometry()
        {
            if (MIpGeo != null)
            {
                IRgbColor rgbColor        = new RgbColor();
                var       selectionCorlor = MContext.Config.SelectionEnvironment.DefaultColor;
                rgbColor.RGB          = selectionCorlor.RGB;
                rgbColor.Transparency = selectionCorlor.Transparency;

                object  obj = null;
                var     selectionBufferInPixels = MContext.Config.SelectionEnvironment.SearchTolerance;
                ISymbol symbol = null;
                switch ((int)MIpGeo.GeometryType)
                {
                case 1:
                {
                    ISimpleMarkerSymbol simpleMarkerSymbol = new SimpleMarkerSymbol();
                    symbol      = (ISymbol)simpleMarkerSymbol;
                    symbol.ROP2 = (esriRasterOpCode)10;
                    simpleMarkerSymbol.Color = rgbColor;
                    simpleMarkerSymbol.Size  =
                        selectionBufferInPixels + selectionBufferInPixels + selectionBufferInPixels;
                    break;
                }

                case 3:
                {
                    ISimpleLineSymbol simpleLineSymbol = new SimpleLineSymbol();
                    symbol                 = (ISymbol)simpleLineSymbol;
                    symbol.ROP2            = (esriRasterOpCode)10;
                    simpleLineSymbol.Color = rgbColor;
                    simpleLineSymbol.Color.Transparency = 1;
                    simpleLineSymbol.Width = selectionBufferInPixels;
                    break;
                }

                case 4:
                case 5:
                {
                    ISimpleFillSymbol simpleFillSymbol = new SimpleFillSymbol();
                    symbol                 = (ISymbol)simpleFillSymbol;
                    symbol.ROP2            = (esriRasterOpCode)10;
                    simpleFillSymbol.Color = rgbColor;
                    simpleFillSymbol.Color.Transparency = 1;
                    break;
                }
                }
                obj = symbol;
                MapControl.DrawShape(MIpGeo, ref obj);
            }
        }
Beispiel #4
0
        public void FlashDstItem()
        {
            IMapControl3      mapControl       = m_iApp.MapControl as IMapControl3;
            CRandomColor      cRandomColor     = new CRandomColor();
            Color             randColor        = cRandomColor.GetRandColor();
            ISimpleLineSymbol simpleLineSymbol = new SimpleLineSymbol();
            IRgbColor         rgbColor         = new RgbColor();

            rgbColor.Red           = ((int)randColor.R);
            rgbColor.Green         = ((int)randColor.G);
            rgbColor.Blue          = ((int)randColor.B);
            simpleLineSymbol.Color = (rgbColor);
            simpleLineSymbol.Width = (5.0);
            object obj = simpleLineSymbol;
            ISimpleMarkerSymbol simpleMarkerSymbolClass = new SimpleMarkerSymbol();

            simpleMarkerSymbolClass.Color = (rgbColor);
            simpleMarkerSymbolClass.Size  = (10.0);
            simpleMarkerSymbolClass.Style = (0);
            object obj2 = simpleMarkerSymbolClass;

            try
            {
                if (this.BuoawIbkuD.GeometryType == esriGeometryType.esriGeometryPoint)
                {
                    mapControl.DrawShape(this.BuoawIbkuD, ref obj2);
                }
                if (this.BuoawIbkuD.GeometryType == esriGeometryType.esriGeometryPolyline)
                {
                    mapControl.DrawShape(this.BuoawIbkuD, ref obj);
                }
            }
            catch
            {
            }
        }