BioImager  4.9.0
A .NET microscopy imaging application based on Bio library. Supports various microscopes by using imported libraries & GUI automation. Supports XInput game controllers to move stage, take images, run ImageJ macros on images or Bio C# scripts.
Loading...
Searching...
No Matches
BioImager.ChannelsTool Class Reference
Inheritance diagram for BioImager.ChannelsTool:

Public Member Functions

void UpdateItems ()
 It clears the listbox and then adds all the items in the Channels list to the listbox.
 
 ChannelsTool (List< Channel > Channels)
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used.
 

Properties

List< Channel > Channels [get]
 
Channel SelectedChannel [get]
 
int SelectedSample [get, set]
 

Detailed Description

Definition at line 4 of file ChannelsTool.designer.cs.

Constructor & Destructor Documentation

◆ ChannelsTool()

BioImager.ChannelsTool.ChannelsTool ( List< Channel > Channels)

Definition at line 54 of file ChannelsTool.cs.

55 {
56 InitializeComponent();
57 foreach (Channel item in Channels)
58 {
59 channelsBox.Items.Add(item);
60 }
61 channelsBox.SelectedIndex = 0;
62 minBox.Value = (int)Channels[0].stats[0].StackMin;
63 maxBox.Value = (int)Channels[0].stats[0].StackMax;
64 hist = new HistogramControl(Channels[channelsBox.SelectedIndex]);
65 hist.GraphMax = (int)maxBox.Value;
66 maxGraphBox.Value = (int)maxBox.Value;
67 MouseWheel += new System.Windows.Forms.MouseEventHandler(ChannelsTool_MouseWheel);
68 statsPanel.Controls.Add(hist);
69 }

Member Function Documentation

◆ Dispose()

override void BioImager.ChannelsTool.Dispose ( bool disposing)
protected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.

Definition at line 15 of file ChannelsTool.designer.cs.

16 {
17 if (disposing && (components != null))
18 {
19 components.Dispose();
20 }
21 base.Dispose(disposing);
22 }

◆ UpdateItems()

void BioImager.ChannelsTool.UpdateItems ( )

It clears the listbox and then adds all the items in the Channels list to the listbox.

Definition at line 45 of file ChannelsTool.cs.

46 {
47 channelsBox.Items.Clear();
48 foreach (Channel item in Channels)
49 {
50 channelsBox.Items.Add(item);
51 }
52 }

Property Documentation

◆ Channels

List<Channel> BioImager.ChannelsTool.Channels
get

Definition at line 13 of file ChannelsTool.cs.

14 {
15 get
16 {
17 return App.Channels;
18 }
19 }

◆ SelectedChannel

Channel BioImager.ChannelsTool.SelectedChannel
get

Definition at line 21 of file ChannelsTool.cs.

22 {
23 get
24 {
25 if (channelsBox.SelectedIndex != -1)
26 return Channels[channelsBox.SelectedIndex];
27 else
28 return Channels[0];
29 }
30 }

◆ SelectedSample

int BioImager.ChannelsTool.SelectedSample
getset

Definition at line 33 of file ChannelsTool.cs.

34 {
35 get
36 {
37 return (int)sampleBox.Value;
38 }
39 set
40 {
41 sampleBox.Value = (decimal)value;
42 }
43 }

The documentation for this class was generated from the following files: