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); }
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 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); }
public static CorrelatorWindow GetCorrelatorWindowInstance(MosaicWindow mosaicWindow) { if(CorrelatorWindow.instance == null) CorrelatorWindow.instance = new CorrelatorWindow(mosaicWindow); return CorrelatorWindow.instance; }
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); }
public ProfileTool(string name, MosaicWindow window) : base(name, window, "Resources.profile_icon.ico") { this.form = new ProfileForm(window); this.form.Hide(); }
private CorrelatorWindow(MosaicWindow mosaicWindow) { this.mosaicWindow = mosaicWindow; InitializeComponent(); this.Initialise(); }
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; }
public static CorrelatorWindow GetCorrelatorWindowInstance(MosaicWindow mosaicWindow) { if (CorrelatorWindow.instance == null) { CorrelatorWindow.instance = new CorrelatorWindow(mosaicWindow); } return(CorrelatorWindow.instance); }
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"); }
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); }
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); } }
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; }
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; }
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(); } }
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); }
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); }
private void OnMosaicLoaded(MosaicWindow sender, MosaicWindowEventArgs e) { this.OnMosaicLoaded(e); }
internal TileSaver(MosaicWindow window) { this.window = window; }
internal TileSaver(ThreadController threadController, MosaicWindow window) { this.threadController = threadController; this.window = window; this.filePath = null; }
private void OnZoomChanged(MosaicWindow sender, MosaicWindowEventArgs e) { this.OnZoomChanged(e); }
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(); }
protected TileReader(string[] filePaths, MosaicWindow window) : this(window) { this.filePaths = filePaths; }
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; }
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; }
public Version2SequenceFileReader(string[] filePaths, MosaicWindow window) : base(filePaths, window) { }
public MultiSequenceFileReader(string[] filePaths, MosaicWindow window) : base(filePaths, window) { }
public Histogram(MosaicWindow window) { InitializeComponent(); mosaicWindow = 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 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) { }
public ProfileForm(MosaicWindow window) { InitializeComponent(); mosaicWindow = window; }
private void OnSavingScreenShot(MosaicWindow sender, Graphics g, MosaicWindowEventArgs e) { this.OnSavingScreenShot(g, e); }
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); }
void OnUsingCorrelationsChanged(MosaicWindow sender, MosaicWindowEventArgs args) { this.useCorrelationCheckBox.Checked = sender.CorrelationEnabled; }
void OnBlendingChanged(MosaicWindow sender, MosaicWindowEventArgs args) { CreateOverview(); }