Ejemplo n.º 1
0
        /// <summary>
        /// Handles any redrawing.
        /// </summary>
        internal void OnDraw()
        {
            ISpatialDisplay display = ActiveDisplay;

            // If the point the intersection needs to be close to is defined, draw it.
            if (m_CloseTo != null)
            {
                IDrawStyle style = EditingController.Current.Style(Color.Red);
                m_CloseTo.Render(display, style);
            }

            // Draw the intersection point in magenta
            if (m_Intersect != null)
            {
                IDrawStyle style = EditingController.Current.Style(Color.Magenta);
                style.Render(display, m_Intersect);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Sets the normal colour for a point.
        /// </summary>
        /// <param name="point">The point to set the colour for.</param>
        void SetNormalColour(PointFeature point)
        {
            // Return if point not specified.
            if (point==null)
                return;

            // Get the view to draw the point in its normal color.
            ISpatialDisplay view = m_Cmd.ActiveDisplay;
            IDrawStyle style = m_Cmd.Controller.DrawStyle;
            point.Render(view, style);
        }