Esempio n. 1
0
        private void method_2()
        {
            object ilineSymbol0;

            if (CmdSelectTopology.m_TopologyGraph != null && this._context.Hook is IMapControl2)
            {
                IMapControl2      hook          = (IMapControl2)this._context.Hook;
                IEnumTopologyEdge edgeSelection = CmdSelectTopology.m_TopologyGraph.EdgeSelection;
                edgeSelection.Reset();
                ITopologyEdge topologyEdge = edgeSelection.Next();
                if (topologyEdge != null)
                {
                    ilineSymbol0 = this.ilineSymbol_0;
                    while (topologyEdge != null)
                    {
                        hook.DrawShape(topologyEdge.Geometry, ref ilineSymbol0);
                        topologyEdge = edgeSelection.Next();
                    }
                }
                IEnumTopologyNode nodeSelection = CmdSelectTopology.m_TopologyGraph.NodeSelection;
                nodeSelection.Reset();
                ITopologyNode topologyNode = nodeSelection.Next();
                if (topologyNode != null)
                {
                    ilineSymbol0 = this.imarkerSymbol_0;
                    while (topologyNode != null)
                    {
                        hook.DrawShape(topologyNode.Geometry, ref ilineSymbol0);
                        topologyNode = nodeSelection.Next();
                    }
                }
            }
        }
Esempio n. 2
0
 private void method_3(IDisplay idisplay_0, esriViewDrawPhase esriViewDrawPhase_0)
 {
     if ((CmdSelectTopology.m_TopologyGraph == null ? false : this.Enabled))
     {
         IEnumTopologyEdge edgeSelection = CmdSelectTopology.m_TopologyGraph.EdgeSelection;
         edgeSelection.Reset();
         ITopologyEdge topologyEdge = edgeSelection.Next();
         object        value        = Missing.Value;
         if (topologyEdge != null)
         {
             IGeometryCollection polylineClass = new Polyline() as IGeometryCollection;
             while (topologyEdge != null)
             {
                 polylineClass.AddGeometryCollection((IGeometryCollection)topologyEdge.Geometry);
                 topologyEdge = edgeSelection.Next();
             }
             idisplay_0.SetSymbol((ISymbol)this.ilineSymbol_0);
             idisplay_0.DrawPolyline((IGeometry)polylineClass);
         }
         IEnumTopologyNode nodeSelection = CmdSelectTopology.m_TopologyGraph.NodeSelection;
         nodeSelection.Reset();
         ITopologyNode topologyNode = nodeSelection.Next();
         if (topologyNode != null)
         {
             IPointCollection multipointClass = new Multipoint();
             while (topologyNode != null)
             {
                 multipointClass.AddPoint((IPoint)topologyNode.Geometry, ref value, ref value);
                 topologyNode = nodeSelection.Next();
             }
             idisplay_0.SetSymbol((ISymbol)this.imarkerSymbol_0);
             idisplay_0.DrawMultipoint((IGeometry)multipointClass);
         }
     }
 }
Esempio n. 3
0
 private void method_1(IDisplay idisplay_0)
 {
     if (CmdSelectTopology.m_TopologyGraph != null)
     {
         IEnumTopologyEdge edgeSelection = CmdSelectTopology.m_TopologyGraph.EdgeSelection;
         edgeSelection.Reset();
         ITopologyEdge topologyEdge = edgeSelection.Next();
         if (topologyEdge != null)
         {
             IPolyline polylineClass = new Polyline() as IPolyline;
             idisplay_0.SetSymbol((ISymbol)this.ilineSymbol_0);
             while (topologyEdge != null)
             {
                 idisplay_0.DrawPolyline(topologyEdge.Geometry);
                 topologyEdge = edgeSelection.Next();
             }
         }
         IEnumTopologyNode nodeSelection = CmdSelectTopology.m_TopologyGraph.NodeSelection;
         nodeSelection.Reset();
         ITopologyNode topologyNode = nodeSelection.Next();
         if (topologyNode != null)
         {
             IMultipoint multipointClass = new Multipoint() as IMultipoint;
             idisplay_0.SetSymbol((ISymbol)this.imarkerSymbol_0);
             while (topologyNode != null)
             {
                 idisplay_0.DrawPoint(topologyNode.Geometry);
                 topologyNode = nodeSelection.Next();
             }
         }
     }
 }