示例#1
0
        public void SetMosaicWindow(MosaicWindow window)
        {
            this.window      = window;
            this.imageViewer = window.TileView;

            InitializeComponent();

            this.SetStyle(
                ControlStyles.AllPaintingInWmPaint |
                ControlStyles.UserPaint |
                ControlStyles.ResizeRedraw |
                ControlStyles.Opaque |
                ControlStyles.DoubleBuffer, true);

            this.imageViewer.ZoomChanged       += new EventHandler(OnZoomChanged);
            this.imageViewer.VertScrollChanged += new ScrollEventHandler(OnVerticalScrollChanged);
            this.imageViewer.HorzScrollChanged += new ScrollEventHandler(OnHorizontalScrollChanged);
            this.imageViewer.PanningOccurred   += new TileViewHandler <TileView, EventArgs>(OnPanningOccurred);
            this.imageViewer.SizeChanged       += new EventHandler(OnImageViewSizeChanged);
            this.imageViewer.OnScrollChanged   += new ScrollEventHandler(OnScrollChanged);

            this.window.BlendingChanged +=
                new MosaicWindowHandler <MosaicWindow, MosaicWindowEventArgs>(OnBlendingChanged);

            this.Paint += new PaintEventHandler(OnPaint);

            threadController = new ThreadController(this);
            threadController.SetThreadCompletedCallback(TileOverviewThreadCompleted);
        }
示例#2
0
        public static void Main(string[] args)
        {
            MosaicApp.window = new MosaicWindow();

            SingletonController.Receiver += new SingletonController.ReceiveDelegate(MosaicApp.GetPassedArgs);

/*  disabled the singleton control
 *          // test if this is the first instance and register receiver, if so.
 *          if (SingletonController.IamFirst())
 *          {
 */
            if (args.Length > 0)
            {
                MosaicApp.window.SetStartupFiles(args);
            }

            Application.Run(window);

/*
 *          }
 *          else
 *          {
 *              // send command line args to running app, then terminate
 *              SingletonController.Send(args);
 *          }
 */

            SingletonController.Cleanup();
        }
示例#3
0
        public static void Main(string[] args)
        {
            MosaicApp.window = new MosaicWindow();

            SingletonController.Receiver += new SingletonController.ReceiveDelegate(MosaicApp.GetPassedArgs);
            /*  disabled the singleton control
            // test if this is the first instance and register receiver, if so.
            if (SingletonController.IamFirst())
            {
            */
                if (args.Length > 0)
                    MosaicApp.window.SetStartupFiles(args);

                Application.Run(window);
            /*
            }
            else
            {
                // send command line args to running app, then terminate
                SingletonController.Send(args);
            }
            */

            SingletonController.Cleanup();
        }
        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);
        }
示例#5
0
        public static CorrelatorWindow GetCorrelatorWindowInstance(MosaicWindow mosaicWindow)
        {
            if(CorrelatorWindow.instance == null)
                CorrelatorWindow.instance = new CorrelatorWindow(mosaicWindow);

            return CorrelatorWindow.instance;
        }
示例#6
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);
        }
示例#7
0
 public ProfileTool(string name, MosaicWindow window)
     :
     base(name, window, "Resources.profile_icon.ico")
 {
     this.form = new ProfileForm(window);
     this.form.Hide();
 }
示例#8
0
        private CorrelatorWindow(MosaicWindow mosaicWindow)
        {
            this.mosaicWindow = mosaicWindow;

            InitializeComponent();

            this.Initialise();
        }
示例#9
0
        private CorrelatorWindow(MosaicWindow mosaicWindow)
        {
            this.mosaicWindow = mosaicWindow;

            InitializeComponent();

            this.Initialise();
        }
示例#10
0
        public RoiTool(string name, MosaicWindow window)
            : base(name, window, "Resources.roi_icon.ico")
        {
            this.roi = Rectangle.Empty;

            this.menuItem = AddMenuItem("Display", "Region", null, new EventHandler(OnRegionMenuCheckedChanged));

            this.menuItem.Enabled = false;
        }
