protected override void Append(LoggingEvent loggingEvent)
        {
            IOutputPanel content = Program.Container.Resolve <DockContent>("Output") as IOutputPanel;

            if (content != null)
            {
                content.Write(RenderLoggingEvent(loggingEvent));
            }
        }
Exemple #2
0
        /// <summary>
        ///     Create a SigmaPanel with a given title.
        ///     If a title is not sufficient modify <see cref="SigmaPanel.Header" />.
        /// </summary>
        /// <param name="title">The given tile.</param>
        /// <param name="headerContent">The content for the header. If <c>null</c> is passed,
        /// the title will be used.</param>
        public DrawPanel(string title, ITrainer trainer, int drawWidth, int drawHeight, int drawSize, IOutputPanel outputPanel = null, object headerContent = null) : base(title, headerContent)
        {
            Handler = trainer.Operator.Handler;

            Content = new DrawCanvas
            {
                GridWidth  = drawWidth,
                GridHeight = drawHeight,
                PointSize  = drawSize
            };

            Content.UpdateRects();

            double[,] oldVals = Content.GetValues();
            double[] newVals = DrawCanvasValuesSingle(Content);
            Values = Handler.NDArray(newVals, 1, 1, oldVals.GetLength(0), oldVals.GetLength(1));

            OutputPanel = outputPanel;

            Content.InputChangedEvent += UpdateValues;
        }