Пример #1
0
        public LinearScaleForm(MosaicWindow window)
        {
            InitializeComponent();

            mosaicWindow = window;

            // Set the Titles
            this.zedGraphControl.GraphPane.Title.Text = "LUT";
            this.zedGraphControl.GraphPane.XAxis.Title.Text = "Input Intensity";
            this.zedGraphControl.GraphPane.YAxis.Title.Text = "Output Intensity";

            this.list = new PointPairList();

            this.cursor1 =
               new VerticalZedGraphCursor(this.zedGraphControl, Color.Red);

            this.cursor2 =
                new VerticalZedGraphCursor(this.zedGraphControl, Color.Green);

            zedGraphControl.ZedGraphCursorChangingHandler +=
                new ZedGraphCursorHandler<ZedGraphWithCursorsControl, ZedGraphCursorEventArgs>(OnCursorChangingHandler);

            zedGraphControl.ZedGraphCursorChangedHandler += new ZedGraphCursorHandler<ZedGraphWithCursorsControl, ZedGraphCursorEventArgs>(OnCursorChangedHandler);

            this.cursor1.Position = this.min;
            this.cursor2.Position = this.max;

            this.zedGraphControl.AddVerticalCursor(cursor1);
            this.zedGraphControl.AddVerticalCursor(cursor2);
        }
Пример #2
0
        public LinearScaleForm(MosaicWindow window)
        {
            InitializeComponent();

            mosaicWindow = window;

            // Set the Titles
            this.zedGraphControl.GraphPane.Title.Text       = "LUT";
            this.zedGraphControl.GraphPane.XAxis.Title.Text = "Input Intensity";
            this.zedGraphControl.GraphPane.YAxis.Title.Text = "Output Intensity";

            this.list = new PointPairList();

            this.cursor1 =
                new VerticalZedGraphCursor(this.zedGraphControl, Color.Red);

            this.cursor2 =
                new VerticalZedGraphCursor(this.zedGraphControl, Color.Green);

            zedGraphControl.ZedGraphCursorChangingHandler +=
                new ZedGraphCursorHandler <ZedGraphWithCursorsControl, ZedGraphCursorEventArgs>(OnCursorChangingHandler);

            zedGraphControl.ZedGraphCursorChangedHandler += new ZedGraphCursorHandler <ZedGraphWithCursorsControl, ZedGraphCursorEventArgs>(OnCursorChangedHandler);

            this.cursor1.Position = this.min;
            this.cursor2.Position = this.max;

            this.zedGraphControl.AddVerticalCursor(cursor1);
            this.zedGraphControl.AddVerticalCursor(cursor2);
        }
Пример #3
0
 public void AddVerticalCursor(VerticalZedGraphCursor cursor)
 {
     cursors.Add(cursor);
 }
 public void AddVerticalCursor(VerticalZedGraphCursor cursor)
 {
     cursors.Add(cursor);
 }
