コード例 #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
ファイル: MosaicApp.cs プロジェクト: atdgroup/Mosaic
        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();
        }
コード例 #4
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);
        }
コード例 #5
0
ファイル: CorrelatorWindow.cs プロジェクト: atdgroup/Mosaic
        public static CorrelatorWindow GetCorrelatorWindowInstance(MosaicWindow mosaicWindow)
        {
            if(CorrelatorWindow.instance == null)
                CorrelatorWindow.instance = new CorrelatorWindow(mosaicWindow);

            return CorrelatorWindow.instance;
        }
コード例 #6
0
ファイル: LinearScaleTool.cs プロジェクト: atdgroup/Mosaic
        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
ファイル: CorrelatorWindow.cs プロジェクト: atdgroup/Mosaic
        private CorrelatorWindow(MosaicWindow mosaicWindow)
        {
            this.mosaicWindow = mosaicWindow;

            InitializeComponent();

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

            InitializeComponent();

            this.Initialise();
        }
コード例 #10
0
ファイル: RoiTool.cs プロジェクト: atdgroup/Mosaic
        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
ファイル: TileReader.cs プロジェクト: MobileScientists/Mosaic
 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
ファイル: RoiTool.cs プロジェクト: MobileScientists/Mosaic
        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
ファイル: ScalebarPlugin.cs プロジェクト: atdgroup/Mosaic
        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
ファイル: MosaicPlugin.cs プロジェクト: atdgroup/Mosaic
        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
ファイル: MosaicPlugin.cs プロジェクト: atdgroup/Mosaic
 private void OnMosaicLoaded(MosaicWindow sender, MosaicWindowEventArgs e)
 {
     this.OnMosaicLoaded(e);
 }
コード例 #22
0
ファイル: TileSaver.cs プロジェクト: MobileScientists/Mosaic
 internal TileSaver(MosaicWindow window)
 {
     this.window = window;
 }
コード例 #23
0
ファイル: TileSaver.cs プロジェクト: atdgroup/Mosaic
 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
ファイル: LinearScaleTool.cs プロジェクト: atdgroup/Mosaic
        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
ファイル: TileReader.cs プロジェクト: MobileScientists/Mosaic
 protected TileReader(string[] filePaths, MosaicWindow window)
     : this(window)
 {
     this.filePaths = filePaths;
 }
コード例 #27
0
ファイル: MosaicPlugin.cs プロジェクト: atdgroup/Mosaic
        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
ファイル: LinearScaleTool.cs プロジェクト: atdgroup/Mosaic
        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
ファイル: Profile.cs プロジェクト: atdgroup/Mosaic
 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)
 {
 }
コード例 #32
0
 public MultiSequenceFileReader(string[] filePaths, MosaicWindow window)
     : base(filePaths, window)
 {
 }
コード例 #33
0
ファイル: Histogram.cs プロジェクト: atdgroup/Mosaic
        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)
 {
 }
コード例 #36
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);
        }
コード例 #37
0
 public ImageCollectionFileReader(string[] filePaths, MosaicWindow window)
     : base(filePaths, window)
 {
 }
コード例 #38
0
ファイル: Profile.cs プロジェクト: atdgroup/Mosaic
        public ProfileForm(MosaicWindow window)
        {
            InitializeComponent();

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

            mosaicWindow = window;
        }
コード例 #40
0
ファイル: MosaicPlugin.cs プロジェクト: atdgroup/Mosaic
 private void OnSavingScreenShot(MosaicWindow sender, Graphics g, MosaicWindowEventArgs e)
 {
     this.OnSavingScreenShot(g, e);
 }
コード例 #41
0
ファイル: MosaicPlugin.cs プロジェクト: atdgroup/Mosaic
 private void OnZoomChanged(MosaicWindow sender, MosaicWindowEventArgs e)
 {
     this.OnZoomChanged(e);
 }
コード例 #42
0
ファイル: TileSaver.cs プロジェクト: atdgroup/Mosaic
 internal TileSaver(MosaicWindow window)
 {
     this.window = window;
 }
コード例 #43
0
 public Version2SequenceFileReader(string[] filePaths, MosaicWindow window)
     : base(filePaths, window)
 {
 }
コード例 #44
0
 private void OnMosaicLoaded(MosaicWindow sender, MosaicWindowEventArgs e)
 {
     this.OnMosaicLoaded(e);
 }
コード例 #45
0
ファイル: CorrelatorWindow.cs プロジェクト: atdgroup/Mosaic
        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
ファイル: CorrelatorWindow.cs プロジェクト: atdgroup/Mosaic
 void OnUsingCorrelationsChanged(MosaicWindow sender, MosaicWindowEventArgs args)
 {
     this.useCorrelationCheckBox.Checked = sender.CorrelationEnabled;
 }
コード例 #48
0
ファイル: TileSaver.cs プロジェクト: MobileScientists/Mosaic
 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
ファイル: MosaicFileReader.cs プロジェクト: atdgroup/Mosaic
 public MosaicFileReader(string[] filePaths, MosaicWindow window)
     : base(filePaths, window)
 {
 }
コード例 #51
0
 void OnUsingCorrelationsChanged(MosaicWindow sender, MosaicWindowEventArgs args)
 {
     this.useCorrelationCheckBox.Checked = sender.CorrelationEnabled;
 }
コード例 #52
0
 public ImageCollectionFileReader(string[] filePaths, MosaicWindow window)
     : base(filePaths, window)
 {
 }
コード例 #53
0
ファイル: Histogram.cs プロジェクト: MobileScientists/Mosaic
        public Histogram(MosaicWindow window)
        {
            InitializeComponent();

            mosaicWindow = window;
        }