Beispiel #1
0
        public MapObjects2.GroupRenderer GetGroupRender(GroupRenderStruct render)
        {
            MapObjects2.GroupRenderer oMapRender = new MapObjects2.GroupRendererClass();

            foreach (IRenderStruct oRender in render.RenderList)
            {
                if (oRender.LayerRenderType == RenderType.ClassBreakRender)
                {
                    MapObjects2.ClassBreaksRenderer oClassBreakRender = this.GetClassBreakRender(oRender as ClassBreakRenderStruct);
                    oMapRender.Add(oClassBreakRender);
                }
                else if (oRender.LayerRenderType == RenderType.LabelRender)
                {
                    MapObjects2.LabelRenderer oLabelRender = this.GetLabelRender(oRender as LabelRenderStruct);
                    oMapRender.Add(oLabelRender);
                }
                else if (oRender.LayerRenderType == RenderType.ValueRender)
                {
                    MapObjects2.ValueMapRenderer oValueRender = this.GetValueRender(oRender as ValueRenderStruct);
                    oMapRender.Add(oValueRender);
                }
            }

            return oMapRender;
        }
Beispiel #2
0
        private GroupRenderStruct ExportGroupRender(MapObjects2.GroupRenderer render)
        {
            GroupRenderStruct oGroupRender = new GroupRenderStruct();
            short             iIndex       = 0;

            oGroupRender.DrawBackground = render.DrawBackground;
            oGroupRender.Tag            = render.Tag;

            object oMapSubRender = render.get_Renderer(iIndex);

            while (oMapSubRender != null)
            {
                if (oMapSubRender is MapObjects2.ValueMapRenderer)
                {
                    ValueRenderStruct oValueRender = this.ExportValueRender(oMapSubRender as MapObjects2.ValueMapRenderer);
                    oGroupRender.RenderList.Add(oValueRender);
                }
                else if (oMapSubRender is MapObjects2.ClassBreaksRenderer)
                {
                    ClassBreakRenderStruct oClassBreakRender = this.ExportClassBreakRender(oMapSubRender as MapObjects2.ClassBreaksRenderer);
                    oGroupRender.RenderList.Add(oClassBreakRender);
                }
                else if (oMapSubRender is MapObjects2.LabelRenderer)
                {
                    LabelRenderStruct oLabelRender = this.ExportLabelRender(oMapSubRender as MapObjects2.LabelRenderer);
                    oGroupRender.RenderList.Add(oLabelRender);
                }

                iIndex++;
                oMapSubRender = render.get_Renderer(iIndex);
            }


            return(oGroupRender);
        }
Beispiel #3
0
        public MapObjects2.GroupRenderer GetGroupRender(GroupRenderStruct render)
        {
            MapObjects2.GroupRenderer oMapRender = new MapObjects2.GroupRendererClass();

            foreach (IRenderStruct oRender in render.RenderList)
            {
                if (oRender.LayerRenderType == RenderType.ClassBreakRender)
                {
                    MapObjects2.ClassBreaksRenderer oClassBreakRender = this.GetClassBreakRender(oRender as ClassBreakRenderStruct);
                    oMapRender.Add(oClassBreakRender);
                }
                else if (oRender.LayerRenderType == RenderType.LabelRender)
                {
                    MapObjects2.LabelRenderer oLabelRender = this.GetLabelRender(oRender as LabelRenderStruct);
                    oMapRender.Add(oLabelRender);
                }
                else if (oRender.LayerRenderType == RenderType.ValueRender)
                {
                    MapObjects2.ValueMapRenderer oValueRender = this.GetValueRender(oRender as ValueRenderStruct);
                    oMapRender.Add(oValueRender);
                }
            }

            return(oMapRender);
        }
Beispiel #4
0
        private GroupRenderStruct ExportGroupRender(MapObjects2.GroupRenderer render)
        {
            GroupRenderStruct oGroupRender = new GroupRenderStruct();
            short iIndex = 0;

            oGroupRender.DrawBackground = render.DrawBackground;
            oGroupRender.Tag = render.Tag;

            object oMapSubRender = render.get_Renderer(iIndex);
            while (oMapSubRender != null)
            {
                if (oMapSubRender is MapObjects2.ValueMapRenderer)
                {
                    ValueRenderStruct oValueRender = this.ExportValueRender(oMapSubRender as MapObjects2.ValueMapRenderer);
                    oGroupRender.RenderList.Add(oValueRender);
                }
                else if (oMapSubRender is MapObjects2.ClassBreaksRenderer)
                {
                    ClassBreakRenderStruct oClassBreakRender = this.ExportClassBreakRender(oMapSubRender as MapObjects2.ClassBreaksRenderer);
                    oGroupRender.RenderList.Add(oClassBreakRender);
                }
                else if (oMapSubRender is MapObjects2.LabelRenderer)
                {
                    LabelRenderStruct oLabelRender = this.ExportLabelRender(oMapSubRender as MapObjects2.LabelRenderer);
                    oGroupRender.RenderList.Add(oLabelRender);
                }

                iIndex++;
                oMapSubRender = render.get_Renderer(iIndex);
            }

            return oGroupRender;
        }