Пример #5
0
        //        private LineItem histogramCurve1;
        //        private LineItem histogramCurve2;
        //        private LineItem histogramCurve3;
        public RGBBalanceForm(MosaicWindow window)
        {
            InitializeComponent();

            mosaicWindow = window;

            // Setup graphs
            this.zedGraphControl1.GraphPane.Title.IsVisible = false;
            this.zedGraphControl2.GraphPane.Title.IsVisible = false;
            this.zedGraphControl3.GraphPane.Title.IsVisible = false;

            this.zedGraphControl1.GraphPane.Legend.IsVisible = false;
            this.zedGraphControl2.GraphPane.Legend.IsVisible = false;
            this.zedGraphControl3.GraphPane.Legend.IsVisible = false;

            this.zedGraphControl1.GraphPane.XAxis.Title.IsVisible = false;
            this.zedGraphControl1.GraphPane.YAxis.Title.IsVisible = false;
            this.zedGraphControl2.GraphPane.XAxis.Title.IsVisible = false;
            this.zedGraphControl2.GraphPane.YAxis.Title.IsVisible = false;
            this.zedGraphControl3.GraphPane.XAxis.Title.IsVisible = false;
            this.zedGraphControl3.GraphPane.YAxis.Title.IsVisible = false;

            this.zedGraphControl1.GraphPane.XAxis.Scale.IsVisible = true;
            this.zedGraphControl2.GraphPane.XAxis.Scale.IsVisible = true;
            this.zedGraphControl3.GraphPane.XAxis.Scale.IsVisible = true;

            this.zedGraphControl1.GraphPane.XAxis.Scale.FontSpec.Size = 30.0F;
            this.zedGraphControl2.GraphPane.XAxis.Scale.FontSpec.Size = 30.0F;
            this.zedGraphControl3.GraphPane.XAxis.Scale.FontSpec.Size = 30.0F;

            this.zedGraphControl1.GraphPane.YAxis.Scale.IsVisible = false;
            this.zedGraphControl2.GraphPane.YAxis.Scale.IsVisible = false;
            this.zedGraphControl3.GraphPane.YAxis.Scale.IsVisible = false;

            this.zedGraphControl1.GraphPane.XAxis.MajorTic.Size = 0;
            this.zedGraphControl1.GraphPane.YAxis.MajorTic.Size = 0;
            this.zedGraphControl2.GraphPane.XAxis.MajorTic.Size = 0;
            this.zedGraphControl2.GraphPane.YAxis.MajorTic.Size = 0;
            this.zedGraphControl3.GraphPane.XAxis.MajorTic.Size = 0;
            this.zedGraphControl3.GraphPane.YAxis.MajorTic.Size = 0;

            this.zedGraphControl1.GraphPane.XAxis.MinorTic.Size = 0;
            this.zedGraphControl1.GraphPane.YAxis.MinorTic.Size = 0;
            this.zedGraphControl2.GraphPane.XAxis.MinorTic.Size = 0;
            this.zedGraphControl2.GraphPane.YAxis.MinorTic.Size = 0;
            this.zedGraphControl3.GraphPane.XAxis.MinorTic.Size = 0;
            this.zedGraphControl3.GraphPane.YAxis.MinorTic.Size = 0;

            this.list1 = new PointPairList();
            this.list2 = new PointPairList();
            this.list3 = new PointPairList();
            //            this.hist_list1 = new PointPairList();
            //            this.hist_list2 = new PointPairList();
            //            this.hist_list3 = new PointPairList();

            this.cursor1_1 = new VerticalZedGraphCursor(this.zedGraphControl1, Color.Red);
            this.cursor1_2 = new VerticalZedGraphCursor(this.zedGraphControl1, Color.Green);
            this.cursor2_1 = new VerticalZedGraphCursor(this.zedGraphControl2, Color.Red);
            this.cursor2_2 = new VerticalZedGraphCursor(this.zedGraphControl2, Color.Green);
            this.cursor3_1 = new VerticalZedGraphCursor(this.zedGraphControl3, Color.Red);
            this.cursor3_2 = new VerticalZedGraphCursor(this.zedGraphControl3, Color.Green);

            zedGraphControl1.ZedGraphCursorChangingHandler +=
                new ZedGraphCursorHandler<ZedGraphWithCursorsControl, ZedGraphCursorEventArgs>(OnCursorChangingHandler);
            zedGraphControl2.ZedGraphCursorChangingHandler +=
                new ZedGraphCursorHandler<ZedGraphWithCursorsControl, ZedGraphCursorEventArgs>(OnCursorChangingHandler);
            zedGraphControl3.ZedGraphCursorChangingHandler +=
                new ZedGraphCursorHandler<ZedGraphWithCursorsControl, ZedGraphCursorEventArgs>(OnCursorChangingHandler);

            zedGraphControl1.ZedGraphCursorChangedHandler +=
                new ZedGraphCursorHandler<ZedGraphWithCursorsControl, ZedGraphCursorEventArgs>(OnCursorChangedHandler);
            zedGraphControl2.ZedGraphCursorChangedHandler +=
                new ZedGraphCursorHandler<ZedGraphWithCursorsControl, ZedGraphCursorEventArgs>(OnCursorChangedHandler);
            zedGraphControl3.ZedGraphCursorChangedHandler +=
                new ZedGraphCursorHandler<ZedGraphWithCursorsControl, ZedGraphCursorEventArgs>(OnCursorChangedHandler);

            this.cursor1_1.Position = this.min;
            this.cursor1_2.Position = this.max;
            this.cursor2_1.Position = this.min;
            this.cursor2_2.Position = this.max;
            this.cursor3_1.Position = this.min;
            this.cursor3_2.Position = this.max;

            this.zedGraphControl1.AddVerticalCursor(this.cursor1_1);
            this.zedGraphControl1.AddVerticalCursor(this.cursor1_2);
            this.zedGraphControl2.AddVerticalCursor(this.cursor2_1);
            this.zedGraphControl2.AddVerticalCursor(this.cursor2_2);
            this.zedGraphControl3.AddVerticalCursor(this.cursor3_1);
            this.zedGraphControl3.AddVerticalCursor(this.cursor3_2);
        }
