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.HistogramControl Class Reference
Inheritance diagram for BioImager.HistogramControl:

Public Member Functions

 HistogramControl (Channel c)
 
void UpdateChannel (Channel c)
 
void UpdateView ()
 

Protected Member Functions

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

Properties

float Bin [get, set]
 
float Min [get, set]
 
float Max [get, set]
 
int GraphMax [get, set]
 
int GraphMin [get, set]
 
bool StackHistogram [get, set]
 
int MouseX [get]
 
int MouseY [get]
 
float MouseValX [get]
 
float MouseValY [get]
 
bool AxisNumbers [get, set]
 
bool AxisTicks [get, set]
 

Detailed Description

Definition at line 3 of file HistogramControl.Designer.cs.

Constructor & Destructor Documentation

◆ HistogramControl()

BioImager.HistogramControl.HistogramControl ( Channel c)

Definition at line 24 of file HistogramControl.cs.

25 {
26 channel = c;
27 this.Dock = DockStyle.Fill;
28 InitializeComponent();
29 if (c.BitsPerPixel == 8)
30 {
31 graphMax = 255;
32 Bin = 1;
33 }
34 else
35 {
36 graphMax = ushort.MaxValue;
37 Bin = 10;
38 }
39
40 }

Member Function Documentation

◆ Dispose()

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

Clean up any resources being used.

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

Definition at line 14 of file HistogramControl.Designer.cs.

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

◆ UpdateChannel()

void BioImager.HistogramControl.UpdateChannel ( Channel c)

This function updates the channel variable with the channel that is passed in

Parameters
ChannelThe channel to update

Definition at line 163 of file HistogramControl.cs.

164 {
165 channel = c;
166 }

◆ UpdateView()

void BioImager.HistogramControl.UpdateView ( )

‍This function is called when the view needs to be updated

Definition at line 168 of file HistogramControl.cs.

169 {
170 this.Invalidate();
171 }

Property Documentation

◆ AxisNumbers

bool BioImager.HistogramControl.AxisNumbers
getset

Definition at line 141 of file HistogramControl.cs.

142 {
143 get { return axisNumbers;}
144 set { axisNumbers = value; }
145 }

◆ AxisTicks

bool BioImager.HistogramControl.AxisTicks
getset

Definition at line 149 of file HistogramControl.cs.

150 {
151 get { return axisTicks; }
152 set { axisTicks = value; }
153 }

◆ Bin

float BioImager.HistogramControl.Bin
getset

Definition at line 44 of file HistogramControl.cs.

45 {
46 get
47 {
48 return bin;
49 }
50 set
51 {
52 bin = value;
53 }
54 }

◆ GraphMax

int BioImager.HistogramControl.GraphMax
getset

Definition at line 81 of file HistogramControl.cs.

82 {
83 get { return graphMax; }
84 set { graphMax = value; }
85 }

◆ GraphMin

int BioImager.HistogramControl.GraphMin
getset

Definition at line 88 of file HistogramControl.cs.

89 {
90 get { return graphMin; }
91 set { graphMin = value; }
92 }

◆ Max

float BioImager.HistogramControl.Max
getset

Definition at line 69 of file HistogramControl.cs.

70 {
71 get { return max; }
72 set
73 {
74 if (channel != null)
75 channel.range[App.channelsTool.SelectedSample].Max = (int)value;
76 max = (int)value;
77 }
78 }

◆ Min

float BioImager.HistogramControl.Min
getset

Definition at line 57 of file HistogramControl.cs.

58 {
59 get { return min; }
60 set
61 {
62 if(channel!=null)
63 channel.range[App.channelsTool.SelectedSample].Min = (int)value;
64 min = (int)value;
65 }
66 }

◆ MouseValX

float BioImager.HistogramControl.MouseValX
get

Definition at line 124 of file HistogramControl.cs.

125 {
126 get
127 {
128 return mouseValX;
129 }
130 }

◆ MouseValY

float BioImager.HistogramControl.MouseValY
get

Definition at line 131 of file HistogramControl.cs.

132 {
133 get
134 {
135 return mouseValY;
136 }
137 }

◆ MouseX

int BioImager.HistogramControl.MouseX
get

Definition at line 108 of file HistogramControl.cs.

109 {
110 get
111 {
112 return mouseX;
113 }
114 }

◆ MouseY

int BioImager.HistogramControl.MouseY
get

Definition at line 115 of file HistogramControl.cs.

116 {
117 get
118 {
119 return mouseX;
120 }
121 }

◆ StackHistogram

bool BioImager.HistogramControl.StackHistogram
getset

Definition at line 95 of file HistogramControl.cs.

96 {
97 get
98 {
99 return stackHistogram;
100 }
101 set
102 {
103 stackHistogram = value;
104 }
105 }

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