示例#11
0
        public static CorrelatorWindow GetCorrelatorWindowInstance(MosaicWindow mosaicWindow)
        {
            if (CorrelatorWindow.instance == null)
            {
                CorrelatorWindow.instance = new CorrelatorWindow(mosaicWindow);
            }

            return(CorrelatorWindow.instance);
        }
示例#12
0
 protected TileReader(MosaicWindow window)
 {
     this.window = window;
     this.allowedExtensions.Add(".ics");
     this.allowedExtensions.Add(".bmp");
     this.allowedExtensions.Add(".png");
     this.allowedExtensions.Add(".jpg");
     this.allowedExtensions.Add(".tif");
     this.allowedExtensions.Add(".tiff");
 }
示例#13
0
        public RoiTool(string name, MosaicWindow window)
            :
            base(name, window, "Resources.roi_icon.ico")
        {
            this.roi = Rectangle.Empty;

            this.menuItem = AddMenuItem("Display", "Region", null, new EventHandler(OnRegionMenuCheckedChanged));

            this.menuItem.Enabled = false;
        }
示例#14
0
        public ScalebarTool(string name, MosaicWindow window)
            : base(name, window)
        {
            this.menuItem = AddMenuItem("Options", "Show Scalebar", null, new EventHandler(OnCheckedChanged));

            this.font = new Font("Arial", 12);
            this.brush = new SolidBrush(Color.Red);

            this.MosaicWindow.SizeChanged += new EventHandler(OnMosaicWindowSizeChanged);
            this.MosaicWindow.TileView.ZoomChanged += new EventHandler(OnZoomChanged);
        }
示例#15
0
        void OnMosaicLoaded(MosaicWindow sender, MosaicWindowEventArgs args)
        {
            this.currentTile = null;
            this.Initialise();
            SetCorrelationForCombobox();
            this.tiledImageViewer.Reset();

            if (this.correlator != null && this.correlator.OptionPanel != null)
            {
                this.correlator.OptionPanel.Reset(this.correlator.MosaicInfo);
            }
        }
示例#16
0
        public MosaicToggleButtonTool(string name, MosaicWindow window, string icon) : base(name, window)
        {
            Image image = (Image) new Bitmap(GetType(), icon);

            this.button                 = new ToolStripButton(image);
            this.button.Text            = this.Name;
            this.button.CheckOnClick    = true;
            this.button.CheckedChanged += new EventHandler(OnToggleButtonToolSelected);
            this.MosaicWindow.ToolStrip.Items.Add(this.button);

            this.Active = false;
        }
示例#17
0
        public LinearScaleTool(string name, MosaicWindow window)
            :
            base(name, window, "Resources.scale_icon.ico")
        {
            this.form              = new LinearScaleForm(window);
            this.form.FormClosing += new FormClosingEventHandler(OnLinearScalingFormClosing);

            this.MosaicWindow.MosaicLoaded += new MosaicWindowHandler <MosaicWindow, MosaicWindowEventArgs>(OnMosaicLoaded);

            this.menuItem = AddMenuItem("Display", "Linear Scale", null, new EventHandler(OnCheckedChanged));

            this.menuItem.Enabled = false;
        }
示例#18
0
        void OnMosaicLoaded(MosaicWindow sender, MosaicWindowEventArgs args)
        {
            if (MosaicWindow.MosaicInfo.IsColour)
            {
                this.Enabled          = false;
                this.menuItem.Enabled = false;
            }
            else
            {
                this.Enabled          = true;
                this.menuItem.Enabled = true;
            }

            if (this.Active)
            {
                this.form.UpdateGraphForLoadedImage();
            }
        }
