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

Public Member Functions

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

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

More...
 

Protected Member Functions

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

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 22 of file HistogramControl.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 155 of file HistogramControl.cs.

156 {
157 channel = c;
158 }

◆ UpdateView()

void BioImager.HistogramControl.UpdateView ( )

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

Definition at line 160 of file HistogramControl.cs.

161 {
162 this.Invalidate();
163 }

Property Documentation

◆ AxisNumbers

bool BioImager.HistogramControl.AxisNumbers
getset

Definition at line 134 of file HistogramControl.cs.

135 {
136 get { return axisNumbers;}
137 set { axisNumbers = value; }
138 }

◆ AxisTicks

bool BioImager.HistogramControl.AxisTicks
getset

Definition at line 141 of file HistogramControl.cs.

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

◆ Bin

float BioImager.HistogramControl.Bin
getset

Definition at line 43 of file HistogramControl.cs.

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

◆ GraphMax

int BioImager.HistogramControl.GraphMax
getset

Definition at line 77 of file HistogramControl.cs.

78 {
79 get { return graphMax; }
80 set { graphMax = value; }
81 }

◆ GraphMin

int BioImager.HistogramControl.GraphMin
getset

Definition at line 83 of file HistogramControl.cs.

84 {
85 get { return graphMin; }
86 set { graphMin = value; }
87 }

◆ Max

float BioImager.HistogramControl.Max
getset

Definition at line 66 of file HistogramControl.cs.

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

◆ Min

float BioImager.HistogramControl.Min
getset

Definition at line 55 of file HistogramControl.cs.

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

◆ MouseValX

float BioImager.HistogramControl.MouseValX
get

Definition at line 118 of file HistogramControl.cs.

119 {
120 get
121 {
122 return mouseValX;
123 }
124 }

◆ MouseValY

float BioImager.HistogramControl.MouseValY
get

Definition at line 125 of file HistogramControl.cs.

126 {
127 get
128 {
129 return mouseValY;
130 }
131 }

◆ MouseX

int BioImager.HistogramControl.MouseX
get

Definition at line 102 of file HistogramControl.cs.

103 {
104 get
105 {
106 return mouseX;
107 }
108 }

◆ MouseY

int BioImager.HistogramControl.MouseY
get

Definition at line 109 of file HistogramControl.cs.

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

◆ StackHistogram

bool BioImager.HistogramControl.StackHistogram
getset

Definition at line 89 of file HistogramControl.cs.

90 {
91 get
92 {
93 return stackHistogram;
94 }
95 set
96 {
97 stackHistogram = value;
98 }
99 }

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