Esempio n. 1
0
 void Events_AfterDrawSketch(ESRI.ArcGIS.Display.IDisplay pDpy)
 {
     //if (!checkSelectedLayer())
     //{
     //    //m_editor.UndoOperation();
     //    System.Windows.Forms.MessageBox.Show("Please ensure that you have selected the edited feature class in the editor window.\r\n", "City of Medford GIS Tools: Update Data", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
     //    return;
     //}
 }
        void EventListener_AfterDrawSketch(ESRI.ArcGIS.Display.IDisplay pDpy)
        {
            EditorEventArgs e = new EditorEventArgs("AfterDrawSketch");

            OnChanged(e);
        }
Esempio n. 3
0
 public abstract void Draw(ESRI.ArcGIS.esriSystem.esriDrawPhase DrawPhase, ESRI.ArcGIS.Display.IDisplay Display,
                           ESRI.ArcGIS.esriSystem.ITrackCancel TrackCancel);
Esempio n. 4
0
        void EventListener_BeforeDrawSketch(ESRI.ArcGIS.Display.IDisplay pDpy)
        {
            EditorEventArgs e = new EditorEventArgs(EditorEventEnum.BeforeDrawSketch);

            OnChanged(e);
        }
Esempio n. 5
0
        ///<summary>Flash geometry on the display. The geometry type could be polygon, polyline, point, or multipoint.</summary>
        ///
        ///<param name="geometry"> An IGeometry interface</param>
        ///<param name="color">An IRgbColor interface</param>
        ///<param name="display">An IDisplay interface</param>
        ///<param name="delay">A System.Int32 that is the time im milliseconds to wait.</param>
        ///
        ///<remarks></remarks>
        public void FlashGeometry(ESRI.ArcGIS.Geometry.IGeometry geometry, ESRI.ArcGIS.Display.IRgbColor color, ESRI.ArcGIS.Display.IDisplay display, System.Int32 delay)
        {
            if (geometry == null || color == null || display == null)
            {
                return;
            }

            display.StartDrawing(display.hDC, (System.Int16)ESRI.ArcGIS.Display.esriScreenCache.esriNoScreenCache); // Explicit Cast


            switch (geometry.GeometryType)
            {
            case ESRI.ArcGIS.Geometry.esriGeometryType.esriGeometryPoint:
            {
                //Set the flash geometry's symbol.
                ESRI.ArcGIS.Display.ISimpleMarkerSymbol simpleMarkerSymbol = new ESRI.ArcGIS.Display.SimpleMarkerSymbol();
                simpleMarkerSymbol.Style = ESRI.ArcGIS.Display.esriSimpleMarkerStyle.esriSMSCircle;
                simpleMarkerSymbol.Size  = 12;
                simpleMarkerSymbol.Color = color;
                ESRI.ArcGIS.Display.ISymbol symbol = simpleMarkerSymbol as ESRI.ArcGIS.Display.ISymbol;         // Dynamic Cast
                symbol.ROP2 = ESRI.ArcGIS.Display.esriRasterOpCode.esriROPNotXOrPen;

                //Flash the input point geometry.
                display.SetSymbol(symbol);
                display.DrawPoint(geometry);
                System.Threading.Thread.Sleep(delay);
                display.DrawPoint(geometry);
                break;
            }
            }
            display.FinishDrawing();
        }
Esempio n. 6
0
 /// <summary>
 /// ItemDraw Event handler
 /// </summary>
 /// <param name="Index"></param>
 /// <param name="Display"></param>
 /// <param name="phase"></param>
 /// <remarks></remarks>
 private void OnActiveViewEventsItemDraw(short Index, ESRI.ArcGIS.Display.IDisplay display, ESRI.ArcGIS.esriSystem.esriDrawPhase phase)
 {
     // TODO: Add your code here
     // System.Windows.Forms.MessageBox.Show("ItemDraw");
 }
Esempio n. 7
0
 /// <summary>
 /// AfterDraw Event handler
 /// </summary>
 /// <param name="Display"></param>
 /// <param name="phase"></param>
 /// <remarks>SECTION: Custom Functions that you write to add additionally functionality for the events</remarks>
 private void OnActiveViewEventsAfterDraw(ESRI.ArcGIS.Display.IDisplay display, ESRI.ArcGIS.Carto.esriViewDrawPhase phase)
 {
     ESRI.ArcGIS.Carto.esriViewDrawPhase m_phase = phase;
     System.Windows.Forms.MessageBox.Show(phase.ToString());
 }