示例#19
0
        public MosaicPlugin(string name, MosaicWindow window)
        {
            MosaicPlugin.plugins[name] = this;
            this.window = window;
            this.name = name;

            window.MosaicLoaded += new MosaicWindowHandler<MosaicWindow, MosaicWindowEventArgs>(OnMosaicLoaded);

            window.ZoomChanged += new MosaicWindowHandler<MosaicWindow, MosaicWindowEventArgs>(OnZoomChanged);

            window.SavingScreenShot += new MosaicWindowGraphicsHandler<MosaicWindow, Graphics, MosaicWindowEventArgs>(OnSavingScreenShot);

            window.TileView.MouseDown +=
                new System.Windows.Forms.MouseEventHandler(this.OnMouseDown);

            window.TileView.MouseUp +=
                new System.Windows.Forms.MouseEventHandler(this.OnMouseUp);

            window.TileView.MouseMove +=
                new System.Windows.Forms.MouseEventHandler(this.OnMouseMove);

            window.TileView.Paint += new PaintEventHandler(this.OnTileViewPainted);
        }
示例#20
0
        public MosaicPlugin(string name, MosaicWindow window)
        {
            MosaicPlugin.plugins[name] = this;
            this.window = window;
            this.name   = name;

            window.MosaicLoaded += new MosaicWindowHandler <MosaicWindow, MosaicWindowEventArgs>(OnMosaicLoaded);

            window.ZoomChanged += new MosaicWindowHandler <MosaicWindow, MosaicWindowEventArgs>(OnZoomChanged);

            window.SavingScreenShot += new MosaicWindowGraphicsHandler <MosaicWindow, Graphics, MosaicWindowEventArgs>(OnSavingScreenShot);

            window.TileView.MouseDown +=
                new System.Windows.Forms.MouseEventHandler(this.OnMouseDown);

            window.TileView.MouseUp +=
                new System.Windows.Forms.MouseEventHandler(this.OnMouseUp);

            window.TileView.MouseMove +=
                new System.Windows.Forms.MouseEventHandler(this.OnMouseMove);

            window.TileView.Paint += new PaintEventHandler(this.OnTileViewPainted);
        }
示例#21
0
 private void OnMosaicLoaded(MosaicWindow sender, MosaicWindowEventArgs e)
 {
     this.OnMosaicLoaded(e);
 }
示例#22
0
 internal TileSaver(MosaicWindow window)
 {
     this.window = window;
 }
示例#23
0
 internal TileSaver(ThreadController threadController, MosaicWindow window)
 {
     this.threadController = threadController;
     this.window = window;
     this.filePath = null;
 }
示例#24
0
 private void OnZoomChanged(MosaicWindow sender, MosaicWindowEventArgs e)
 {
     this.OnZoomChanged(e);
 }
示例#25
0
        void OnMosaicLoaded(MosaicWindow sender, MosaicWindowEventArgs args)
        {
            if (MosaicWindow.MosaicInfo.IsColour)
            {
                this.Enabled = false;
                this.menuItem.Enabled = false;
            }
            else
            {
                this.Enabled = true;
                this.menuItem.Enabled = true;
            }

            if(this.Active)
                this.form.UpdateGraphForLoadedImage();
        }
示例#26
0
 protected TileReader(string[] filePaths, MosaicWindow window)
     : this(window)
 {
     this.filePaths = filePaths;
 }
示例#27
0
        public MosaicToggleButtonTool(string name, MosaicWindow window, string icon)
            : base(name, window)
        {
            Image image = (Image)new Bitmap(GetType(), icon);
            this.button = new ToolStripButton(image);
            this.button.Text = this.Name;
            this.button.CheckOnClick = true;
            this.button.CheckedChanged += new EventHandler(OnToggleButtonToolSelected);
            this.MosaicWindow.ToolStrip.Items.Add(this.button);

            this.Active = false;
        }
示例#28
0
        public LinearScaleTool(string name, MosaicWindow window)
            : base(name, window, "Resources.scale_icon.ico")
        {
            this.form = new LinearScaleForm(window);
            this.form.FormClosing += new FormClosingEventHandler(OnLinearScalingFormClosing);

            this.MosaicWindow.MosaicLoaded += new MosaicWindowHandler<MosaicWindow, MosaicWindowEventArgs>(OnMosaicLoaded);

            this.menuItem = AddMenuItem("Display", "Linear Scale", null, new EventHandler(OnCheckedChanged));

            this.menuItem.Enabled = false;
        }
