BioImager  3.9.1
A .NET microscopy imaging library. Supports various microscopes by using imported libraries & GUI automation. Supported libraries include PriorĀ® & ZeissĀ® & all devices supported by Micromanager 2.0 and python-microscope.
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. More...
 
 ChannelsTool (List< Channel > Channels)
 

Protected Member Functions

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

Properties

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

Detailed Description

Definition at line 9 of file ChannelsTool.cs.

Constructor & Destructor Documentation

◆ ChannelsTool()

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

Definition at line 52 of file ChannelsTool.cs.

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

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 43 of file ChannelsTool.cs.

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

Property Documentation

◆ Channels

List<Channel> BioImager.ChannelsTool.Channels
get

Definition at line 12 of file ChannelsTool.cs.

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

◆ SelectedChannel

Channel BioImager.ChannelsTool.SelectedChannel
get

Definition at line 20 of file ChannelsTool.cs.

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

◆ SelectedSample

int BioImager.ChannelsTool.SelectedSample
getset

Definition at line 31 of file ChannelsTool.cs.

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

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