Ejemplo n.º 1
0
    /// <summary>
    ///		Change color of any ILayer . Useful to hide any ILayer objects (they are not drawn, because ColorNodes are set do not-draw-when-transparent)
    /// </summary>
    /// <remarks>
    ///		Used to hide ILayer in <see cref="LayerListWidget.OnVisibilityChange"/>.
    /// </remarks>
    /// <param name="ILayer">The ILayer to change color of.</param>
    /// <param name="color">The new color.</param>
    public void SetILayerColor(ILayer ILayer, Color color)
    {
        LogManager.Log(LogLevel.Debug, "Set color of ILayer {0}", ILayer.GetHashCode());
        ColorNode colorNode = colors[ILayer];

        colorNode.Color = color;
        QueueDraw();
    }
Ejemplo n.º 2
0
 /// <summary>
 ///		Change color of any ILayer . Useful to hide any ILayer objects (they are not drawn, because ColorNodes are set do not-draw-when-transparent)
 /// </summary>
 /// <remarks>
 ///		Used to hide ILayer in <see cref="LayerListWidget.OnVisibilityChange"/>.
 /// </remarks>
 /// <param name="ILayer">The ILayer to change color of.</param>
 /// <param name="color">The new color.</param>
 public void SetILayerColor(ILayer ILayer, Color color)
 {
     LogManager.Log(LogLevel.Debug, "Set color of ILayer {0}", ILayer.GetHashCode());
     ColorNode colorNode = colors[ILayer];
     colorNode.Color = color;
     QueueDraw();
 }