BioCore  5.0.0
A Windows .NET microscopy library and application for viewing, editing, and annotating images.
Loading...
Searching...
No Matches
BioCore.HistogramControl Class Reference
Inheritance diagram for BioCore.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]
 
string StatusMessage = "Loading histogram…" [get, set]
 

Detailed Description

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

Constructor & Destructor Documentation

◆ HistogramControl()

BioCore.HistogramControl.HistogramControl ( Channel c)

Definition at line 17 of file HistogramControl.cs.

18 {
19 channel = c;
20 this.Dock = DockStyle.Fill;
21 InitializeComponent();
22 if (c.BitsPerPixel == 8)
23 {
24 graphMax = 255;
25 Bin = 1;
26 }
27 else
28 {
29 graphMax = ushort.MaxValue;
30 Bin = 10;
31 }
32
33 }

Member Function Documentation

◆ Dispose()

override void BioCore.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 BioCore.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 156 of file HistogramControl.cs.

157 {
158 channel = c;
159 }

◆ UpdateView()

void BioCore.HistogramControl.UpdateView ( )

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

Definition at line 161 of file HistogramControl.cs.

162 {
163 this.Invalidate();
164 }

Property Documentation

◆ AxisNumbers

bool BioCore.HistogramControl.AxisNumbers
getset

Definition at line 134 of file HistogramControl.cs.

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

◆ AxisTicks

bool BioCore.HistogramControl.AxisTicks
getset

Definition at line 142 of file HistogramControl.cs.

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

◆ Bin

float BioCore.HistogramControl.Bin
getset

Definition at line 37 of file HistogramControl.cs.

38 {
39 get
40 {
41 return bin;
42 }
43 set
44 {
45 bin = value;
46 }
47 }

◆ GraphMax

int BioCore.HistogramControl.GraphMax
getset

Definition at line 74 of file HistogramControl.cs.

75 {
76 get { return graphMax; }
77 set { graphMax = value; }
78 }

◆ GraphMin

int BioCore.HistogramControl.GraphMin
getset

Definition at line 81 of file HistogramControl.cs.

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

◆ Max

float BioCore.HistogramControl.Max
getset

Definition at line 62 of file HistogramControl.cs.

63 {
64 get { return max; }
65 set
66 {
67 if (channel != null)
68 channel.range[App.channelsTool.SelectedSample].Max = (int)value;
69 max = (int)value;
70 }
71 }

◆ Min

float BioCore.HistogramControl.Min
getset

Definition at line 50 of file HistogramControl.cs.

51 {
52 get { return min; }
53 set
54 {
55 if(channel!=null)
56 channel.range[App.channelsTool.SelectedSample].Min = (int)value;
57 min = (int)value;
58 }
59 }

◆ MouseValX

float BioCore.HistogramControl.MouseValX
get

Definition at line 117 of file HistogramControl.cs.

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

◆ MouseValY

float BioCore.HistogramControl.MouseValY
get

Definition at line 124 of file HistogramControl.cs.

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

◆ MouseX

int BioCore.HistogramControl.MouseX
get

Definition at line 101 of file HistogramControl.cs.

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

◆ MouseY

int BioCore.HistogramControl.MouseY
get

Definition at line 108 of file HistogramControl.cs.

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

◆ StackHistogram

bool BioCore.HistogramControl.StackHistogram
getset

Definition at line 88 of file HistogramControl.cs.

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

◆ StatusMessage

string BioCore.HistogramControl.StatusMessage = "Loading histogram…"
getset

Definition at line 166 of file HistogramControl.cs.

166{ get; set; } = "Loading histogram…";

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