示例#29
0
 public Version2SequenceFileReader(string[] filePaths, MosaicWindow window)
     : base(filePaths, window)
 {
 }
示例#30
0
 public ProfileTool(string name, MosaicWindow window)
     : base(name, window, "Resources.profile_icon.ico")
 {
     this.form = new ProfileForm(window);
     this.form.Hide();
 }
示例#31
0
 public MultiSequenceFileReader(string[] filePaths, MosaicWindow window)
     : base(filePaths, window)
 {
 }
 public MultiSequenceFileReader(string[] filePaths, MosaicWindow window)
     : base(filePaths, window)
 {
 }
示例#33
0
        public Histogram(MosaicWindow window)
        {
            InitializeComponent();

            mosaicWindow = window;
        }
示例#34
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);
        }
示例#35
0
 public MosaicFileReader(string[] filePaths, MosaicWindow window)
     : base(filePaths, window)
 {
 }
//        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);
        }
 public ImageCollectionFileReader(string[] filePaths, MosaicWindow window)
     : base(filePaths, window)
 {
 }
示例#38
0
        public ProfileForm(MosaicWindow window)
        {
            InitializeComponent();

            mosaicWindow = window;
        }
示例#39
0
        public ProfileForm(MosaicWindow window)
        {
            InitializeComponent();

            mosaicWindow = window;
        }
示例#40
0
 private void OnSavingScreenShot(MosaicWindow sender, Graphics g, MosaicWindowEventArgs e)
 {
     this.OnSavingScreenShot(g, e);
 }
示例#41
0
 private void OnZoomChanged(MosaicWindow sender, MosaicWindowEventArgs e)
 {
     this.OnZoomChanged(e);
 }
示例#42
0
 internal TileSaver(MosaicWindow window)
 {
     this.window = window;
 }
 public Version2SequenceFileReader(string[] filePaths, MosaicWindow window)
     : base(filePaths, window)
 {
 }
示例#44
0
 private void OnMosaicLoaded(MosaicWindow sender, MosaicWindowEventArgs e)
 {
     this.OnMosaicLoaded(e);
 }
示例#45
0
        void OnMosaicLoaded(MosaicWindow sender, MosaicWindowEventArgs args)
        {
            this.currentTile = null;
            this.Initialise();
            SetCorrelationForCombobox();
            this.tiledImageViewer.Reset();

            if (this.correlator != null && this.correlator.OptionPanel != null)
                this.correlator.OptionPanel.Reset(this.correlator.MosaicInfo);
        }
示例#46
0
 private void OnSavingScreenShot(MosaicWindow sender, Graphics g, MosaicWindowEventArgs e)
 {
     this.OnSavingScreenShot(g, e);
 }
示例#47
0
 void OnUsingCorrelationsChanged(MosaicWindow sender, MosaicWindowEventArgs args)
 {
     this.useCorrelationCheckBox.Checked = sender.CorrelationEnabled;
 }
示例#48
0
 internal TileSaver(ThreadController threadController, MosaicWindow window)
 {
     this.threadController = threadController;
     this.window           = window;
     this.filePath         = null;
 }
示例#49
0
 void OnBlendingChanged(MosaicWindow sender, MosaicWindowEventArgs args)
 {
     CreateOverview();
 }
示例#50
0
 public MosaicFileReader(string[] filePaths, MosaicWindow window)
     : base(filePaths, window)
 {
 }
示例#51
0
 void OnUsingCorrelationsChanged(MosaicWindow sender, MosaicWindowEventArgs args)
 {
     this.useCorrelationCheckBox.Checked = sender.CorrelationEnabled;
 }
 public ImageCollectionFileReader(string[] filePaths, MosaicWindow window)
     : base(filePaths, window)
 {
 }
示例#53
0
        public Histogram(MosaicWindow window)
        {
            InitializeComponent();

            mosaicWindow = window;
        }