Ejemplo n.º 1
0
        public convertToText(dynamicDisplay display)
        {
            timer = new Stopwatch();

            originalData = new List<mPoint>();
            cleanedData = new List<mPoint>();

            tickCounts = new long[5];
            for (int i = 0; i < tickCounts.Length; i++)
            {
                tickCounts[i] = 0;
            }

            thisDynamicDisplay = display;

            double side = 350;

            clean = new multiLineDrawCanvas(0, 0, display, "Resample Original");
            clean.outOfX = 1.2;
            clean.outOfy = 1.2;
            clean.padding = .1;
            clean.myPanel.Width = side;
            clean.myPanel.Height = side;
            clean.toAddCircles = true;
            thisDynamicDisplay.addCanvas(clean);

            clean2 = new multiLineDrawCanvas(0, 1, display, "SectionTest");
            clean2.outOfX = 1.2;
            clean2.outOfy = 1.2;
            clean2.padding = .1;
            clean2.myPanel.Width = side;
            clean2.myPanel.Height = side;
            clean2.toAddCircles = true;
            thisDynamicDisplay.addCanvas(clean2);

            sectionClean1 = new multiLineDrawCanvas(0, 2, display, "Current Section Clean");
            sectionClean1.outOfX = 1.2;
            sectionClean1.outOfy = 1.2;
            sectionClean1.padding = .1;
            sectionClean1.myPanel.Width = side;
            sectionClean1.myPanel.Height = side;
            sectionClean1.toAddCircles = true;
            thisDynamicDisplay.addCanvas(sectionClean1);

            sectionClean2 = new multiLineDrawCanvas(1, 0, display, "Kasey Section Clean");
            sectionClean2.outOfX = 1.2;
            sectionClean2.outOfy = 1.2;
            sectionClean2.padding = .1;
            sectionClean2.myPanel.Width = side;
            sectionClean2.myPanel.Height = side;
            sectionClean2.toAddCircles = true;
            thisDynamicDisplay.addCanvas(sectionClean2);

            sectionClean3 = new multiLineDrawCanvas(1, 1, display, "Dominique Section Clean");
            sectionClean3.outOfX = 1.2;
            sectionClean3.outOfy = 1.2;
            sectionClean3.padding = .1;
            sectionClean3.myPanel.Width = side;
            sectionClean3.myPanel.Height = side;
            sectionClean3.toAddCircles = true;
            thisDynamicDisplay.addCanvas(sectionClean3);
        }
Ejemplo n.º 2
0
        public multiLineDrawCanvas(int xPos, int yPos, dynamicDisplay parent, string titleText)
        {
            toAddCircles = false;
            this.data = new List<mPoint>();
            this.xPos = xPos;
            this.yPos = yPos;
            this.parent = parent;
            this.titleText = titleText;

            myPanel = new Canvas();
            myPanel.Name = "InputCopyCanvas";
            myPanel.HorizontalAlignment = HorizontalAlignment.Left;
            myPanel.VerticalAlignment = VerticalAlignment.Top;
            myPanel.Width = default_sizeX;
            myPanel.Height = default_sizeY;

            title = new TextBox();
            title.Text = titleText;
            title.HorizontalAlignment = HorizontalAlignment.Left;
            title.VerticalAlignment = VerticalAlignment.Top;
            title.Width = Double.NaN;
            title.Height = Double.NaN;
            myPanel.Children.Add(title);
        }
Ejemplo n.º 3
0
 public mainWindows()
 {
     myDynamicDisplay = new dynamicDisplay();
 }
Ejemplo n.º 4
0
        public lineDrawCanvas( int xPos, int yPos, dynamicDisplay parent, string titleText)
        {
            toAddCircles = false;
            this.data = new List<Point>();
            this.xPos = xPos;
            this.yPos = yPos;
            this.parent = parent;
            this.titleText = titleText;
            outOfy = 0;
            outOfX = 0;
            //Grid holder = new Grid();

            myPanel = new Canvas();
            myPanel.Name = "InputCopyCanvas";
            myPanel.HorizontalAlignment = HorizontalAlignment.Left;
            myPanel.VerticalAlignment = VerticalAlignment.Top;
            myPanel.Width = default_sizeX;
            myPanel.Height = default_sizeY;

            title = new TextBox();
            title.Text = titleText;
            title.HorizontalAlignment = HorizontalAlignment.Left;
            title.VerticalAlignment = VerticalAlignment.Top;
            title.Width = Double.NaN;
            title.Height = Double.NaN;
            myPanel.Children.Add(title);

            myLine = new Polyline();
            myLine.Stroke = Brushes.Black;
            myLine.StrokeThickness = 2;
            myPanel.Children.Add(myLine);

            outOfy = myPanel.Height;
            outOfX = myPanel.Width;
        }