Exemplo n.º 1
0
        /// <summary>
        /// this function loads all the points which should be drawn for the given feature and it's miost correlated feature.
        /// </summary>
        /// <param name="feature"> name of the feature </param>
        /// <param name="height"> the height of the canvas </param>
        /// <param name="width"> the width of the canvas </param>
        public void LoadPointsByFeature(string feature, double height, double width)
        {
            List <DrawPoint> allPoints    = model.getPointsToDraw(feature);
            List <DrawPoint> pointsToShow = new List <DrawPoint>();

            for (int i = 0; i <= this.currentLineIndex; i++)
            {
                allPoints[i].X = (width / 2) + allPoints[i].X * xRegRatio;
                allPoints[i].Y = (height / 2) - allPoints[i].Y * yRegRatio;
                pointsToShow.Add(allPoints[i]);
            }
            VMCorrelatedPoints = pointsToShow;
        }