Пример #1
0
 private void DrawDataPoints(List <EMPoint> dataPoints)
 {
     for (int i = 0; i < dataPoints.Count; i++)
     {
         CanvasBackground.DrawDataPoint((float)dataPoints[i].Value, dataPoints[i].Color);
     }
     PCT_CANVAS.Image = CanvasBackground.Curves;
 }
Пример #2
0
        private void InitializeEM()
        {
            TreeNode node;

            clusters = int.Parse(TXT_CLUSTERS.Text);
            emMax    = new EM(clusters);

            TREE_EM.Nodes.Clear();
            CanvasBackground.CleanCanvasImage();
            for (int i = 0; i < clusters; i++)
            {
                node           = new TreeNode(EM.Stats[i].Name);
                node.BackColor = EM.Stats[i].Color;
                node.Tag       = EM.Stats[i];

                node.Checked = true;
                DrawCurves(EM.Stats[i].GaussianPoints, EM.Stats[i].Color);
                TREE_EM.Nodes.Add(node);
            }

            InitPoints();
            LBL_TOTAL.Text = emMax.Points.Count.ToString();
        }
Пример #3
0
 private void DrawCurves(List <PointF> dataFile, Color color)
 {
     CanvasBackground.DrawCurve(dataFile, color);
     PCT_CANVAS.Image = CanvasBackground.Curves;
 }
Пример #4
0
 private void DrawInfo(MyData dataFile)
 {
     CanvasBackground.DrawHistogram(dataFile);
     DrawCurves(dataFile.GaussPoints, Color.GhostWhite);
     UpdateInfo(dataFile.Stats);
 }
Пример #5
0
 private void ReDraw()
 {
     CanvasBackground.CleanCanvasImage();
     PCT_CANVAS.BackgroundImage = CanvasBackground.BMP;
     PCT_CANVAS.Image           = CanvasBackground.Curves;
 }
Пример #6
0
 private void InitializeGraphics()
 {
     CanvasBackground.TransformScale(PCT_CANVAS.ClientSize.Width, PCT_CANVAS.ClientSize.Height);
     ReDraw();
 }