//        private LineItem histogramCurve1;
//        private LineItem histogramCurve2;
//        private LineItem histogramCurve3;

        public RGBBalanceForm(MosaicWindow window)
        {
            InitializeComponent();

            mosaicWindow = window;

            // Setup graphs
            this.zedGraphControl1.GraphPane.Title.IsVisible = false;
            this.zedGraphControl2.GraphPane.Title.IsVisible = false;
            this.zedGraphControl3.GraphPane.Title.IsVisible = false;

            this.zedGraphControl1.GraphPane.Legend.IsVisible = false;
            this.zedGraphControl2.GraphPane.Legend.IsVisible = false;
            this.zedGraphControl3.GraphPane.Legend.IsVisible = false;

            this.zedGraphControl1.GraphPane.XAxis.Title.IsVisible = false;
            this.zedGraphControl1.GraphPane.YAxis.Title.IsVisible = false;
            this.zedGraphControl2.GraphPane.XAxis.Title.IsVisible = false;
            this.zedGraphControl2.GraphPane.YAxis.Title.IsVisible = false;
            this.zedGraphControl3.GraphPane.XAxis.Title.IsVisible = false;
            this.zedGraphControl3.GraphPane.YAxis.Title.IsVisible = false;

            this.zedGraphControl1.GraphPane.XAxis.Scale.IsVisible = true;
            this.zedGraphControl2.GraphPane.XAxis.Scale.IsVisible = true;
            this.zedGraphControl3.GraphPane.XAxis.Scale.IsVisible = true;

            this.zedGraphControl1.GraphPane.XAxis.Scale.FontSpec.Size = 30.0F;
            this.zedGraphControl2.GraphPane.XAxis.Scale.FontSpec.Size = 30.0F;
            this.zedGraphControl3.GraphPane.XAxis.Scale.FontSpec.Size = 30.0F;

            this.zedGraphControl1.GraphPane.YAxis.Scale.IsVisible = false;
            this.zedGraphControl2.GraphPane.YAxis.Scale.IsVisible = false;
            this.zedGraphControl3.GraphPane.YAxis.Scale.IsVisible = false;

            this.zedGraphControl1.GraphPane.XAxis.MajorTic.Size = 0;
            this.zedGraphControl1.GraphPane.YAxis.MajorTic.Size = 0;
            this.zedGraphControl2.GraphPane.XAxis.MajorTic.Size = 0;
            this.zedGraphControl2.GraphPane.YAxis.MajorTic.Size = 0;
            this.zedGraphControl3.GraphPane.XAxis.MajorTic.Size = 0;
            this.zedGraphControl3.GraphPane.YAxis.MajorTic.Size = 0;

            this.zedGraphControl1.GraphPane.XAxis.MinorTic.Size = 0;
            this.zedGraphControl1.GraphPane.YAxis.MinorTic.Size = 0;
            this.zedGraphControl2.GraphPane.XAxis.MinorTic.Size = 0;
            this.zedGraphControl2.GraphPane.YAxis.MinorTic.Size = 0;
            this.zedGraphControl3.GraphPane.XAxis.MinorTic.Size = 0;
            this.zedGraphControl3.GraphPane.YAxis.MinorTic.Size = 0;

            this.list1 = new PointPairList();
            this.list2 = new PointPairList();
            this.list3 = new PointPairList();
//            this.hist_list1 = new PointPairList();
//            this.hist_list2 = new PointPairList();
//            this.hist_list3 = new PointPairList();

            this.cursor1_1 = new VerticalZedGraphCursor(this.zedGraphControl1, Color.Red);
            this.cursor1_2 = new VerticalZedGraphCursor(this.zedGraphControl1, Color.Green);
            this.cursor2_1 = new VerticalZedGraphCursor(this.zedGraphControl2, Color.Red);
            this.cursor2_2 = new VerticalZedGraphCursor(this.zedGraphControl2, Color.Green);
            this.cursor3_1 = new VerticalZedGraphCursor(this.zedGraphControl3, Color.Red);
            this.cursor3_2 = new VerticalZedGraphCursor(this.zedGraphControl3, Color.Green);

            zedGraphControl1.ZedGraphCursorChangingHandler +=
                new ZedGraphCursorHandler <ZedGraphWithCursorsControl, ZedGraphCursorEventArgs>(OnCursorChangingHandler);
            zedGraphControl2.ZedGraphCursorChangingHandler +=
                new ZedGraphCursorHandler <ZedGraphWithCursorsControl, ZedGraphCursorEventArgs>(OnCursorChangingHandler);
            zedGraphControl3.ZedGraphCursorChangingHandler +=
                new ZedGraphCursorHandler <ZedGraphWithCursorsControl, ZedGraphCursorEventArgs>(OnCursorChangingHandler);

            zedGraphControl1.ZedGraphCursorChangedHandler +=
                new ZedGraphCursorHandler <ZedGraphWithCursorsControl, ZedGraphCursorEventArgs>(OnCursorChangedHandler);
            zedGraphControl2.ZedGraphCursorChangedHandler +=
                new ZedGraphCursorHandler <ZedGraphWithCursorsControl, ZedGraphCursorEventArgs>(OnCursorChangedHandler);
            zedGraphControl3.ZedGraphCursorChangedHandler +=
                new ZedGraphCursorHandler <ZedGraphWithCursorsControl, ZedGraphCursorEventArgs>(OnCursorChangedHandler);

            this.cursor1_1.Position = this.min;
            this.cursor1_2.Position = this.max;
            this.cursor2_1.Position = this.min;
            this.cursor2_2.Position = this.max;
            this.cursor3_1.Position = this.min;
            this.cursor3_2.Position = this.max;

            this.zedGraphControl1.AddVerticalCursor(this.cursor1_1);
            this.zedGraphControl1.AddVerticalCursor(this.cursor1_2);
            this.zedGraphControl2.AddVerticalCursor(this.cursor2_1);
            this.zedGraphControl2.AddVerticalCursor(this.cursor2_2);
            this.zedGraphControl3.AddVerticalCursor(this.cursor3_1);
            this.zedGraphControl3.AddVerticalCursor(this.cursor3_2);
        }